Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.356 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.53. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 7 | # Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 12 | as_expr=expr |
| 13 | else |
| 14 | as_expr=false |
| 15 | fi |
| 16 | |
| 17 | |
| 18 | ## --------------------- ## |
| 19 | ## M4sh Initialization. ## |
| 20 | ## --------------------- ## |
| 21 | |
| 22 | # Be Bourne compatible |
| 23 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24 | emulate sh |
| 25 | NULLCMD=: |
| 26 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 27 | set -o posix |
| 28 | fi |
| 29 | |
| 30 | # NLS nuisances. |
| 31 | # Support unset when possible. |
| 32 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 33 | as_unset=unset |
| 34 | else |
| 35 | as_unset=false |
| 36 | fi |
| 37 | |
| 38 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 39 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 40 | { LANG=C; export LANG; } |
| 41 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 42 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 43 | { LC_ALL=C; export LC_ALL; } |
| 44 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 45 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 46 | { LC_TIME=C; export LC_TIME; } |
| 47 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 48 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 49 | { LC_CTYPE=C; export LC_CTYPE; } |
| 50 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 51 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 52 | { LANGUAGE=C; export LANGUAGE; } |
| 53 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 54 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 55 | { LC_COLLATE=C; export LC_COLLATE; } |
| 56 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 57 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 58 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 59 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 60 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 61 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 62 | |
| 63 | |
| 64 | # Name of the executable. |
| 65 | as_me=`(basename "$0") 2>/dev/null || |
| 66 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 67 | X"$0" : 'X\(//\)$' \| \ |
| 68 | X"$0" : 'X\(/\)$' \| \ |
| 69 | . : '\(.\)' 2>/dev/null || |
| 70 | echo X/"$0" | |
| 71 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 72 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 74 | s/.*/./; q'` |
| 75 | |
| 76 | # PATH needs CR, and LINENO needs CR and PATH. |
| 77 | # Avoid depending upon Character Ranges. |
| 78 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 79 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 80 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 81 | as_cr_digits='0123456789' |
| 82 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 83 | |
| 84 | # The user is always right. |
| 85 | if test "${PATH_SEPARATOR+set}" != set; then |
| 86 | echo "#! /bin/sh" >conftest.sh |
| 87 | echo "exit 0" >>conftest.sh |
| 88 | chmod +x conftest.sh |
| 89 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 90 | PATH_SEPARATOR=';' |
| 91 | else |
| 92 | PATH_SEPARATOR=: |
| 93 | fi |
| 94 | rm -f conftest.sh |
| 95 | fi |
| 96 | |
| 97 | |
| 98 | as_lineno_1=$LINENO |
| 99 | as_lineno_2=$LINENO |
| 100 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 101 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 102 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 103 | # Find who we are. Look in the path if we contain no path at all |
| 104 | # relative or not. |
| 105 | case $0 in |
| 106 | *[\\/]* ) as_myself=$0 ;; |
| 107 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 108 | for as_dir in $PATH |
| 109 | do |
| 110 | IFS=$as_save_IFS |
| 111 | test -z "$as_dir" && as_dir=. |
| 112 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 113 | done |
| 114 | |
| 115 | ;; |
| 116 | esac |
| 117 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 118 | # in which case we are not to be found in the path. |
| 119 | if test "x$as_myself" = x; then |
| 120 | as_myself=$0 |
| 121 | fi |
| 122 | if test ! -f "$as_myself"; then |
| 123 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 124 | { (exit 1); exit 1; }; } |
| 125 | fi |
| 126 | case $CONFIG_SHELL in |
| 127 | '') |
| 128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 129 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 130 | do |
| 131 | IFS=$as_save_IFS |
| 132 | test -z "$as_dir" && as_dir=. |
| 133 | for as_base in sh bash ksh sh5; do |
| 134 | case $as_dir in |
| 135 | /*) |
| 136 | if ("$as_dir/$as_base" -c ' |
| 137 | as_lineno_1=$LINENO |
| 138 | as_lineno_2=$LINENO |
| 139 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 140 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 141 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 142 | CONFIG_SHELL=$as_dir/$as_base |
| 143 | export CONFIG_SHELL |
| 144 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 145 | fi;; |
| 146 | esac |
| 147 | done |
| 148 | done |
| 149 | ;; |
| 150 | esac |
| 151 | |
| 152 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 153 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 154 | # line-number line before each line; the second 'sed' does the real |
| 155 | # work. The second script uses 'N' to pair each line-number line |
| 156 | # with the numbered line, and appends trailing '-' during |
| 157 | # substitution so that $LINENO is not a special case at line end. |
| 158 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 159 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 160 | sed '=' <$as_myself | |
| 161 | sed ' |
| 162 | N |
| 163 | s,$,-, |
| 164 | : loop |
| 165 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 166 | t loop |
| 167 | s,-$,, |
| 168 | s,^['$as_cr_digits']*\n,, |
| 169 | ' >$as_me.lineno && |
| 170 | chmod +x $as_me.lineno || |
| 171 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 172 | { (exit 1); exit 1; }; } |
| 173 | |
| 174 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 175 | # (the dirname of $[0] is not the place where we might find the |
| 176 | # original and so on. Autoconf is especially sensible to this). |
| 177 | . ./$as_me.lineno |
| 178 | # Exit status is that of the last command. |
| 179 | exit |
| 180 | } |
| 181 | |
| 182 | |
| 183 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 184 | *c*,-n*) ECHO_N= ECHO_C=' |
| 185 | ' ECHO_T=' ' ;; |
| 186 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 187 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 188 | esac |
| 189 | |
| 190 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 191 | as_expr=expr |
| 192 | else |
| 193 | as_expr=false |
| 194 | fi |
| 195 | |
| 196 | rm -f conf$$ conf$$.exe conf$$.file |
| 197 | echo >conf$$.file |
| 198 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 199 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 200 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 201 | if test -f conf$$.exe; then |
| 202 | # Don't use ln at all; we don't have any links |
| 203 | as_ln_s='cp -p' |
| 204 | else |
| 205 | as_ln_s='ln -s' |
| 206 | fi |
| 207 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 208 | as_ln_s=ln |
| 209 | else |
| 210 | as_ln_s='cp -p' |
| 211 | fi |
| 212 | rm -f conf$$ conf$$.exe conf$$.file |
| 213 | |
| 214 | as_executable_p="test -f" |
| 215 | |
| 216 | # Sed expression to map a string onto a valid CPP name. |
| 217 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 218 | |
| 219 | # Sed expression to map a string onto a valid variable name. |
| 220 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 221 | |
| 222 | |
| 223 | # IFS |
| 224 | # We need space, tab and new line, in precisely that order. |
| 225 | as_nl=' |
| 226 | ' |
| 227 | IFS=" $as_nl" |
| 228 | |
| 229 | # CDPATH. |
| 230 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 231 | |
| 232 | |
| 233 | # Name of the host. |
| 234 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 235 | # so uname gets run too. |
| 236 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 237 | |
| 238 | exec 6>&1 |
| 239 | |
| 240 | # |
| 241 | # Initializations. |
| 242 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 243 | ac_default_prefix=/usr/local |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 244 | cross_compiling=no |
| 245 | subdirs= |
| 246 | MFLAGS= |
| 247 | MAKEFLAGS= |
| 248 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 249 | |
| 250 | # Maximum number of lines to put in a shell here document. |
| 251 | # This variable seems obsolete. It should probably be removed, and |
| 252 | # only ac_max_sed_lines should be used. |
| 253 | : ${ac_max_here_lines=38} |
| 254 | |
| 255 | # Identity of this package. |
| 256 | PACKAGE_NAME= |
| 257 | PACKAGE_TARNAME= |
| 258 | PACKAGE_VERSION= |
| 259 | PACKAGE_STRING= |
| 260 | PACKAGE_BUGREPORT= |
| 261 | |
| 262 | ac_unique_file="Include/object.h" |
| 263 | # Factoring default headers for most tests. |
| 264 | ac_includes_default="\ |
| 265 | #include <stdio.h> |
| 266 | #if HAVE_SYS_TYPES_H |
| 267 | # include <sys/types.h> |
| 268 | #endif |
| 269 | #if HAVE_SYS_STAT_H |
| 270 | # include <sys/stat.h> |
| 271 | #endif |
| 272 | #if STDC_HEADERS |
| 273 | # include <stdlib.h> |
| 274 | # include <stddef.h> |
| 275 | #else |
| 276 | # if HAVE_STDLIB_H |
| 277 | # include <stdlib.h> |
| 278 | # endif |
| 279 | #endif |
| 280 | #if HAVE_STRING_H |
| 281 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 282 | # include <memory.h> |
| 283 | # endif |
| 284 | # include <string.h> |
| 285 | #endif |
| 286 | #if HAVE_STRINGS_H |
| 287 | # include <strings.h> |
| 288 | #endif |
| 289 | #if HAVE_INTTYPES_H |
| 290 | # include <inttypes.h> |
| 291 | #else |
| 292 | # if HAVE_STDINT_H |
| 293 | # include <stdint.h> |
| 294 | # endif |
| 295 | #endif |
| 296 | #if HAVE_UNISTD_H |
| 297 | # include <unistd.h> |
| 298 | #endif" |
| 299 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 300 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 301 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 302 | ac_init_help= |
| 303 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 304 | # The variables have the same names as the options, with |
| 305 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 306 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 307 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 308 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 309 | no_recursion= |
| 310 | prefix=NONE |
| 311 | program_prefix=NONE |
| 312 | program_suffix=NONE |
| 313 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 314 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 315 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 316 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 317 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 318 | x_includes=NONE |
| 319 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 320 | |
| 321 | # Installation directory options. |
| 322 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 323 | # and all the variables that are supposed to be based on exec_prefix |
| 324 | # by default will actually change. |
| 325 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 326 | bindir='${exec_prefix}/bin' |
| 327 | sbindir='${exec_prefix}/sbin' |
| 328 | libexecdir='${exec_prefix}/libexec' |
| 329 | datadir='${prefix}/share' |
| 330 | sysconfdir='${prefix}/etc' |
| 331 | sharedstatedir='${prefix}/com' |
| 332 | localstatedir='${prefix}/var' |
| 333 | libdir='${exec_prefix}/lib' |
| 334 | includedir='${prefix}/include' |
| 335 | oldincludedir='/usr/include' |
| 336 | infodir='${prefix}/info' |
| 337 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 338 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 339 | ac_prev= |
| 340 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 341 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 342 | # If the previous option needs an argument, assign it. |
| 343 | if test -n "$ac_prev"; then |
| 344 | eval "$ac_prev=\$ac_option" |
| 345 | ac_prev= |
| 346 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 347 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 349 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 350 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 351 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 353 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 354 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 355 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 356 | ac_prev=bindir ;; |
| 357 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 358 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 359 | |
| 360 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 361 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 362 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 363 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 364 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 365 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 366 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 367 | ac_prev=cache_file ;; |
| 368 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 369 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 370 | cache_file=$ac_optarg ;; |
| 371 | |
| 372 | --config-cache | -C) |
| 373 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 374 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 375 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 376 | ac_prev=datadir ;; |
| 377 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 378 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 379 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 380 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 381 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 382 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 383 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 384 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 385 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 386 | { (exit 1); exit 1; }; } |
| 387 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 388 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 389 | |
| 390 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 391 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 393 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 394 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 395 | { (exit 1); exit 1; }; } |
| 396 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 397 | case $ac_option in |
| 398 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 399 | *) ac_optarg=yes ;; |
| 400 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 401 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 402 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 403 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 404 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 405 | | --exec | --exe | --ex) |
| 406 | ac_prev=exec_prefix ;; |
| 407 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 408 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 409 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 410 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 411 | |
| 412 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 413 | # Obsolete; use --with-gas. |
| 414 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 416 | -help | --help | --hel | --he | -h) |
| 417 | ac_init_help=long ;; |
| 418 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 419 | ac_init_help=recursive ;; |
| 420 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 421 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 422 | |
| 423 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 424 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 425 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 426 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 427 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 428 | -includedir | --includedir | --includedi | --included | --include \ |
| 429 | | --includ | --inclu | --incl | --inc) |
| 430 | ac_prev=includedir ;; |
| 431 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 432 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 433 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 434 | |
| 435 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 436 | ac_prev=infodir ;; |
| 437 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 439 | |
| 440 | -libdir | --libdir | --libdi | --libd) |
| 441 | ac_prev=libdir ;; |
| 442 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 443 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 444 | |
| 445 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 446 | | --libexe | --libex | --libe) |
| 447 | ac_prev=libexecdir ;; |
| 448 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 449 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 451 | |
| 452 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 453 | | --localstate | --localstat | --localsta | --localst \ |
| 454 | | --locals | --local | --loca | --loc | --lo) |
| 455 | ac_prev=localstatedir ;; |
| 456 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 457 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 458 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 459 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 460 | |
| 461 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 462 | ac_prev=mandir ;; |
| 463 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 465 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 466 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 467 | # Obsolete; use --without-fp. |
| 468 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 469 | |
| 470 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 471 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 472 | no_create=yes ;; |
| 473 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 474 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 475 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 476 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 477 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 478 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 479 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 480 | | --oldin | --oldi | --old | --ol | --o) |
| 481 | ac_prev=oldincludedir ;; |
| 482 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 483 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 484 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 486 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 487 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 488 | ac_prev=prefix ;; |
| 489 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 491 | |
| 492 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 493 | | --program-pre | --program-pr | --program-p) |
| 494 | ac_prev=program_prefix ;; |
| 495 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 496 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 497 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 498 | |
| 499 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 500 | | --program-suf | --program-su | --program-s) |
| 501 | ac_prev=program_suffix ;; |
| 502 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 503 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 504 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 | |
| 506 | -program-transform-name | --program-transform-name \ |
| 507 | | --program-transform-nam | --program-transform-na \ |
| 508 | | --program-transform-n | --program-transform- \ |
| 509 | | --program-transform | --program-transfor \ |
| 510 | | --program-transfo | --program-transf \ |
| 511 | | --program-trans | --program-tran \ |
| 512 | | --progr-tra | --program-tr | --program-t) |
| 513 | ac_prev=program_transform_name ;; |
| 514 | -program-transform-name=* | --program-transform-name=* \ |
| 515 | | --program-transform-nam=* | --program-transform-na=* \ |
| 516 | | --program-transform-n=* | --program-transform-=* \ |
| 517 | | --program-transform=* | --program-transfor=* \ |
| 518 | | --program-transfo=* | --program-transf=* \ |
| 519 | | --program-trans=* | --program-tran=* \ |
| 520 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 521 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 522 | |
| 523 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 524 | | -silent | --silent | --silen | --sile | --sil) |
| 525 | silent=yes ;; |
| 526 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 527 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 528 | ac_prev=sbindir ;; |
| 529 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 530 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 531 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 532 | |
| 533 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 534 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 535 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 536 | | --sha | --sh) |
| 537 | ac_prev=sharedstatedir ;; |
| 538 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 539 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 540 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 541 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 543 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | -site | --site | --sit) |
| 545 | ac_prev=site ;; |
| 546 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 547 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 548 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 549 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 550 | ac_prev=srcdir ;; |
| 551 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 553 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 554 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 555 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 556 | ac_prev=sysconfdir ;; |
| 557 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 558 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 559 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 561 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 563 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 564 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 565 | |
| 566 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 567 | verbose=yes ;; |
| 568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | -version | --version | --versio | --versi | --vers | -V) |
| 570 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 571 | |
| 572 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 573 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 574 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 576 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 577 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 578 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | case $ac_option in |
| 580 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 581 | *) ac_optarg=yes ;; |
| 582 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 583 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 584 | |
| 585 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 587 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
| 591 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 592 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 593 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 594 | --x) |
| 595 | # Obsolete; use --with-x. |
| 596 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 597 | |
| 598 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 599 | | --x-incl | --x-inc | --x-in | --x-i) |
| 600 | ac_prev=x_includes ;; |
| 601 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 602 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 604 | |
| 605 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 606 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 607 | ac_prev=x_libraries ;; |
| 608 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 609 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 612 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 613 | Try \`$0 --help' for more information." >&2 |
| 614 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 615 | ;; |
| 616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | *=*) |
| 618 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 619 | # Reject names that are not valid shell variable names. |
| 620 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 621 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 622 | { (exit 1); exit 1; }; } |
| 623 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 624 | eval "$ac_envvar='$ac_optarg'" |
| 625 | export $ac_envvar ;; |
| 626 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 627 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 628 | # FIXME: should be removed in autoconf 3.0. |
| 629 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 630 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 631 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 632 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 633 | ;; |
| 634 | |
| 635 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 636 | done |
| 637 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 638 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 639 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 640 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 641 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 642 | fi |
| 643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 644 | # Be sure to have absolute paths. |
| 645 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 646 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 647 | eval ac_val=$`echo $ac_var` |
| 648 | case $ac_val in |
| 649 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 650 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 651 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 652 | esac |
| 653 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 655 | # Be sure to have absolute paths. |
| 656 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 657 | localstatedir libdir includedir oldincludedir infodir mandir |
| 658 | do |
| 659 | eval ac_val=$`echo $ac_var` |
| 660 | case $ac_val in |
| 661 | [\\/$]* | ?:[\\/]* ) ;; |
| 662 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 663 | { (exit 1); exit 1; }; };; |
| 664 | esac |
| 665 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 667 | # There might be people who depend on the old broken behavior: `$host' |
| 668 | # used to hold the argument of --host etc. |
| 669 | # FIXME: To remove some day. |
| 670 | build=$build_alias |
| 671 | host=$host_alias |
| 672 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 674 | # FIXME: To remove some day. |
| 675 | if test "x$host_alias" != x; then |
| 676 | if test "x$build_alias" = x; then |
| 677 | cross_compiling=maybe |
| 678 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 679 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 680 | elif test "x$build_alias" != "x$host_alias"; then |
| 681 | cross_compiling=yes |
| 682 | fi |
| 683 | fi |
| 684 | |
| 685 | ac_tool_prefix= |
| 686 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 687 | |
| 688 | test "$silent" = yes && exec 6>/dev/null |
| 689 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 690 | |
| 691 | # Find the source files, if location was not specified. |
| 692 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 693 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 694 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 695 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 696 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 697 | X"$0" : 'X\(//\)[^/]' \| \ |
| 698 | X"$0" : 'X\(//\)$' \| \ |
| 699 | X"$0" : 'X\(/\)' \| \ |
| 700 | . : '\(.\)' 2>/dev/null || |
| 701 | echo X"$0" | |
| 702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 703 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 704 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 705 | /^X\(\/\).*/{ s//\1/; q; } |
| 706 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 707 | srcdir=$ac_confdir |
| 708 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 709 | srcdir=.. |
| 710 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 711 | else |
| 712 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 713 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 714 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 715 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 716 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 717 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 719 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 720 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 721 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 722 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 723 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 724 | ac_env_build_alias_set=${build_alias+set} |
| 725 | ac_env_build_alias_value=$build_alias |
| 726 | ac_cv_env_build_alias_set=${build_alias+set} |
| 727 | ac_cv_env_build_alias_value=$build_alias |
| 728 | ac_env_host_alias_set=${host_alias+set} |
| 729 | ac_env_host_alias_value=$host_alias |
| 730 | ac_cv_env_host_alias_set=${host_alias+set} |
| 731 | ac_cv_env_host_alias_value=$host_alias |
| 732 | ac_env_target_alias_set=${target_alias+set} |
| 733 | ac_env_target_alias_value=$target_alias |
| 734 | ac_cv_env_target_alias_set=${target_alias+set} |
| 735 | ac_cv_env_target_alias_value=$target_alias |
| 736 | ac_env_CC_set=${CC+set} |
| 737 | ac_env_CC_value=$CC |
| 738 | ac_cv_env_CC_set=${CC+set} |
| 739 | ac_cv_env_CC_value=$CC |
| 740 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 741 | ac_env_CFLAGS_value=$CFLAGS |
| 742 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 743 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 744 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 745 | ac_env_LDFLAGS_value=$LDFLAGS |
| 746 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 747 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 748 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 749 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 750 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 751 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 752 | ac_env_CPP_set=${CPP+set} |
| 753 | ac_env_CPP_value=$CPP |
| 754 | ac_cv_env_CPP_set=${CPP+set} |
| 755 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 757 | # |
| 758 | # Report the --help message. |
| 759 | # |
| 760 | if test "$ac_init_help" = "long"; then |
| 761 | # Omit some internal or obsolete options to make the list less imposing. |
| 762 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 763 | cat <<_ACEOF |
| 764 | \`configure' configures this package to adapt to many kinds of systems. |
| 765 | |
| 766 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 767 | |
| 768 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 769 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 770 | |
| 771 | Defaults for the options are specified in brackets. |
| 772 | |
| 773 | Configuration: |
| 774 | -h, --help display this help and exit |
| 775 | --help=short display options specific to this package |
| 776 | --help=recursive display the short help of all the included packages |
| 777 | -V, --version display version information and exit |
| 778 | -q, --quiet, --silent do not print \`checking...' messages |
| 779 | --cache-file=FILE cache test results in FILE [disabled] |
| 780 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 781 | -n, --no-create do not create output files |
| 782 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 783 | |
| 784 | _ACEOF |
| 785 | |
| 786 | cat <<_ACEOF |
| 787 | Installation directories: |
| 788 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 789 | [$ac_default_prefix] |
| 790 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 791 | [PREFIX] |
| 792 | |
| 793 | By default, \`make install' will install all the files in |
| 794 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 795 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 796 | for instance \`--prefix=\$HOME'. |
| 797 | |
| 798 | For better control, use the options below. |
| 799 | |
| 800 | Fine tuning of the installation directories: |
| 801 | --bindir=DIR user executables [EPREFIX/bin] |
| 802 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 803 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 804 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 805 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 806 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 807 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 808 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 809 | --includedir=DIR C header files [PREFIX/include] |
| 810 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 811 | --infodir=DIR info documentation [PREFIX/info] |
| 812 | --mandir=DIR man documentation [PREFIX/man] |
| 813 | _ACEOF |
| 814 | |
| 815 | cat <<\_ACEOF |
| 816 | _ACEOF |
| 817 | fi |
| 818 | |
| 819 | if test -n "$ac_init_help"; then |
| 820 | |
| 821 | cat <<\_ACEOF |
| 822 | |
| 823 | Optional Features: |
| 824 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 825 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 826 | --enable-framework=INSTALLDIR Build (MacOSX|Darwin) framework |
| 827 | --enable-shared disable/enable building shared python library |
| 828 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 829 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 830 | --disable-ipv6 Disable ipv6 support |
| 831 | --enable-unicode=ucs2,ucs4 Enable Unicode strings (default is yes) |
| 832 | |
| 833 | Optional Packages: |
| 834 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 835 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 836 | --without-gcc never use gcc |
| 837 | --with-cxx=<compiler> enable C++ support |
| 838 | --with-suffix=.exe set executable suffix |
| 839 | --with-pydebug build with Py_DEBUG defined |
| 840 | --with-libs='lib1 ...' link against additional libs |
| 841 | --with-signal-module disable/enable signal module |
| 842 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 843 | --with(out)-threads=DIRECTORY disable/enable thread support |
| 844 | --with(out)-thread=DIRECTORY deprecated; use --with(out)-threads |
| 845 | --with-pth use GNU pth threading libraries |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 846 | --with(out)-universal-newlines disable/enable foreign newlines |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 847 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 848 | --with(out)-pymalloc disable/enable specialized mallocs |
| 849 | --with-wctype-functions use wctype.h functions |
| 850 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 851 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking |
| 852 | --with-fpectl enable SIGFPE catching |
| 853 | --with-libm=STRING math library |
| 854 | --with-libc=STRING C library |
| 855 | |
| 856 | Some influential environment variables: |
| 857 | CC C compiler command |
| 858 | CFLAGS C compiler flags |
| 859 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 860 | nonstandard directory <lib dir> |
| 861 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 862 | headers in a nonstandard directory <include dir> |
| 863 | CPP C preprocessor |
| 864 | |
| 865 | Use these variables to override the choices made by `configure' or to help |
| 866 | it to find libraries and programs with nonstandard names/locations. |
| 867 | |
| 868 | _ACEOF |
| 869 | fi |
| 870 | |
| 871 | if test "$ac_init_help" = "recursive"; then |
| 872 | # If there are subdirs, report their specific --help. |
| 873 | ac_popdir=`pwd` |
| 874 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 875 | test -d $ac_dir || continue |
| 876 | ac_builddir=. |
| 877 | |
| 878 | if test "$ac_dir" != .; then |
| 879 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 880 | # A "../" for each directory in $ac_dir_suffix. |
| 881 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 882 | else |
| 883 | ac_dir_suffix= ac_top_builddir= |
| 884 | fi |
| 885 | |
| 886 | case $srcdir in |
| 887 | .) # No --srcdir option. We are building in place. |
| 888 | ac_srcdir=. |
| 889 | if test -z "$ac_top_builddir"; then |
| 890 | ac_top_srcdir=. |
| 891 | else |
| 892 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 893 | fi ;; |
| 894 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 895 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 896 | ac_top_srcdir=$srcdir ;; |
| 897 | *) # Relative path. |
| 898 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 899 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 900 | esac |
| 901 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 902 | # absolute. |
| 903 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 904 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 905 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 906 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 907 | |
| 908 | cd $ac_dir |
| 909 | # Check for guested configure; otherwise get Cygnus style configure. |
| 910 | if test -f $ac_srcdir/configure.gnu; then |
| 911 | echo |
| 912 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 913 | elif test -f $ac_srcdir/configure; then |
| 914 | echo |
| 915 | $SHELL $ac_srcdir/configure --help=recursive |
| 916 | elif test -f $ac_srcdir/configure.ac || |
| 917 | test -f $ac_srcdir/configure.in; then |
| 918 | echo |
| 919 | $ac_configure --help |
| 920 | else |
| 921 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 922 | fi |
| 923 | cd $ac_popdir |
| 924 | done |
| 925 | fi |
| 926 | |
| 927 | test -n "$ac_init_help" && exit 0 |
| 928 | if $ac_init_version; then |
| 929 | cat <<\_ACEOF |
| 930 | |
| 931 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 932 | Free Software Foundation, Inc. |
| 933 | This configure script is free software; the Free Software Foundation |
| 934 | gives unlimited permission to copy, distribute and modify it. |
| 935 | _ACEOF |
| 936 | exit 0 |
| 937 | fi |
| 938 | exec 5>config.log |
| 939 | cat >&5 <<_ACEOF |
| 940 | This file contains any messages produced by compilers while |
| 941 | running configure, to aid debugging if configure makes a mistake. |
| 942 | |
| 943 | It was created by $as_me, which was |
| 944 | generated by GNU Autoconf 2.53. Invocation command line was |
| 945 | |
| 946 | $ $0 $@ |
| 947 | |
| 948 | _ACEOF |
| 949 | { |
| 950 | cat <<_ASUNAME |
| 951 | ## --------- ## |
| 952 | ## Platform. ## |
| 953 | ## --------- ## |
| 954 | |
| 955 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 956 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 957 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 958 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 959 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 960 | |
| 961 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 962 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 963 | |
| 964 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 965 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 966 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 967 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 968 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 969 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 970 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 971 | |
| 972 | _ASUNAME |
| 973 | |
| 974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 975 | for as_dir in $PATH |
| 976 | do |
| 977 | IFS=$as_save_IFS |
| 978 | test -z "$as_dir" && as_dir=. |
| 979 | echo "PATH: $as_dir" |
| 980 | done |
| 981 | |
| 982 | } >&5 |
| 983 | |
| 984 | cat >&5 <<_ACEOF |
| 985 | |
| 986 | |
| 987 | ## ----------- ## |
| 988 | ## Core tests. ## |
| 989 | ## ----------- ## |
| 990 | |
| 991 | _ACEOF |
| 992 | |
| 993 | |
| 994 | # Keep a trace of the command line. |
| 995 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 996 | # Also quote any args containing shell meta-characters. |
| 997 | ac_configure_args= |
| 998 | ac_sep= |
| 999 | for ac_arg |
| 1000 | do |
| 1001 | case $ac_arg in |
| 1002 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1003 | | --no-cr | --no-c | -n ) continue ;; |
| 1004 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1005 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1006 | continue ;; |
| 1007 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1008 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1009 | esac |
| 1010 | case " $ac_configure_args " in |
| 1011 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1012 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1013 | ac_sep=" " ;; |
| 1014 | esac |
| 1015 | # Get rid of the leading space. |
| 1016 | done |
| 1017 | |
| 1018 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1019 | # config.log. We remove comments because anyway the quotes in there |
| 1020 | # would cause problems or look ugly. |
| 1021 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1022 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1023 | trap 'exit_status=$? |
| 1024 | # Save into config.log some information that might help in debugging. |
| 1025 | { |
| 1026 | echo |
| 1027 | cat <<\_ASBOX |
| 1028 | ## ---------------- ## |
| 1029 | ## Cache variables. ## |
| 1030 | ## ---------------- ## |
| 1031 | _ASBOX |
| 1032 | echo |
| 1033 | # The following way of writing the cache mishandles newlines in values, |
| 1034 | { |
| 1035 | (set) 2>&1 | |
| 1036 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1037 | *ac_space=\ *) |
| 1038 | sed -n \ |
| 1039 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1040 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1041 | ;; |
| 1042 | *) |
| 1043 | sed -n \ |
| 1044 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1045 | ;; |
| 1046 | esac; |
| 1047 | } |
| 1048 | echo |
| 1049 | if test -s confdefs.h; then |
| 1050 | cat <<\_ASBOX |
| 1051 | ## ----------- ## |
| 1052 | ## confdefs.h. ## |
| 1053 | ## ----------- ## |
| 1054 | _ASBOX |
| 1055 | echo |
| 1056 | sed "/^$/d" confdefs.h |
| 1057 | echo |
| 1058 | fi |
| 1059 | test "$ac_signal" != 0 && |
| 1060 | echo "$as_me: caught signal $ac_signal" |
| 1061 | echo "$as_me: exit $exit_status" |
| 1062 | } >&5 |
| 1063 | rm -f core core.* *.core && |
| 1064 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1065 | exit $exit_status |
| 1066 | ' 0 |
| 1067 | for ac_signal in 1 2 13 15; do |
| 1068 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1069 | done |
| 1070 | ac_signal=0 |
| 1071 | |
| 1072 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1073 | rm -rf conftest* confdefs.h |
| 1074 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1075 | echo >confdefs.h |
| 1076 | |
| 1077 | # Predefined preprocessor variables. |
| 1078 | |
| 1079 | cat >>confdefs.h <<_ACEOF |
| 1080 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1081 | _ACEOF |
| 1082 | |
| 1083 | |
| 1084 | cat >>confdefs.h <<_ACEOF |
| 1085 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1086 | _ACEOF |
| 1087 | |
| 1088 | |
| 1089 | cat >>confdefs.h <<_ACEOF |
| 1090 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1091 | _ACEOF |
| 1092 | |
| 1093 | |
| 1094 | cat >>confdefs.h <<_ACEOF |
| 1095 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1096 | _ACEOF |
| 1097 | |
| 1098 | |
| 1099 | cat >>confdefs.h <<_ACEOF |
| 1100 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1101 | _ACEOF |
| 1102 | |
| 1103 | |
| 1104 | # Let the site file select an alternate cache file if it wants to. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1105 | # Prefer explicitly selected file to automatically selected ones. |
| 1106 | if test -z "$CONFIG_SITE"; then |
| 1107 | if test "x$prefix" != xNONE; then |
| 1108 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1109 | else |
| 1110 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1111 | fi |
| 1112 | fi |
| 1113 | for ac_site_file in $CONFIG_SITE; do |
| 1114 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1116 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1117 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1118 | . "$ac_site_file" |
| 1119 | fi |
| 1120 | done |
| 1121 | |
| 1122 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | # Some versions of bash will fail to source /dev/null (special |
| 1124 | # files actually), so we avoid doing that. |
| 1125 | if test -f "$cache_file"; then |
| 1126 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1127 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1128 | case $cache_file in |
| 1129 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1130 | *) . ./$cache_file;; |
| 1131 | esac |
| 1132 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1134 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1135 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1136 | >$cache_file |
| 1137 | fi |
| 1138 | |
| 1139 | # Check that the precious variables saved in the cache have kept the same |
| 1140 | # value. |
| 1141 | ac_cache_corrupted=false |
| 1142 | for ac_var in `(set) 2>&1 | |
| 1143 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1144 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1145 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1146 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1147 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1148 | case $ac_old_set,$ac_new_set in |
| 1149 | set,) |
| 1150 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1151 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1152 | ac_cache_corrupted=: ;; |
| 1153 | ,set) |
| 1154 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1155 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1156 | ac_cache_corrupted=: ;; |
| 1157 | ,);; |
| 1158 | *) |
| 1159 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1160 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1161 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1162 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1163 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1164 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1165 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1166 | ac_cache_corrupted=: |
| 1167 | fi;; |
| 1168 | esac |
| 1169 | # Pass precious variables to config.status. |
| 1170 | if test "$ac_new_set" = set; then |
| 1171 | case $ac_new_val in |
| 1172 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1173 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1174 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1175 | esac |
| 1176 | case " $ac_configure_args " in |
| 1177 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1178 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1179 | esac |
| 1180 | fi |
| 1181 | done |
| 1182 | if $ac_cache_corrupted; then |
| 1183 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1184 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1185 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1186 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1187 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1188 | fi |
| 1189 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1190 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1191 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1195 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1196 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1197 | |
| 1198 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | ac_config_headers="$ac_config_headers pyconfig.h" |
| 1214 | |
| 1215 | |
| 1216 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1217 | # Please use pyport.h instead, if possible. |
| 1218 | |
| 1219 | |
| 1220 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1221 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 1222 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1223 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1224 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1225 | |
| 1226 | SOVERSION=1.0 |
| 1227 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1228 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1229 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1230 | |
| 1231 | cat >>confdefs.h <<\_ACEOF |
| 1232 | #define _GNU_SOURCE 1 |
| 1233 | _ACEOF |
| 1234 | |
| 1235 | |
| 1236 | # The definition of _GNU_SOURCE potentially causes a change of the value |
| 1237 | # of _XOPEN_SOURCE. So define it only conditionally. |
| 1238 | |
| 1239 | |
| 1240 | cat >>confdefs.h <<\_ACEOF |
| 1241 | #define _XOPEN_SOURCE 500 |
| 1242 | _ACEOF |
| 1243 | |
| 1244 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1245 | # Arguments passed to configure. |
| 1246 | |
| 1247 | CONFIG_ARGS="$ac_configure_args" |
| 1248 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1249 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1250 | # Check whether --enable-framework or --disable-framework was given. |
| 1251 | if test "${enable_framework+set}" = set; then |
| 1252 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1253 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1254 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1255 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1256 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1257 | esac |
| 1258 | case $enableval in |
| 1259 | no) |
| 1260 | PYTHONFRAMEWORK= |
| 1261 | PYTHONFRAMEWORKDIR=no-framework |
| 1262 | PYTHONFRAMEWORKPREFIX= |
| 1263 | PYTHONFRAMEWORKINSTALLDIR= |
| 1264 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1265 | ;; |
| 1266 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1267 | PYTHONFRAMEWORK=Python |
| 1268 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1269 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1270 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1271 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1272 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1273 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1276 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1277 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1278 | PYTHONFRAMEWORKPREFIX= |
| 1279 | PYTHONFRAMEWORKINSTALLDIR= |
| 1280 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1287 | |
| 1288 | ##AC_ARG_WITH(dyld, |
| 1289 | ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) |
| 1290 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1291 | # Set name for machine-dependent library files |
| 1292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1293 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1294 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1295 | if test -z "$MACHDEP" |
| 1296 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1297 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1298 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1299 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1300 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1301 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1302 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1303 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1304 | ac_md_system=`echo $ac_sys_system | |
| 1305 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1306 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1307 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1308 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1309 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1310 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1311 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1312 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1313 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1314 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1315 | esac |
| 1316 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1317 | |
| 1318 | # |
| 1319 | # SGI compilers allow the specification of the both the ABI and the |
| 1320 | # ISA on the command line. Depending on the values of these switches, |
| 1321 | # different and often incompatable code will be generated. |
| 1322 | # |
| 1323 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1324 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1325 | # variable is also adjusted. |
| 1326 | # |
| 1327 | |
| 1328 | if test ! -z "$SGI_ABI" |
| 1329 | then |
| 1330 | CC="cc $SGI_ABI" |
| 1331 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1332 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1333 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1334 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1335 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1336 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1337 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1338 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1339 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1340 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1341 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1342 | if test "${with_gcc+set}" = set; then |
| 1343 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1344 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1345 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1346 | no) CC=cc |
| 1347 | without_gcc=yes;; |
| 1348 | yes) CC=gcc |
| 1349 | without_gcc=no;; |
| 1350 | *) CC=$withval |
| 1351 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1352 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1354 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1355 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1356 | AIX*) CC=cc_r |
| 1357 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1358 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1359 | case $BE_HOST_CPU in |
| 1360 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1361 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1362 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1363 | OPT="-O -export pragma" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1364 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1365 | ;; |
| 1366 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1367 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1368 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1369 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1370 | ;; |
| 1371 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1372 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1373 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1374 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1375 | ;; |
| 1376 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1377 | AR="\$(srcdir)/Modules/ar_beos" |
| 1378 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1379 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1380 | Monterey*) |
| 1381 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1382 | without_gcc=;; |
| 1383 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1384 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1385 | fi; |
| 1386 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1387 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1388 | |
| 1389 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1390 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1391 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1393 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1394 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1395 | # Check whether --with-cxx or --without-cxx was given. |
| 1396 | if test "${with_cxx+set}" = set; then |
| 1397 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1398 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1399 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1400 | case $withval in |
| 1401 | no) CXX= |
| 1402 | with_cxx=no;; |
| 1403 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1404 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1405 | with_cxx=$withval;; |
| 1406 | esac |
| 1407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1408 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1409 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1410 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | fi; |
| 1413 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1414 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1415 | |
| 1416 | if test "$with_cxx" = "yes" |
| 1417 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1418 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1419 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1420 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1421 | fi |
| 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1426 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1427 | then |
| 1428 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1429 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 | # 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] | 1431 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1434 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1436 | else |
| 1437 | if test -n "$CXX"; then |
| 1438 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1441 | for as_dir in $PATH |
| 1442 | do |
| 1443 | IFS=$as_save_IFS |
| 1444 | test -z "$as_dir" && as_dir=. |
| 1445 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1447 | ac_cv_prog_CXX="$ac_prog" |
| 1448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1449 | break 2 |
| 1450 | fi |
| 1451 | done |
| 1452 | done |
| 1453 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1454 | fi |
| 1455 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1457 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1458 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1459 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | echo "$as_me:$LINENO: result: no" >&5 |
| 1462 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1463 | fi |
| 1464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1465 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1466 | done |
| 1467 | test -n "$CXX" || CXX="notfound" |
| 1468 | |
| 1469 | if test "$CXX" = "notfound" |
| 1470 | then |
| 1471 | CXX= |
| 1472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1474 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1475 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1476 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1477 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1478 | cat >conftest.$ac_ext <<_ACEOF |
| 1479 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1480 | #include "confdefs.h" |
| 1481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1482 | #ifdef F77_DUMMY_MAIN |
| 1483 | # ifdef __cplusplus |
| 1484 | extern "C" |
| 1485 | # endif |
| 1486 | int F77_DUMMY_MAIN() { return 1; } |
| 1487 | #endif |
| 1488 | int |
| 1489 | main () |
| 1490 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 | ; |
| 1493 | return 0; |
| 1494 | } |
| 1495 | _ACEOF |
| 1496 | ac_clean_files_save=$ac_clean_files |
| 1497 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1498 | # Try to create an executable without -o first, disregard a.out. |
| 1499 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1500 | # of exeext. |
| 1501 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1502 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1503 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1504 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1505 | (eval $ac_link_default) 2>&5 |
| 1506 | ac_status=$? |
| 1507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1508 | (exit $ac_status); }; then |
| 1509 | # Find the output, starting from the most likely. This scheme is |
| 1510 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1511 | # resort. |
| 1512 | |
| 1513 | # Be careful to initialize this variable, since it used to be cached. |
| 1514 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1515 | ac_cv_exeext= |
| 1516 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1517 | ls a.out conftest 2>/dev/null; |
| 1518 | ls a.* conftest.* 2>/dev/null`; do |
| 1519 | case $ac_file in |
| 1520 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1521 | a.out ) # We found the default executable, but exeext='' is most |
| 1522 | # certainly right. |
| 1523 | break;; |
| 1524 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1525 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1526 | export ac_cv_exeext |
| 1527 | break;; |
| 1528 | * ) break;; |
| 1529 | esac |
| 1530 | done |
| 1531 | else |
| 1532 | echo "$as_me: failed program was:" >&5 |
| 1533 | cat conftest.$ac_ext >&5 |
| 1534 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1535 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1536 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | |
| 1539 | ac_exeext=$ac_cv_exeext |
| 1540 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1541 | echo "${ECHO_T}$ac_file" >&6 |
| 1542 | |
| 1543 | # Check the compiler produces executables we can run. If not, either |
| 1544 | # the compiler is broken, or we cross compile. |
| 1545 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1546 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1547 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1548 | # If not cross compiling, check that we can run a simple program. |
| 1549 | if test "$cross_compiling" != yes; then |
| 1550 | if { ac_try='./$ac_file' |
| 1551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1552 | (eval $ac_try) 2>&5 |
| 1553 | ac_status=$? |
| 1554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1555 | (exit $ac_status); }; }; then |
| 1556 | cross_compiling=no |
| 1557 | else |
| 1558 | if test "$cross_compiling" = maybe; then |
| 1559 | cross_compiling=yes |
| 1560 | else |
| 1561 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1562 | If you meant to cross compile, use \`--host'." >&5 |
| 1563 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1564 | If you meant to cross compile, use \`--host'." >&2;} |
| 1565 | { (exit 1); exit 1; }; } |
| 1566 | fi |
| 1567 | fi |
| 1568 | fi |
| 1569 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1570 | echo "${ECHO_T}yes" >&6 |
| 1571 | |
| 1572 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1573 | ac_clean_files=$ac_clean_files_save |
| 1574 | # Check the compiler produces executables we can run. If not, either |
| 1575 | # the compiler is broken, or we cross compile. |
| 1576 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1577 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1578 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1579 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1580 | |
| 1581 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1582 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1584 | (eval $ac_link) 2>&5 |
| 1585 | ac_status=$? |
| 1586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1587 | (exit $ac_status); }; then |
| 1588 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1589 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1590 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1591 | # `rm'. |
| 1592 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1593 | case $ac_file in |
| 1594 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1595 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1596 | export ac_cv_exeext |
| 1597 | break;; |
| 1598 | * ) break;; |
| 1599 | esac |
| 1600 | done |
| 1601 | else |
| 1602 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1603 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1604 | { (exit 1); exit 1; }; } |
| 1605 | fi |
| 1606 | |
| 1607 | rm -f conftest$ac_cv_exeext |
| 1608 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1609 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1610 | |
| 1611 | rm -f conftest.$ac_ext |
| 1612 | EXEEXT=$ac_cv_exeext |
| 1613 | ac_exeext=$EXEEXT |
| 1614 | |
| 1615 | ac_ext=c |
| 1616 | ac_cpp='$CPP $CPPFLAGS' |
| 1617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1620 | |
| 1621 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1622 | |
| 1623 | fi |
| 1624 | fi |
| 1625 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1626 | # If the user switches compilers, we can't believe the cache |
| 1627 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1628 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1629 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1630 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1631 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1632 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1633 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1634 | fi |
| 1635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1636 | ac_ext=c |
| 1637 | ac_cpp='$CPP $CPPFLAGS' |
| 1638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1641 | if test -n "$ac_tool_prefix"; then |
| 1642 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1643 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1646 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1648 | else |
| 1649 | if test -n "$CC"; then |
| 1650 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1653 | for as_dir in $PATH |
| 1654 | do |
| 1655 | IFS=$as_save_IFS |
| 1656 | test -z "$as_dir" && as_dir=. |
| 1657 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1659 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1661 | break 2 |
| 1662 | fi |
| 1663 | done |
| 1664 | done |
| 1665 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1666 | fi |
| 1667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1668 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1669 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1670 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1671 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1673 | echo "$as_me:$LINENO: result: no" >&5 |
| 1674 | echo "${ECHO_T}no" >&6 |
| 1675 | fi |
| 1676 | |
| 1677 | fi |
| 1678 | if test -z "$ac_cv_prog_CC"; then |
| 1679 | ac_ct_CC=$CC |
| 1680 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1681 | set dummy gcc; ac_word=$2 |
| 1682 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1684 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1686 | else |
| 1687 | if test -n "$ac_ct_CC"; then |
| 1688 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1689 | else |
| 1690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1691 | for as_dir in $PATH |
| 1692 | do |
| 1693 | IFS=$as_save_IFS |
| 1694 | test -z "$as_dir" && as_dir=. |
| 1695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1696 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1697 | ac_cv_prog_ac_ct_CC="gcc" |
| 1698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1699 | break 2 |
| 1700 | fi |
| 1701 | done |
| 1702 | done |
| 1703 | |
| 1704 | fi |
| 1705 | fi |
| 1706 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1707 | if test -n "$ac_ct_CC"; then |
| 1708 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1709 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1710 | else |
| 1711 | echo "$as_me:$LINENO: result: no" >&5 |
| 1712 | echo "${ECHO_T}no" >&6 |
| 1713 | fi |
| 1714 | |
| 1715 | CC=$ac_ct_CC |
| 1716 | else |
| 1717 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1718 | fi |
| 1719 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1720 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1721 | if test -n "$ac_tool_prefix"; then |
| 1722 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1723 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1724 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1726 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1728 | else |
| 1729 | if test -n "$CC"; then |
| 1730 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1733 | for as_dir in $PATH |
| 1734 | do |
| 1735 | IFS=$as_save_IFS |
| 1736 | test -z "$as_dir" && as_dir=. |
| 1737 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1738 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1739 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1741 | break 2 |
| 1742 | fi |
| 1743 | done |
| 1744 | done |
| 1745 | |
| 1746 | fi |
| 1747 | fi |
| 1748 | CC=$ac_cv_prog_CC |
| 1749 | if test -n "$CC"; then |
| 1750 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1751 | echo "${ECHO_T}$CC" >&6 |
| 1752 | else |
| 1753 | echo "$as_me:$LINENO: result: no" >&5 |
| 1754 | echo "${ECHO_T}no" >&6 |
| 1755 | fi |
| 1756 | |
| 1757 | fi |
| 1758 | if test -z "$ac_cv_prog_CC"; then |
| 1759 | ac_ct_CC=$CC |
| 1760 | # Extract the first word of "cc", so it can be a program name with args. |
| 1761 | set dummy cc; ac_word=$2 |
| 1762 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1764 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1766 | else |
| 1767 | if test -n "$ac_ct_CC"; then |
| 1768 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1769 | else |
| 1770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1771 | for as_dir in $PATH |
| 1772 | do |
| 1773 | IFS=$as_save_IFS |
| 1774 | test -z "$as_dir" && as_dir=. |
| 1775 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1776 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1777 | ac_cv_prog_ac_ct_CC="cc" |
| 1778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1779 | break 2 |
| 1780 | fi |
| 1781 | done |
| 1782 | done |
| 1783 | |
| 1784 | fi |
| 1785 | fi |
| 1786 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1787 | if test -n "$ac_ct_CC"; then |
| 1788 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1789 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1790 | else |
| 1791 | echo "$as_me:$LINENO: result: no" >&5 |
| 1792 | echo "${ECHO_T}no" >&6 |
| 1793 | fi |
| 1794 | |
| 1795 | CC=$ac_ct_CC |
| 1796 | else |
| 1797 | CC="$ac_cv_prog_CC" |
| 1798 | fi |
| 1799 | |
| 1800 | fi |
| 1801 | if test -z "$CC"; then |
| 1802 | # Extract the first word of "cc", so it can be a program name with args. |
| 1803 | set dummy cc; ac_word=$2 |
| 1804 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1806 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1808 | else |
| 1809 | if test -n "$CC"; then |
| 1810 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1811 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1812 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1814 | for as_dir in $PATH |
| 1815 | do |
| 1816 | IFS=$as_save_IFS |
| 1817 | test -z "$as_dir" && as_dir=. |
| 1818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1819 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1820 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1821 | ac_prog_rejected=yes |
| 1822 | continue |
| 1823 | fi |
| 1824 | ac_cv_prog_CC="cc" |
| 1825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1826 | break 2 |
| 1827 | fi |
| 1828 | done |
| 1829 | done |
| 1830 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1831 | if test $ac_prog_rejected = yes; then |
| 1832 | # We found a bogon in the path, so make sure we never use it. |
| 1833 | set dummy $ac_cv_prog_CC |
| 1834 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1835 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1836 | # We chose a different compiler from the bogus one. |
| 1837 | # However, it has the same basename, so the bogon will be chosen |
| 1838 | # first if we set CC to just the basename; use the full file name. |
| 1839 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1840 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1841 | shift |
| 1842 | ac_cv_prog_CC="$@" |
| 1843 | fi |
| 1844 | fi |
| 1845 | fi |
| 1846 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1847 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1848 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1849 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1850 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1852 | echo "$as_me:$LINENO: result: no" >&5 |
| 1853 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1854 | fi |
| 1855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1856 | fi |
| 1857 | if test -z "$CC"; then |
| 1858 | if test -n "$ac_tool_prefix"; then |
| 1859 | for ac_prog in cl |
| 1860 | do |
| 1861 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1862 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1865 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1867 | else |
| 1868 | if test -n "$CC"; then |
| 1869 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1872 | for as_dir in $PATH |
| 1873 | do |
| 1874 | IFS=$as_save_IFS |
| 1875 | test -z "$as_dir" && as_dir=. |
| 1876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1878 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1880 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1882 | done |
| 1883 | done |
| 1884 | |
| 1885 | fi |
| 1886 | fi |
| 1887 | CC=$ac_cv_prog_CC |
| 1888 | if test -n "$CC"; then |
| 1889 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1890 | echo "${ECHO_T}$CC" >&6 |
| 1891 | else |
| 1892 | echo "$as_me:$LINENO: result: no" >&5 |
| 1893 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1894 | fi |
| 1895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1896 | test -n "$CC" && break |
| 1897 | done |
| 1898 | fi |
| 1899 | if test -z "$CC"; then |
| 1900 | ac_ct_CC=$CC |
| 1901 | for ac_prog in cl |
| 1902 | do |
| 1903 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1904 | set dummy $ac_prog; ac_word=$2 |
| 1905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1907 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1909 | else |
| 1910 | if test -n "$ac_ct_CC"; then |
| 1911 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1912 | else |
| 1913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1914 | for as_dir in $PATH |
| 1915 | do |
| 1916 | IFS=$as_save_IFS |
| 1917 | test -z "$as_dir" && as_dir=. |
| 1918 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1920 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1922 | break 2 |
| 1923 | fi |
| 1924 | done |
| 1925 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1927 | fi |
| 1928 | fi |
| 1929 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1930 | if test -n "$ac_ct_CC"; then |
| 1931 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1932 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1933 | else |
| 1934 | echo "$as_me:$LINENO: result: no" >&5 |
| 1935 | echo "${ECHO_T}no" >&6 |
| 1936 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1937 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1938 | test -n "$ac_ct_CC" && break |
| 1939 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1941 | CC=$ac_ct_CC |
| 1942 | fi |
| 1943 | |
| 1944 | fi |
| 1945 | |
| 1946 | |
| 1947 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1948 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1949 | { (exit 1); exit 1; }; } |
| 1950 | |
| 1951 | # Provide some information about the compiler. |
| 1952 | echo "$as_me:$LINENO:" \ |
| 1953 | "checking for C compiler version" >&5 |
| 1954 | ac_compiler=`set X $ac_compile; echo $2` |
| 1955 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1956 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1957 | ac_status=$? |
| 1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1959 | (exit $ac_status); } |
| 1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1961 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1962 | ac_status=$? |
| 1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1964 | (exit $ac_status); } |
| 1965 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1966 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1967 | ac_status=$? |
| 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1969 | (exit $ac_status); } |
| 1970 | |
| 1971 | cat >conftest.$ac_ext <<_ACEOF |
| 1972 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1973 | #include "confdefs.h" |
| 1974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1975 | #ifdef F77_DUMMY_MAIN |
| 1976 | # ifdef __cplusplus |
| 1977 | extern "C" |
| 1978 | # endif |
| 1979 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1980 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1981 | int |
| 1982 | main () |
| 1983 | { |
| 1984 | |
| 1985 | ; |
| 1986 | return 0; |
| 1987 | } |
| 1988 | _ACEOF |
| 1989 | ac_clean_files_save=$ac_clean_files |
| 1990 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1991 | # Try to create an executable without -o first, disregard a.out. |
| 1992 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1993 | # of exeext. |
| 1994 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1995 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1996 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1997 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1998 | (eval $ac_link_default) 2>&5 |
| 1999 | ac_status=$? |
| 2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2001 | (exit $ac_status); }; then |
| 2002 | # Find the output, starting from the most likely. This scheme is |
| 2003 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2004 | # resort. |
| 2005 | |
| 2006 | # Be careful to initialize this variable, since it used to be cached. |
| 2007 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2008 | ac_cv_exeext= |
| 2009 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2010 | ls a.out conftest 2>/dev/null; |
| 2011 | ls a.* conftest.* 2>/dev/null`; do |
| 2012 | case $ac_file in |
| 2013 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2014 | a.out ) # We found the default executable, but exeext='' is most |
| 2015 | # certainly right. |
| 2016 | break;; |
| 2017 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2018 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2019 | export ac_cv_exeext |
| 2020 | break;; |
| 2021 | * ) break;; |
| 2022 | esac |
| 2023 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2025 | echo "$as_me: failed program was:" >&5 |
| 2026 | cat conftest.$ac_ext >&5 |
| 2027 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2028 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2029 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2030 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2032 | ac_exeext=$ac_cv_exeext |
| 2033 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2034 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2036 | # Check the compiler produces executables we can run. If not, either |
| 2037 | # the compiler is broken, or we cross compile. |
| 2038 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2039 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2040 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2041 | # If not cross compiling, check that we can run a simple program. |
| 2042 | if test "$cross_compiling" != yes; then |
| 2043 | if { ac_try='./$ac_file' |
| 2044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2045 | (eval $ac_try) 2>&5 |
| 2046 | ac_status=$? |
| 2047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2048 | (exit $ac_status); }; }; then |
| 2049 | cross_compiling=no |
| 2050 | else |
| 2051 | if test "$cross_compiling" = maybe; then |
| 2052 | cross_compiling=yes |
| 2053 | else |
| 2054 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2055 | If you meant to cross compile, use \`--host'." >&5 |
| 2056 | echo "$as_me: error: cannot run C compiled programs. |
| 2057 | If you meant to cross compile, use \`--host'." >&2;} |
| 2058 | { (exit 1); exit 1; }; } |
| 2059 | fi |
| 2060 | fi |
| 2061 | fi |
| 2062 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2063 | echo "${ECHO_T}yes" >&6 |
| 2064 | |
| 2065 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2066 | ac_clean_files=$ac_clean_files_save |
| 2067 | # Check the compiler produces executables we can run. If not, either |
| 2068 | # the compiler is broken, or we cross compile. |
| 2069 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2070 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2071 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2072 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2073 | |
| 2074 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2075 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2077 | (eval $ac_link) 2>&5 |
| 2078 | ac_status=$? |
| 2079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2080 | (exit $ac_status); }; then |
| 2081 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2082 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2083 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2084 | # `rm'. |
| 2085 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2086 | case $ac_file in |
| 2087 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2088 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2089 | export ac_cv_exeext |
| 2090 | break;; |
| 2091 | * ) break;; |
| 2092 | esac |
| 2093 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2095 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2096 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2097 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2098 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2100 | rm -f conftest$ac_cv_exeext |
| 2101 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2102 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2103 | |
| 2104 | rm -f conftest.$ac_ext |
| 2105 | EXEEXT=$ac_cv_exeext |
| 2106 | ac_exeext=$EXEEXT |
| 2107 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2108 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2109 | if test "${ac_cv_objext+set}" = set; then |
| 2110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2112 | cat >conftest.$ac_ext <<_ACEOF |
| 2113 | #line $LINENO "configure" |
| 2114 | #include "confdefs.h" |
| 2115 | |
| 2116 | #ifdef F77_DUMMY_MAIN |
| 2117 | # ifdef __cplusplus |
| 2118 | extern "C" |
| 2119 | # endif |
| 2120 | int F77_DUMMY_MAIN() { return 1; } |
| 2121 | #endif |
| 2122 | int |
| 2123 | main () |
| 2124 | { |
| 2125 | |
| 2126 | ; |
| 2127 | return 0; |
| 2128 | } |
| 2129 | _ACEOF |
| 2130 | rm -f conftest.o conftest.obj |
| 2131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2132 | (eval $ac_compile) 2>&5 |
| 2133 | ac_status=$? |
| 2134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2135 | (exit $ac_status); }; then |
| 2136 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2137 | case $ac_file in |
| 2138 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2139 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2140 | break;; |
| 2141 | esac |
| 2142 | done |
| 2143 | else |
| 2144 | echo "$as_me: failed program was:" >&5 |
| 2145 | cat conftest.$ac_ext >&5 |
| 2146 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2147 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2148 | { (exit 1); exit 1; }; } |
| 2149 | fi |
| 2150 | |
| 2151 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2152 | fi |
| 2153 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2154 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2155 | OBJEXT=$ac_cv_objext |
| 2156 | ac_objext=$OBJEXT |
| 2157 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2158 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2159 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2161 | else |
| 2162 | cat >conftest.$ac_ext <<_ACEOF |
| 2163 | #line $LINENO "configure" |
| 2164 | #include "confdefs.h" |
| 2165 | |
| 2166 | #ifdef F77_DUMMY_MAIN |
| 2167 | # ifdef __cplusplus |
| 2168 | extern "C" |
| 2169 | # endif |
| 2170 | int F77_DUMMY_MAIN() { return 1; } |
| 2171 | #endif |
| 2172 | int |
| 2173 | main () |
| 2174 | { |
| 2175 | #ifndef __GNUC__ |
| 2176 | choke me |
| 2177 | #endif |
| 2178 | |
| 2179 | ; |
| 2180 | return 0; |
| 2181 | } |
| 2182 | _ACEOF |
| 2183 | rm -f conftest.$ac_objext |
| 2184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2185 | (eval $ac_compile) 2>&5 |
| 2186 | ac_status=$? |
| 2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2188 | (exit $ac_status); } && |
| 2189 | { ac_try='test -s conftest.$ac_objext' |
| 2190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2191 | (eval $ac_try) 2>&5 |
| 2192 | ac_status=$? |
| 2193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2194 | (exit $ac_status); }; }; then |
| 2195 | ac_compiler_gnu=yes |
| 2196 | else |
| 2197 | echo "$as_me: failed program was:" >&5 |
| 2198 | cat conftest.$ac_ext >&5 |
| 2199 | ac_compiler_gnu=no |
| 2200 | fi |
| 2201 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2202 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2203 | |
| 2204 | fi |
| 2205 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2206 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2207 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2208 | ac_test_CFLAGS=${CFLAGS+set} |
| 2209 | ac_save_CFLAGS=$CFLAGS |
| 2210 | CFLAGS="-g" |
| 2211 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2212 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2213 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2215 | else |
| 2216 | cat >conftest.$ac_ext <<_ACEOF |
| 2217 | #line $LINENO "configure" |
| 2218 | #include "confdefs.h" |
| 2219 | |
| 2220 | #ifdef F77_DUMMY_MAIN |
| 2221 | # ifdef __cplusplus |
| 2222 | extern "C" |
| 2223 | # endif |
| 2224 | int F77_DUMMY_MAIN() { return 1; } |
| 2225 | #endif |
| 2226 | int |
| 2227 | main () |
| 2228 | { |
| 2229 | |
| 2230 | ; |
| 2231 | return 0; |
| 2232 | } |
| 2233 | _ACEOF |
| 2234 | rm -f conftest.$ac_objext |
| 2235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2236 | (eval $ac_compile) 2>&5 |
| 2237 | ac_status=$? |
| 2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2239 | (exit $ac_status); } && |
| 2240 | { ac_try='test -s conftest.$ac_objext' |
| 2241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2242 | (eval $ac_try) 2>&5 |
| 2243 | ac_status=$? |
| 2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2245 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2246 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2248 | echo "$as_me: failed program was:" >&5 |
| 2249 | cat conftest.$ac_ext >&5 |
| 2250 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2252 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2253 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2254 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2255 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2256 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2257 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2258 | elif test $ac_cv_prog_cc_g = yes; then |
| 2259 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2260 | CFLAGS="-g -O2" |
| 2261 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2262 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2263 | fi |
| 2264 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2265 | if test "$GCC" = yes; then |
| 2266 | CFLAGS="-O2" |
| 2267 | else |
| 2268 | CFLAGS= |
| 2269 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2270 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2271 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2272 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2273 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2274 | # the declaration of exit, since it's the most demanding environment. |
| 2275 | cat >conftest.$ac_ext <<_ACEOF |
| 2276 | #ifndef __cplusplus |
| 2277 | choke me |
| 2278 | #endif |
| 2279 | _ACEOF |
| 2280 | rm -f conftest.$ac_objext |
| 2281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2282 | (eval $ac_compile) 2>&5 |
| 2283 | ac_status=$? |
| 2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2285 | (exit $ac_status); } && |
| 2286 | { ac_try='test -s conftest.$ac_objext' |
| 2287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2288 | (eval $ac_try) 2>&5 |
| 2289 | ac_status=$? |
| 2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2291 | (exit $ac_status); }; }; then |
| 2292 | for ac_declaration in \ |
| 2293 | ''\ |
| 2294 | '#include <stdlib.h>' \ |
| 2295 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2296 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2297 | 'extern "C" void exit (int) throw ();' \ |
| 2298 | 'extern "C" void exit (int);' \ |
| 2299 | 'void exit (int);' |
| 2300 | do |
| 2301 | cat >conftest.$ac_ext <<_ACEOF |
| 2302 | #line $LINENO "configure" |
| 2303 | #include "confdefs.h" |
| 2304 | #include <stdlib.h> |
| 2305 | $ac_declaration |
| 2306 | #ifdef F77_DUMMY_MAIN |
| 2307 | # ifdef __cplusplus |
| 2308 | extern "C" |
| 2309 | # endif |
| 2310 | int F77_DUMMY_MAIN() { return 1; } |
| 2311 | #endif |
| 2312 | int |
| 2313 | main () |
| 2314 | { |
| 2315 | exit (42); |
| 2316 | ; |
| 2317 | return 0; |
| 2318 | } |
| 2319 | _ACEOF |
| 2320 | rm -f conftest.$ac_objext |
| 2321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2322 | (eval $ac_compile) 2>&5 |
| 2323 | ac_status=$? |
| 2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2325 | (exit $ac_status); } && |
| 2326 | { ac_try='test -s conftest.$ac_objext' |
| 2327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2328 | (eval $ac_try) 2>&5 |
| 2329 | ac_status=$? |
| 2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2331 | (exit $ac_status); }; }; then |
| 2332 | : |
| 2333 | else |
| 2334 | echo "$as_me: failed program was:" >&5 |
| 2335 | cat conftest.$ac_ext >&5 |
| 2336 | continue |
| 2337 | fi |
| 2338 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2339 | cat >conftest.$ac_ext <<_ACEOF |
| 2340 | #line $LINENO "configure" |
| 2341 | #include "confdefs.h" |
| 2342 | $ac_declaration |
| 2343 | #ifdef F77_DUMMY_MAIN |
| 2344 | # ifdef __cplusplus |
| 2345 | extern "C" |
| 2346 | # endif |
| 2347 | int F77_DUMMY_MAIN() { return 1; } |
| 2348 | #endif |
| 2349 | int |
| 2350 | main () |
| 2351 | { |
| 2352 | exit (42); |
| 2353 | ; |
| 2354 | return 0; |
| 2355 | } |
| 2356 | _ACEOF |
| 2357 | rm -f conftest.$ac_objext |
| 2358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2359 | (eval $ac_compile) 2>&5 |
| 2360 | ac_status=$? |
| 2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2362 | (exit $ac_status); } && |
| 2363 | { ac_try='test -s conftest.$ac_objext' |
| 2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2365 | (eval $ac_try) 2>&5 |
| 2366 | ac_status=$? |
| 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2368 | (exit $ac_status); }; }; then |
| 2369 | break |
| 2370 | else |
| 2371 | echo "$as_me: failed program was:" >&5 |
| 2372 | cat conftest.$ac_ext >&5 |
| 2373 | fi |
| 2374 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2375 | done |
| 2376 | rm -f conftest* |
| 2377 | if test -n "$ac_declaration"; then |
| 2378 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2379 | echo $ac_declaration >>confdefs.h |
| 2380 | echo '#endif' >>confdefs.h |
| 2381 | fi |
| 2382 | |
| 2383 | else |
| 2384 | echo "$as_me: failed program was:" >&5 |
| 2385 | cat conftest.$ac_ext >&5 |
| 2386 | fi |
| 2387 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2388 | ac_ext=c |
| 2389 | ac_cpp='$CPP $CPPFLAGS' |
| 2390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2393 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2394 | |
| 2395 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2396 | |
| 2397 | ac_ext=c |
| 2398 | ac_cpp='$CPP $CPPFLAGS' |
| 2399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2402 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2403 | 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] | 2404 | # On Suns, sometimes $CPP names a directory. |
| 2405 | if test -n "$CPP" && test -d "$CPP"; then |
| 2406 | CPP= |
| 2407 | fi |
| 2408 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2412 | # Double quotes because CPP needs to be expanded |
| 2413 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2414 | do |
| 2415 | ac_preproc_ok=false |
| 2416 | for ac_c_preproc_warn_flag in '' yes |
| 2417 | do |
| 2418 | # Use a header file that comes with gcc, so configuring glibc |
| 2419 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2420 | # 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] | 2421 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2422 | cat >conftest.$ac_ext <<_ACEOF |
| 2423 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2424 | #include "confdefs.h" |
| 2425 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2426 | Syntax error |
| 2427 | _ACEOF |
| 2428 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2429 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2430 | ac_status=$? |
| 2431 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2432 | rm -f conftest.er1 |
| 2433 | cat conftest.err >&5 |
| 2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2435 | (exit $ac_status); } >/dev/null; then |
| 2436 | if test -s conftest.err; then |
| 2437 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2438 | else |
| 2439 | ac_cpp_err= |
| 2440 | fi |
| 2441 | else |
| 2442 | ac_cpp_err=yes |
| 2443 | fi |
| 2444 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2445 | : |
| 2446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2447 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2448 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2449 | # Broken: fails on valid input. |
| 2450 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2451 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | # OK, works on sane cases. Now check whether non-existent headers |
| 2455 | # can be detected and how. |
| 2456 | cat >conftest.$ac_ext <<_ACEOF |
| 2457 | #line $LINENO "configure" |
| 2458 | #include "confdefs.h" |
| 2459 | #include <ac_nonexistent.h> |
| 2460 | _ACEOF |
| 2461 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2463 | ac_status=$? |
| 2464 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2465 | rm -f conftest.er1 |
| 2466 | cat conftest.err >&5 |
| 2467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2468 | (exit $ac_status); } >/dev/null; then |
| 2469 | if test -s conftest.err; then |
| 2470 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2471 | else |
| 2472 | ac_cpp_err= |
| 2473 | fi |
| 2474 | else |
| 2475 | ac_cpp_err=yes |
| 2476 | fi |
| 2477 | if test -z "$ac_cpp_err"; then |
| 2478 | # Broken: success on invalid input. |
| 2479 | continue |
| 2480 | else |
| 2481 | echo "$as_me: failed program was:" >&5 |
| 2482 | cat conftest.$ac_ext >&5 |
| 2483 | # Passes both tests. |
| 2484 | ac_preproc_ok=: |
| 2485 | break |
| 2486 | fi |
| 2487 | rm -f conftest.err conftest.$ac_ext |
| 2488 | |
| 2489 | done |
| 2490 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2491 | rm -f conftest.err conftest.$ac_ext |
| 2492 | if $ac_preproc_ok; then |
| 2493 | break |
| 2494 | fi |
| 2495 | |
| 2496 | done |
| 2497 | ac_cv_prog_CPP=$CPP |
| 2498 | |
| 2499 | fi |
| 2500 | CPP=$ac_cv_prog_CPP |
| 2501 | else |
| 2502 | ac_cv_prog_CPP=$CPP |
| 2503 | fi |
| 2504 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2505 | echo "${ECHO_T}$CPP" >&6 |
| 2506 | ac_preproc_ok=false |
| 2507 | for ac_c_preproc_warn_flag in '' yes |
| 2508 | do |
| 2509 | # Use a header file that comes with gcc, so configuring glibc |
| 2510 | # with a fresh cross-compiler works. |
| 2511 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2512 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2513 | cat >conftest.$ac_ext <<_ACEOF |
| 2514 | #line $LINENO "configure" |
| 2515 | #include "confdefs.h" |
| 2516 | #include <assert.h> |
| 2517 | Syntax error |
| 2518 | _ACEOF |
| 2519 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2520 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2521 | ac_status=$? |
| 2522 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2523 | rm -f conftest.er1 |
| 2524 | cat conftest.err >&5 |
| 2525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2526 | (exit $ac_status); } >/dev/null; then |
| 2527 | if test -s conftest.err; then |
| 2528 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2529 | else |
| 2530 | ac_cpp_err= |
| 2531 | fi |
| 2532 | else |
| 2533 | ac_cpp_err=yes |
| 2534 | fi |
| 2535 | if test -z "$ac_cpp_err"; then |
| 2536 | : |
| 2537 | else |
| 2538 | echo "$as_me: failed program was:" >&5 |
| 2539 | cat conftest.$ac_ext >&5 |
| 2540 | # Broken: fails on valid input. |
| 2541 | continue |
| 2542 | fi |
| 2543 | rm -f conftest.err conftest.$ac_ext |
| 2544 | |
| 2545 | # OK, works on sane cases. Now check whether non-existent headers |
| 2546 | # can be detected and how. |
| 2547 | cat >conftest.$ac_ext <<_ACEOF |
| 2548 | #line $LINENO "configure" |
| 2549 | #include "confdefs.h" |
| 2550 | #include <ac_nonexistent.h> |
| 2551 | _ACEOF |
| 2552 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2553 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2554 | ac_status=$? |
| 2555 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2556 | rm -f conftest.er1 |
| 2557 | cat conftest.err >&5 |
| 2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2559 | (exit $ac_status); } >/dev/null; then |
| 2560 | if test -s conftest.err; then |
| 2561 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2562 | else |
| 2563 | ac_cpp_err= |
| 2564 | fi |
| 2565 | else |
| 2566 | ac_cpp_err=yes |
| 2567 | fi |
| 2568 | if test -z "$ac_cpp_err"; then |
| 2569 | # Broken: success on invalid input. |
| 2570 | continue |
| 2571 | else |
| 2572 | echo "$as_me: failed program was:" >&5 |
| 2573 | cat conftest.$ac_ext >&5 |
| 2574 | # Passes both tests. |
| 2575 | ac_preproc_ok=: |
| 2576 | break |
| 2577 | fi |
| 2578 | rm -f conftest.err conftest.$ac_ext |
| 2579 | |
| 2580 | done |
| 2581 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2582 | rm -f conftest.err conftest.$ac_ext |
| 2583 | if $ac_preproc_ok; then |
| 2584 | : |
| 2585 | else |
| 2586 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2587 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2588 | { (exit 1); exit 1; }; } |
| 2589 | fi |
| 2590 | |
| 2591 | ac_ext=c |
| 2592 | ac_cpp='$CPP $CPPFLAGS' |
| 2593 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2594 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2595 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2596 | |
| 2597 | |
| 2598 | |
| 2599 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2600 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2601 | cat >conftest.$ac_ext <<_ACEOF |
| 2602 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2603 | #include "confdefs.h" |
| 2604 | #ifdef _AIX |
| 2605 | yes |
| 2606 | #endif |
| 2607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2608 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2610 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2611 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2612 | echo "${ECHO_T}yes" >&6 |
| 2613 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2614 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2615 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2616 | |
| 2617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2618 | echo "$as_me:$LINENO: result: no" >&5 |
| 2619 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2620 | fi |
| 2621 | rm -f conftest* |
| 2622 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2624 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2625 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2626 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2629 | cat >conftest.$ac_ext <<_ACEOF |
| 2630 | #line $LINENO "configure" |
| 2631 | #include "confdefs.h" |
| 2632 | #include <stdlib.h> |
| 2633 | #include <stdarg.h> |
| 2634 | #include <string.h> |
| 2635 | #include <float.h> |
| 2636 | |
| 2637 | _ACEOF |
| 2638 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2639 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2640 | ac_status=$? |
| 2641 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2642 | rm -f conftest.er1 |
| 2643 | cat conftest.err >&5 |
| 2644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2645 | (exit $ac_status); } >/dev/null; then |
| 2646 | if test -s conftest.err; then |
| 2647 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2648 | else |
| 2649 | ac_cpp_err= |
| 2650 | fi |
| 2651 | else |
| 2652 | ac_cpp_err=yes |
| 2653 | fi |
| 2654 | if test -z "$ac_cpp_err"; then |
| 2655 | ac_cv_header_stdc=yes |
| 2656 | else |
| 2657 | echo "$as_me: failed program was:" >&5 |
| 2658 | cat conftest.$ac_ext >&5 |
| 2659 | ac_cv_header_stdc=no |
| 2660 | fi |
| 2661 | rm -f conftest.err conftest.$ac_ext |
| 2662 | |
| 2663 | if test $ac_cv_header_stdc = yes; then |
| 2664 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2665 | cat >conftest.$ac_ext <<_ACEOF |
| 2666 | #line $LINENO "configure" |
| 2667 | #include "confdefs.h" |
| 2668 | #include <string.h> |
| 2669 | |
| 2670 | _ACEOF |
| 2671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2672 | egrep "memchr" >/dev/null 2>&1; then |
| 2673 | : |
| 2674 | else |
| 2675 | ac_cv_header_stdc=no |
| 2676 | fi |
| 2677 | rm -f conftest* |
| 2678 | |
| 2679 | fi |
| 2680 | |
| 2681 | if test $ac_cv_header_stdc = yes; then |
| 2682 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2683 | cat >conftest.$ac_ext <<_ACEOF |
| 2684 | #line $LINENO "configure" |
| 2685 | #include "confdefs.h" |
| 2686 | #include <stdlib.h> |
| 2687 | |
| 2688 | _ACEOF |
| 2689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2690 | egrep "free" >/dev/null 2>&1; then |
| 2691 | : |
| 2692 | else |
| 2693 | ac_cv_header_stdc=no |
| 2694 | fi |
| 2695 | rm -f conftest* |
| 2696 | |
| 2697 | fi |
| 2698 | |
| 2699 | if test $ac_cv_header_stdc = yes; then |
| 2700 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2701 | if test "$cross_compiling" = yes; then |
| 2702 | : |
| 2703 | else |
| 2704 | cat >conftest.$ac_ext <<_ACEOF |
| 2705 | #line $LINENO "configure" |
| 2706 | #include "confdefs.h" |
| 2707 | #include <ctype.h> |
| 2708 | #if ((' ' & 0x0FF) == 0x020) |
| 2709 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2710 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2711 | #else |
| 2712 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2713 | || ('j' <= (c) && (c) <= 'r') \ |
| 2714 | || ('s' <= (c) && (c) <= 'z')) |
| 2715 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2716 | #endif |
| 2717 | |
| 2718 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2719 | int |
| 2720 | main () |
| 2721 | { |
| 2722 | int i; |
| 2723 | for (i = 0; i < 256; i++) |
| 2724 | if (XOR (islower (i), ISLOWER (i)) |
| 2725 | || toupper (i) != TOUPPER (i)) |
| 2726 | exit(2); |
| 2727 | exit (0); |
| 2728 | } |
| 2729 | _ACEOF |
| 2730 | rm -f conftest$ac_exeext |
| 2731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2732 | (eval $ac_link) 2>&5 |
| 2733 | ac_status=$? |
| 2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2737 | (eval $ac_try) 2>&5 |
| 2738 | ac_status=$? |
| 2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2740 | (exit $ac_status); }; }; then |
| 2741 | : |
| 2742 | else |
| 2743 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2744 | echo "$as_me: failed program was:" >&5 |
| 2745 | cat conftest.$ac_ext >&5 |
| 2746 | ( exit $ac_status ) |
| 2747 | ac_cv_header_stdc=no |
| 2748 | fi |
| 2749 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2750 | fi |
| 2751 | fi |
| 2752 | fi |
| 2753 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2754 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2755 | if test $ac_cv_header_stdc = yes; then |
| 2756 | |
| 2757 | cat >>confdefs.h <<\_ACEOF |
| 2758 | #define STDC_HEADERS 1 |
| 2759 | _ACEOF |
| 2760 | |
| 2761 | fi |
| 2762 | |
| 2763 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2764 | |
| 2765 | |
| 2766 | |
| 2767 | |
| 2768 | |
| 2769 | |
| 2770 | |
| 2771 | |
| 2772 | |
| 2773 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2774 | inttypes.h stdint.h unistd.h |
| 2775 | do |
| 2776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2777 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2781 | else |
| 2782 | cat >conftest.$ac_ext <<_ACEOF |
| 2783 | #line $LINENO "configure" |
| 2784 | #include "confdefs.h" |
| 2785 | $ac_includes_default |
| 2786 | |
| 2787 | #include <$ac_header> |
| 2788 | _ACEOF |
| 2789 | rm -f conftest.$ac_objext |
| 2790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2791 | (eval $ac_compile) 2>&5 |
| 2792 | ac_status=$? |
| 2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2794 | (exit $ac_status); } && |
| 2795 | { ac_try='test -s conftest.$ac_objext' |
| 2796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2797 | (eval $ac_try) 2>&5 |
| 2798 | ac_status=$? |
| 2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2800 | (exit $ac_status); }; }; then |
| 2801 | eval "$as_ac_Header=yes" |
| 2802 | else |
| 2803 | echo "$as_me: failed program was:" >&5 |
| 2804 | cat conftest.$ac_ext >&5 |
| 2805 | eval "$as_ac_Header=no" |
| 2806 | fi |
| 2807 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2808 | fi |
| 2809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2811 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2812 | cat >>confdefs.h <<_ACEOF |
| 2813 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2814 | _ACEOF |
| 2815 | |
| 2816 | fi |
| 2817 | |
| 2818 | done |
| 2819 | |
| 2820 | |
| 2821 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2822 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2823 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2824 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2826 | fi |
| 2827 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2828 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2829 | else |
| 2830 | # Is the header compilable? |
| 2831 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2832 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2833 | cat >conftest.$ac_ext <<_ACEOF |
| 2834 | #line $LINENO "configure" |
| 2835 | #include "confdefs.h" |
| 2836 | $ac_includes_default |
| 2837 | #include <minix/config.h> |
| 2838 | _ACEOF |
| 2839 | rm -f conftest.$ac_objext |
| 2840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2841 | (eval $ac_compile) 2>&5 |
| 2842 | ac_status=$? |
| 2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2844 | (exit $ac_status); } && |
| 2845 | { ac_try='test -s conftest.$ac_objext' |
| 2846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2847 | (eval $ac_try) 2>&5 |
| 2848 | ac_status=$? |
| 2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2850 | (exit $ac_status); }; }; then |
| 2851 | ac_header_compiler=yes |
| 2852 | else |
| 2853 | echo "$as_me: failed program was:" >&5 |
| 2854 | cat conftest.$ac_ext >&5 |
| 2855 | ac_header_compiler=no |
| 2856 | fi |
| 2857 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2858 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2859 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2860 | |
| 2861 | # Is the header present? |
| 2862 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2863 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2864 | cat >conftest.$ac_ext <<_ACEOF |
| 2865 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2866 | #include "confdefs.h" |
| 2867 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2868 | _ACEOF |
| 2869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2871 | ac_status=$? |
| 2872 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2873 | rm -f conftest.er1 |
| 2874 | cat conftest.err >&5 |
| 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2876 | (exit $ac_status); } >/dev/null; then |
| 2877 | if test -s conftest.err; then |
| 2878 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2879 | else |
| 2880 | ac_cpp_err= |
| 2881 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 | ac_cpp_err=yes |
| 2884 | fi |
| 2885 | if test -z "$ac_cpp_err"; then |
| 2886 | ac_header_preproc=yes |
| 2887 | else |
| 2888 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2889 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2890 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2891 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2892 | rm -f conftest.err conftest.$ac_ext |
| 2893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2894 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2895 | |
| 2896 | # So? What about this header? |
| 2897 | case $ac_header_compiler:$ac_header_preproc in |
| 2898 | yes:no ) |
| 2899 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2900 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2901 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2902 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2903 | no:yes ) |
| 2904 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2905 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2906 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2907 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2908 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2909 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2910 | esac |
| 2911 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2912 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2913 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2915 | else |
| 2916 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2917 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2919 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2920 | |
| 2921 | fi |
| 2922 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2923 | MINIX=yes |
| 2924 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2925 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2926 | fi |
| 2927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2928 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2929 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2930 | |
| 2931 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2932 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2935 | |
| 2936 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2937 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2938 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | |
| 2941 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2942 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2943 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2944 | |
| 2945 | fi |
| 2946 | |
| 2947 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2949 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 2950 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2951 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2952 | # Check whether --with-suffix or --without-suffix was given. |
| 2953 | if test "${with_suffix+set}" = set; then |
| 2954 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2956 | case $withval in |
| 2957 | no) EXEEXT=;; |
| 2958 | yes) EXEEXT=.exe;; |
| 2959 | *) EXEEXT=$withval;; |
| 2960 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2961 | fi; |
| 2962 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 2963 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2964 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2965 | # Test whether we're running on a non-case-sensitive system, in which |
| 2966 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2968 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 2969 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 2970 | if test -d "${srcdir}/python" |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2971 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2972 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2973 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2974 | BUILDEXEEXT=.exe |
| 2975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2976 | echo "$as_me:$LINENO: result: no" >&5 |
| 2977 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2978 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2979 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 2980 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 2981 | case $MACHDEP in |
| 2982 | bsdos*) |
| 2983 | case $CC in |
| 2984 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 2985 | esac;; |
| 2986 | esac |
| 2987 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2988 | case $ac_sys_system in |
| 2989 | hp*|HP*) |
| 2990 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 2991 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2992 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2993 | Monterey*) |
| 2994 | case $CC in |
| 2995 | cc) CC="$CC -Wl,-Bexport";; |
| 2996 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2997 | SunOS*) |
| 2998 | # 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] | 2999 | |
| 3000 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3001 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3002 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3003 | |
| 3004 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3005 | esac |
| 3006 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3007 | |
| 3008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3009 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3010 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3011 | if test -z "$LIBRARY" |
| 3012 | then |
| 3013 | LIBRARY='libpython$(VERSION).a' |
| 3014 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3015 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3016 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3017 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3018 | # 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] | 3019 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3020 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3021 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3022 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3023 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3024 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3025 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3026 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3027 | # RUNSHARED is used to run shared python without installed libraries |
| 3028 | # |
| 3029 | # INSTSONAME is the name of the shared library that will be use to install |
| 3030 | # on the system - some systems like version suffix, others don't |
| 3031 | |
| 3032 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3033 | |
| 3034 | |
| 3035 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3036 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3037 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3038 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3039 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3040 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3041 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3042 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3043 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3044 | # 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] | 3045 | # If CXX is set, and if it is needed to link a main function that was |
| 3046 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3047 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3048 | # 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] | 3049 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3051 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3052 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3053 | if test -z "$LINKCC" |
| 3054 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3055 | if test -z "$CXX"; then |
| 3056 | LINKCC="\$(PURIFY) \$(CC)" |
| 3057 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3058 | 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] | 3059 | $CXX -c conftest.$ac_ext 2>&5 |
| 3060 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3061 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3062 | then |
| 3063 | LINKCC="\$(PURIFY) \$(CC)" |
| 3064 | else |
| 3065 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3066 | fi |
| 3067 | rm -fr conftest* |
| 3068 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3069 | case $ac_sys_system in |
| 3070 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3071 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3072 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3073 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3074 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3075 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3076 | esac |
| 3077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3078 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3079 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3081 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3082 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3083 | # Check whether --enable-shared or --disable-shared was given. |
| 3084 | if test "${enable_shared+set}" = set; then |
| 3085 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3087 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3088 | |
| 3089 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3090 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3091 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3092 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3093 | enable_shared="yes";; |
| 3094 | *) |
| 3095 | enable_shared="no";; |
| 3096 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3097 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3098 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3099 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3100 | |
| 3101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3102 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3103 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3104 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3105 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3106 | # library that we build, but we do not want to link against it (we |
| 3107 | # will find it with a -framework option). For this reason there is an |
| 3108 | # extra variable BLDLIBRARY against which Python and the extension |
| 3109 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3110 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3111 | if test "$enable_framework" |
| 3112 | then |
| 3113 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3114 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3115 | BLDLIBRARY='' |
| 3116 | else |
| 3117 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3118 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3119 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3120 | # Other platforms follow |
| 3121 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3122 | |
| 3123 | cat >>confdefs.h <<\_ACEOF |
| 3124 | #define Py_ENABLE_SHARED 1 |
| 3125 | _ACEOF |
| 3126 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3127 | case $ac_sys_system in |
| 3128 | BeOS*) |
| 3129 | LDLIBRARY='libpython$(VERSION).so' |
| 3130 | ;; |
| 3131 | CYGWIN*) |
| 3132 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3133 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3134 | ;; |
| 3135 | SunOS*) |
| 3136 | LDLIBRARY='libpython$(VERSION).so' |
| 3137 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3138 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3139 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3140 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3141 | LDLIBRARY='libpython$(VERSION).so' |
| 3142 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3143 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3144 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3145 | ;; |
| 3146 | hp*|HP*) |
| 3147 | LDLIBRARY='libpython$(VERSION).sl' |
| 3148 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3149 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3150 | ;; |
| 3151 | OSF*) |
| 3152 | LDLIBRARY='libpython$(VERSION).so' |
| 3153 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3154 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3155 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3156 | atheos*) |
| 3157 | LDLIBRARY='libpython$(VERSION).so' |
| 3158 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3159 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3160 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3161 | esac |
| 3162 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3163 | case $MACHDEP in |
| 3164 | dguxR4) |
| 3165 | LDLIBRARY='libpython$(VERSION).so' |
| 3166 | OPT="$OPT -pic" |
| 3167 | ;; |
| 3168 | esac |
| 3169 | fi |
| 3170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3171 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3172 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3174 | if test -n "$ac_tool_prefix"; then |
| 3175 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3176 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3177 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3178 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3179 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3181 | else |
| 3182 | if test -n "$RANLIB"; then |
| 3183 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3186 | for as_dir in $PATH |
| 3187 | do |
| 3188 | IFS=$as_save_IFS |
| 3189 | test -z "$as_dir" && as_dir=. |
| 3190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3191 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3192 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3193 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3194 | break 2 |
| 3195 | fi |
| 3196 | done |
| 3197 | done |
| 3198 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3199 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3201 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3202 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3203 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3204 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3205 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3206 | echo "$as_me:$LINENO: result: no" >&5 |
| 3207 | echo "${ECHO_T}no" >&6 |
| 3208 | fi |
| 3209 | |
| 3210 | fi |
| 3211 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3212 | ac_ct_RANLIB=$RANLIB |
| 3213 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3214 | set dummy ranlib; ac_word=$2 |
| 3215 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3217 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3219 | else |
| 3220 | if test -n "$ac_ct_RANLIB"; then |
| 3221 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3222 | else |
| 3223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3224 | for as_dir in $PATH |
| 3225 | do |
| 3226 | IFS=$as_save_IFS |
| 3227 | test -z "$as_dir" && as_dir=. |
| 3228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3230 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3232 | break 2 |
| 3233 | fi |
| 3234 | done |
| 3235 | done |
| 3236 | |
| 3237 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3238 | fi |
| 3239 | fi |
| 3240 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3241 | if test -n "$ac_ct_RANLIB"; then |
| 3242 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3243 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3244 | else |
| 3245 | echo "$as_me:$LINENO: result: no" >&5 |
| 3246 | echo "${ECHO_T}no" >&6 |
| 3247 | fi |
| 3248 | |
| 3249 | RANLIB=$ac_ct_RANLIB |
| 3250 | else |
| 3251 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3252 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3253 | |
| 3254 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3255 | for ac_prog in ar aal |
| 3256 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3257 | # 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] | 3258 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3259 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3261 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3263 | else |
| 3264 | if test -n "$AR"; then |
| 3265 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3268 | for as_dir in $PATH |
| 3269 | do |
| 3270 | IFS=$as_save_IFS |
| 3271 | test -z "$as_dir" && as_dir=. |
| 3272 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3273 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3274 | ac_cv_prog_AR="$ac_prog" |
| 3275 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3276 | break 2 |
| 3277 | fi |
| 3278 | done |
| 3279 | done |
| 3280 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3281 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3283 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3284 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3285 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3286 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3288 | echo "$as_me:$LINENO: result: no" >&5 |
| 3289 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3290 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3292 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3293 | done |
| 3294 | test -n "$AR" || AR="ar" |
| 3295 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3296 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3297 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3298 | bsdos*|hp*|HP*) |
| 3299 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3300 | if test -z "$INSTALL" |
| 3301 | then |
| 3302 | INSTALL="${srcdir}/install-sh -c" |
| 3303 | fi |
| 3304 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3305 | ac_aux_dir= |
| 3306 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3307 | if test -f $ac_dir/install-sh; then |
| 3308 | ac_aux_dir=$ac_dir |
| 3309 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3310 | break |
| 3311 | elif test -f $ac_dir/install.sh; then |
| 3312 | ac_aux_dir=$ac_dir |
| 3313 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3314 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3315 | elif test -f $ac_dir/shtool; then |
| 3316 | ac_aux_dir=$ac_dir |
| 3317 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3318 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3319 | fi |
| 3320 | done |
| 3321 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3322 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3323 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3324 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3326 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3327 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3328 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3329 | |
| 3330 | # Find a good install program. We prefer a C program (faster), |
| 3331 | # so one script is as good as another. But avoid the broken or |
| 3332 | # incompatible versions: |
| 3333 | # SysV /etc/install, /usr/sbin/install |
| 3334 | # SunOS /usr/etc/install |
| 3335 | # IRIX /sbin/install |
| 3336 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3337 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3338 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3339 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3340 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3341 | # ./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] | 3342 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3343 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3344 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3345 | if test "${ac_cv_path_install+set}" = set; then |
| 3346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3349 | for as_dir in $PATH |
| 3350 | do |
| 3351 | IFS=$as_save_IFS |
| 3352 | test -z "$as_dir" && as_dir=. |
| 3353 | # Account for people who put trailing slashes in PATH elements. |
| 3354 | case $as_dir/ in |
| 3355 | ./ | .// | /cC/* | \ |
| 3356 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3357 | /usr/ucb/* ) ;; |
| 3358 | *) |
| 3359 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3360 | # Don't use installbsd from OSF since it installs stuff as root |
| 3361 | # by default. |
| 3362 | for ac_prog in ginstall scoinst install; do |
| 3363 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3364 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3365 | if test $ac_prog = install && |
| 3366 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3367 | # AIX install. It has an incompatible calling convention. |
| 3368 | : |
| 3369 | elif test $ac_prog = install && |
| 3370 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3371 | # program-specific install script used by HP pwplus--don't use. |
| 3372 | : |
| 3373 | else |
| 3374 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3375 | break 3 |
| 3376 | fi |
| 3377 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3378 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3379 | done |
| 3380 | ;; |
| 3381 | esac |
| 3382 | done |
| 3383 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3384 | |
| 3385 | fi |
| 3386 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3387 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3388 | else |
| 3389 | # As a last resort, use the slow shell script. We don't cache a |
| 3390 | # path for INSTALL within a source directory, because that will |
| 3391 | # break other packages using the cache if that directory is |
| 3392 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3394 | fi |
| 3395 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3396 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3397 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3398 | |
| 3399 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3400 | # It thinks the first close brace ends the variable substitution. |
| 3401 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3403 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3404 | |
| 3405 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3406 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3407 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3408 | # Not every filesystem supports hard links |
| 3409 | |
| 3410 | if test -z "$LN" ; then |
| 3411 | case $ac_sys_system in |
| 3412 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3413 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3414 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3415 | *) LN=ln;; |
| 3416 | esac |
| 3417 | fi |
| 3418 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3419 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3420 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3421 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3422 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3423 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3424 | if test "${with_pydebug+set}" = set; then |
| 3425 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3426 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3427 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3428 | then |
| 3429 | |
| 3430 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3431 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | _ACEOF |
| 3433 | |
| 3434 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3435 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3436 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3437 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3438 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3439 | fi |
| 3440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3441 | echo "$as_me:$LINENO: result: no" >&5 |
| 3442 | echo "${ECHO_T}no" >&6 |
| 3443 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3444 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3445 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3446 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3447 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3448 | then |
Neal Norwitz | d957f39 | 2002-09-25 21:26:19 +0000 | [diff] [blame] | 3449 | case $GCC in |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3450 | yes) |
| 3451 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3452 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3453 | if test "$Py_DEBUG" = 'true' ; then |
| 3454 | # Optimization messes up debuggers, so turn it off for |
| 3455 | # debug builds. |
| 3456 | OPT="-g -Wall -Wstrict-prototypes" |
| 3457 | else |
| 3458 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3459 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3460 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3461 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3462 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3463 | case $ac_sys_system in |
| 3464 | SCO_SV*) OPT="$OPT -m486 -DSCO5";; |
| 3465 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3466 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3467 | *) |
| 3468 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3469 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3470 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3471 | SCO_SV*) |
| 3472 | CFLAGS="$CFLAGS -belf" |
| 3473 | OPT="-belf -O -Ki486 -DSCO5";; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3474 | *) |
| 3475 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3476 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3477 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3478 | case $ac_sys_system in |
| 3479 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3480 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3481 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3482 | fi |
| 3483 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3484 | if test "$Py_DEBUG" = 'true'; then |
| 3485 | : |
| 3486 | else |
| 3487 | OPT="-DNDEBUG $OPT" |
| 3488 | fi |
| 3489 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3490 | # The current (beta) Monterey compiler dies with optimizations |
| 3491 | case $ac_sys_system in |
| 3492 | Monterey*) OPT="";; |
| 3493 | esac |
| 3494 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3495 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3496 | then |
| 3497 | OPT="$OPT $ac_arch_flags" |
| 3498 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3501 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3502 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3504 | else |
| 3505 | ac_save_cc="$CC" |
| 3506 | CC="$CC -OPT:Olimit=0" |
| 3507 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3508 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | cat >conftest.$ac_ext <<_ACEOF |
| 3511 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3512 | #include "confdefs.h" |
| 3513 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3514 | _ACEOF |
| 3515 | rm -f conftest$ac_exeext |
| 3516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3517 | (eval $ac_link) 2>&5 |
| 3518 | ac_status=$? |
| 3519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3522 | (eval $ac_try) 2>&5 |
| 3523 | ac_status=$? |
| 3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3525 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3526 | ac_cv_opt_olimit_ok=yes |
| 3527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3528 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3529 | echo "$as_me: failed program was:" >&5 |
| 3530 | cat conftest.$ac_ext >&5 |
| 3531 | ( exit $ac_status ) |
| 3532 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3533 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | 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] | 3535 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3536 | CC="$ac_save_cc" |
| 3537 | fi |
| 3538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3539 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3540 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3541 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3542 | case $ac_sys_system in |
| 3543 | Darwin*) OPT="$OPT" ;; |
| 3544 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3545 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3547 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3548 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3549 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3551 | else |
| 3552 | ac_save_cc="$CC" |
| 3553 | CC="$CC -Olimit 1500" |
| 3554 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3555 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | cat >conftest.$ac_ext <<_ACEOF |
| 3558 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3559 | #include "confdefs.h" |
| 3560 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3561 | _ACEOF |
| 3562 | rm -f conftest$ac_exeext |
| 3563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3564 | (eval $ac_link) 2>&5 |
| 3565 | ac_status=$? |
| 3566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3567 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3569 | (eval $ac_try) 2>&5 |
| 3570 | ac_status=$? |
| 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3572 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3573 | ac_cv_olimit_ok=yes |
| 3574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3576 | echo "$as_me: failed program was:" >&5 |
| 3577 | cat conftest.$ac_ext >&5 |
| 3578 | ( exit $ac_status ) |
| 3579 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3581 | 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] | 3582 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3583 | CC="$ac_save_cc" |
| 3584 | fi |
| 3585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3586 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3587 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3588 | if test $ac_cv_olimit_ok = yes; then |
| 3589 | OPT="$OPT -Olimit 1500" |
| 3590 | fi |
| 3591 | fi |
| 3592 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3593 | # On some compilers, pthreads are available without further options |
| 3594 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3595 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3596 | # So we have to see first whether pthreads are available without |
| 3597 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3598 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3599 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3600 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3602 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3603 | if test "$cross_compiling" = yes; then |
| 3604 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | cat >conftest.$ac_ext <<_ACEOF |
| 3607 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3608 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3609 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3610 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3611 | |
| 3612 | void* routine(void* p){return NULL;} |
| 3613 | |
| 3614 | int main(){ |
| 3615 | pthread_t p; |
| 3616 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3617 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3618 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3619 | return 0; |
| 3620 | } |
| 3621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3622 | _ACEOF |
| 3623 | rm -f conftest$ac_exeext |
| 3624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3625 | (eval $ac_link) 2>&5 |
| 3626 | ac_status=$? |
| 3627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3628 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3630 | (eval $ac_try) 2>&5 |
| 3631 | ac_status=$? |
| 3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3633 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3634 | ac_cv_pthread_is_default=yes |
| 3635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3636 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3637 | echo "$as_me: failed program was:" >&5 |
| 3638 | cat conftest.$ac_ext >&5 |
| 3639 | ( exit $ac_status ) |
| 3640 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3641 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3642 | 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] | 3643 | fi |
| 3644 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3645 | fi |
| 3646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3647 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3648 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3649 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3652 | then |
| 3653 | ac_cv_kpthread=no |
| 3654 | else |
| 3655 | # -Kpthread, if available, provides the right #defines |
| 3656 | # and linker options to make pthread_create available |
| 3657 | # Some compilers won't report that they do not support -Kpthread, |
| 3658 | # so we need to run a program to see whether it really made the |
| 3659 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3660 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3661 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3662 | if test "${ac_cv_kpthread+set}" = set; then |
| 3663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3664 | else |
| 3665 | ac_save_cc="$CC" |
| 3666 | CC="$CC -Kpthread" |
| 3667 | if test "$cross_compiling" = yes; then |
| 3668 | ac_cv_kpthread=no |
| 3669 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 | cat >conftest.$ac_ext <<_ACEOF |
| 3671 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3672 | #include "confdefs.h" |
| 3673 | |
| 3674 | #include <pthread.h> |
| 3675 | |
| 3676 | void* routine(void* p){return NULL;} |
| 3677 | |
| 3678 | int main(){ |
| 3679 | pthread_t p; |
| 3680 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3681 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3682 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3683 | return 0; |
| 3684 | } |
| 3685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3686 | _ACEOF |
| 3687 | rm -f conftest$ac_exeext |
| 3688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3689 | (eval $ac_link) 2>&5 |
| 3690 | ac_status=$? |
| 3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3694 | (eval $ac_try) 2>&5 |
| 3695 | ac_status=$? |
| 3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3697 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3698 | ac_cv_kpthread=yes |
| 3699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3700 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3701 | echo "$as_me: failed program was:" >&5 |
| 3702 | cat conftest.$ac_ext >&5 |
| 3703 | ( exit $ac_status ) |
| 3704 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3705 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3706 | 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] | 3707 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3708 | CC="$ac_save_cc" |
| 3709 | fi |
| 3710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3711 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3712 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3713 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3714 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3715 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3716 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3717 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3718 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3719 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | cat >conftest.$ac_ext <<_ACEOF |
| 3723 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3724 | #include "confdefs.h" |
| 3725 | #include <stdlib.h> |
| 3726 | #include <stdarg.h> |
| 3727 | #include <string.h> |
| 3728 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | |
| 3730 | _ACEOF |
| 3731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3733 | ac_status=$? |
| 3734 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3735 | rm -f conftest.er1 |
| 3736 | cat conftest.err >&5 |
| 3737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3738 | (exit $ac_status); } >/dev/null; then |
| 3739 | if test -s conftest.err; then |
| 3740 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3741 | else |
| 3742 | ac_cpp_err= |
| 3743 | fi |
| 3744 | else |
| 3745 | ac_cpp_err=yes |
| 3746 | fi |
| 3747 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3748 | ac_cv_header_stdc=yes |
| 3749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3750 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3751 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3752 | ac_cv_header_stdc=no |
| 3753 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3755 | |
| 3756 | if test $ac_cv_header_stdc = yes; then |
| 3757 | # 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] | 3758 | cat >conftest.$ac_ext <<_ACEOF |
| 3759 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3760 | #include "confdefs.h" |
| 3761 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3762 | |
| 3763 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3765 | egrep "memchr" >/dev/null 2>&1; then |
| 3766 | : |
| 3767 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3768 | ac_cv_header_stdc=no |
| 3769 | fi |
| 3770 | rm -f conftest* |
| 3771 | |
| 3772 | fi |
| 3773 | |
| 3774 | if test $ac_cv_header_stdc = yes; then |
| 3775 | # 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] | 3776 | cat >conftest.$ac_ext <<_ACEOF |
| 3777 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3778 | #include "confdefs.h" |
| 3779 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3780 | |
| 3781 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3783 | egrep "free" >/dev/null 2>&1; then |
| 3784 | : |
| 3785 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3786 | ac_cv_header_stdc=no |
| 3787 | fi |
| 3788 | rm -f conftest* |
| 3789 | |
| 3790 | fi |
| 3791 | |
| 3792 | if test $ac_cv_header_stdc = yes; then |
| 3793 | # /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] | 3794 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3795 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3797 | cat >conftest.$ac_ext <<_ACEOF |
| 3798 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3799 | #include "confdefs.h" |
| 3800 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 | #if ((' ' & 0x0FF) == 0x020) |
| 3802 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3803 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3804 | #else |
| 3805 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3806 | || ('j' <= (c) && (c) <= 'r') \ |
| 3807 | || ('s' <= (c) && (c) <= 'z')) |
| 3808 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3809 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3812 | int |
| 3813 | main () |
| 3814 | { |
| 3815 | int i; |
| 3816 | for (i = 0; i < 256; i++) |
| 3817 | if (XOR (islower (i), ISLOWER (i)) |
| 3818 | || toupper (i) != TOUPPER (i)) |
| 3819 | exit(2); |
| 3820 | exit (0); |
| 3821 | } |
| 3822 | _ACEOF |
| 3823 | rm -f conftest$ac_exeext |
| 3824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3825 | (eval $ac_link) 2>&5 |
| 3826 | ac_status=$? |
| 3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3828 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3830 | (eval $ac_try) 2>&5 |
| 3831 | ac_status=$? |
| 3832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3833 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3834 | : |
| 3835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3836 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3837 | echo "$as_me: failed program was:" >&5 |
| 3838 | cat conftest.$ac_ext >&5 |
| 3839 | ( exit $ac_status ) |
| 3840 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3841 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3842 | 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] | 3843 | fi |
| 3844 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3845 | fi |
| 3846 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3847 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3848 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | |
| 3850 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3851 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3852 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3853 | |
| 3854 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | |
| 3857 | |
| 3858 | |
| 3859 | |
| 3860 | |
| 3861 | |
| 3862 | |
| 3863 | |
| 3864 | |
| 3865 | |
| 3866 | |
| 3867 | |
| 3868 | |
| 3869 | |
| 3870 | |
| 3871 | |
| 3872 | |
| 3873 | |
| 3874 | |
| 3875 | |
| 3876 | |
| 3877 | |
| 3878 | |
| 3879 | |
| 3880 | |
| 3881 | |
| 3882 | |
| 3883 | |
| 3884 | |
| 3885 | |
| 3886 | |
| 3887 | |
| 3888 | |
| 3889 | |
| 3890 | |
| 3891 | |
| 3892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3893 | 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] | 3894 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3895 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Skip Montanaro | 57454e5 | 2002-06-14 20:30:31 +0000 | [diff] [blame] | 3896 | sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3897 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 3898 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Skip Montanaro | 8345f71 | 2002-06-25 05:53:48 +0000 | [diff] [blame] | 3899 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3900 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3901 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3907 | fi |
| 3908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3911 | # Is the header compilable? |
| 3912 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3914 | cat >conftest.$ac_ext <<_ACEOF |
| 3915 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3916 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3917 | $ac_includes_default |
| 3918 | #include <$ac_header> |
| 3919 | _ACEOF |
| 3920 | rm -f conftest.$ac_objext |
| 3921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3922 | (eval $ac_compile) 2>&5 |
| 3923 | ac_status=$? |
| 3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3925 | (exit $ac_status); } && |
| 3926 | { ac_try='test -s conftest.$ac_objext' |
| 3927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3928 | (eval $ac_try) 2>&5 |
| 3929 | ac_status=$? |
| 3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3931 | (exit $ac_status); }; }; then |
| 3932 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3934 | echo "$as_me: failed program was:" >&5 |
| 3935 | cat conftest.$ac_ext >&5 |
| 3936 | ac_header_compiler=no |
| 3937 | fi |
| 3938 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3939 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3940 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3941 | |
| 3942 | # Is the header present? |
| 3943 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3944 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3945 | cat >conftest.$ac_ext <<_ACEOF |
| 3946 | #line $LINENO "configure" |
| 3947 | #include "confdefs.h" |
| 3948 | #include <$ac_header> |
| 3949 | _ACEOF |
| 3950 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3951 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3952 | ac_status=$? |
| 3953 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3954 | rm -f conftest.er1 |
| 3955 | cat conftest.err >&5 |
| 3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3957 | (exit $ac_status); } >/dev/null; then |
| 3958 | if test -s conftest.err; then |
| 3959 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3960 | else |
| 3961 | ac_cpp_err= |
| 3962 | fi |
| 3963 | else |
| 3964 | ac_cpp_err=yes |
| 3965 | fi |
| 3966 | if test -z "$ac_cpp_err"; then |
| 3967 | ac_header_preproc=yes |
| 3968 | else |
| 3969 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3970 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3971 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3973 | rm -f conftest.err conftest.$ac_ext |
| 3974 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3975 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3976 | |
| 3977 | # So? What about this header? |
| 3978 | case $ac_header_compiler:$ac_header_preproc in |
| 3979 | yes:no ) |
| 3980 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3981 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3982 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3983 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3984 | no:yes ) |
| 3985 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3986 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3987 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3988 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3989 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3990 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3991 | esac |
| 3992 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3993 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3994 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3997 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4000 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4001 | |
| 4002 | fi |
| 4003 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4004 | cat >>confdefs.h <<_ACEOF |
| 4005 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4006 | _ACEOF |
| 4007 | |
| 4008 | fi |
| 4009 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4010 | done |
| 4011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4012 | |
| 4013 | |
| 4014 | |
| 4015 | |
| 4016 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4017 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4018 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4019 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4020 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4021 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4025 | cat >conftest.$ac_ext <<_ACEOF |
| 4026 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4027 | #include "confdefs.h" |
| 4028 | #include <sys/types.h> |
| 4029 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4030 | |
| 4031 | #ifdef F77_DUMMY_MAIN |
| 4032 | # ifdef __cplusplus |
| 4033 | extern "C" |
| 4034 | # endif |
| 4035 | int F77_DUMMY_MAIN() { return 1; } |
| 4036 | #endif |
| 4037 | int |
| 4038 | main () |
| 4039 | { |
| 4040 | if ((DIR *) 0) |
| 4041 | return 0; |
| 4042 | ; |
| 4043 | return 0; |
| 4044 | } |
| 4045 | _ACEOF |
| 4046 | rm -f conftest.$ac_objext |
| 4047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4048 | (eval $ac_compile) 2>&5 |
| 4049 | ac_status=$? |
| 4050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4051 | (exit $ac_status); } && |
| 4052 | { ac_try='test -s conftest.$ac_objext' |
| 4053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4054 | (eval $ac_try) 2>&5 |
| 4055 | ac_status=$? |
| 4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4057 | (exit $ac_status); }; }; then |
| 4058 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4060 | echo "$as_me: failed program was:" >&5 |
| 4061 | cat conftest.$ac_ext >&5 |
| 4062 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4064 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4067 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4068 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4069 | cat >>confdefs.h <<_ACEOF |
| 4070 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4071 | _ACEOF |
| 4072 | |
| 4073 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4074 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4075 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4076 | done |
| 4077 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4078 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4080 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4081 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4084 | ac_func_search_save_LIBS=$LIBS |
| 4085 | ac_cv_search_opendir=no |
| 4086 | cat >conftest.$ac_ext <<_ACEOF |
| 4087 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4088 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4090 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4091 | #ifdef __cplusplus |
| 4092 | extern "C" |
| 4093 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4094 | /* 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] | 4095 | builtin and then its argument prototype would still apply. */ |
| 4096 | char opendir (); |
| 4097 | #ifdef F77_DUMMY_MAIN |
| 4098 | # ifdef __cplusplus |
| 4099 | extern "C" |
| 4100 | # endif |
| 4101 | int F77_DUMMY_MAIN() { return 1; } |
| 4102 | #endif |
| 4103 | int |
| 4104 | main () |
| 4105 | { |
| 4106 | opendir (); |
| 4107 | ; |
| 4108 | return 0; |
| 4109 | } |
| 4110 | _ACEOF |
| 4111 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4113 | (eval $ac_link) 2>&5 |
| 4114 | ac_status=$? |
| 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4116 | (exit $ac_status); } && |
| 4117 | { ac_try='test -s conftest$ac_exeext' |
| 4118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4119 | (eval $ac_try) 2>&5 |
| 4120 | ac_status=$? |
| 4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4122 | (exit $ac_status); }; }; then |
| 4123 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4125 | echo "$as_me: failed program was:" >&5 |
| 4126 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4127 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4128 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4129 | if test "$ac_cv_search_opendir" = no; then |
| 4130 | for ac_lib in dir; do |
| 4131 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4132 | cat >conftest.$ac_ext <<_ACEOF |
| 4133 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4134 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4135 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4136 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4137 | #ifdef __cplusplus |
| 4138 | extern "C" |
| 4139 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4140 | /* 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] | 4141 | builtin and then its argument prototype would still apply. */ |
| 4142 | char opendir (); |
| 4143 | #ifdef F77_DUMMY_MAIN |
| 4144 | # ifdef __cplusplus |
| 4145 | extern "C" |
| 4146 | # endif |
| 4147 | int F77_DUMMY_MAIN() { return 1; } |
| 4148 | #endif |
| 4149 | int |
| 4150 | main () |
| 4151 | { |
| 4152 | opendir (); |
| 4153 | ; |
| 4154 | return 0; |
| 4155 | } |
| 4156 | _ACEOF |
| 4157 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4159 | (eval $ac_link) 2>&5 |
| 4160 | ac_status=$? |
| 4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4162 | (exit $ac_status); } && |
| 4163 | { ac_try='test -s conftest$ac_exeext' |
| 4164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4165 | (eval $ac_try) 2>&5 |
| 4166 | ac_status=$? |
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4168 | (exit $ac_status); }; }; then |
| 4169 | ac_cv_search_opendir="-l$ac_lib" |
| 4170 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4172 | echo "$as_me: failed program was:" >&5 |
| 4173 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4175 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4176 | done |
| 4177 | fi |
| 4178 | LIBS=$ac_func_search_save_LIBS |
| 4179 | fi |
| 4180 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4181 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4182 | if test "$ac_cv_search_opendir" != no; then |
| 4183 | 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] | 4184 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4185 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4186 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4188 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4189 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4190 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4192 | else |
| 4193 | ac_func_search_save_LIBS=$LIBS |
| 4194 | ac_cv_search_opendir=no |
| 4195 | cat >conftest.$ac_ext <<_ACEOF |
| 4196 | #line $LINENO "configure" |
| 4197 | #include "confdefs.h" |
| 4198 | |
| 4199 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4200 | #ifdef __cplusplus |
| 4201 | extern "C" |
| 4202 | #endif |
| 4203 | /* We use char because int might match the return type of a gcc2 |
| 4204 | builtin and then its argument prototype would still apply. */ |
| 4205 | char opendir (); |
| 4206 | #ifdef F77_DUMMY_MAIN |
| 4207 | # ifdef __cplusplus |
| 4208 | extern "C" |
| 4209 | # endif |
| 4210 | int F77_DUMMY_MAIN() { return 1; } |
| 4211 | #endif |
| 4212 | int |
| 4213 | main () |
| 4214 | { |
| 4215 | opendir (); |
| 4216 | ; |
| 4217 | return 0; |
| 4218 | } |
| 4219 | _ACEOF |
| 4220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4222 | (eval $ac_link) 2>&5 |
| 4223 | ac_status=$? |
| 4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4225 | (exit $ac_status); } && |
| 4226 | { ac_try='test -s conftest$ac_exeext' |
| 4227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4228 | (eval $ac_try) 2>&5 |
| 4229 | ac_status=$? |
| 4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4231 | (exit $ac_status); }; }; then |
| 4232 | ac_cv_search_opendir="none required" |
| 4233 | else |
| 4234 | echo "$as_me: failed program was:" >&5 |
| 4235 | cat conftest.$ac_ext >&5 |
| 4236 | fi |
| 4237 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4238 | if test "$ac_cv_search_opendir" = no; then |
| 4239 | for ac_lib in x; do |
| 4240 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4241 | cat >conftest.$ac_ext <<_ACEOF |
| 4242 | #line $LINENO "configure" |
| 4243 | #include "confdefs.h" |
| 4244 | |
| 4245 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4246 | #ifdef __cplusplus |
| 4247 | extern "C" |
| 4248 | #endif |
| 4249 | /* We use char because int might match the return type of a gcc2 |
| 4250 | builtin and then its argument prototype would still apply. */ |
| 4251 | char opendir (); |
| 4252 | #ifdef F77_DUMMY_MAIN |
| 4253 | # ifdef __cplusplus |
| 4254 | extern "C" |
| 4255 | # endif |
| 4256 | int F77_DUMMY_MAIN() { return 1; } |
| 4257 | #endif |
| 4258 | int |
| 4259 | main () |
| 4260 | { |
| 4261 | opendir (); |
| 4262 | ; |
| 4263 | return 0; |
| 4264 | } |
| 4265 | _ACEOF |
| 4266 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4268 | (eval $ac_link) 2>&5 |
| 4269 | ac_status=$? |
| 4270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4271 | (exit $ac_status); } && |
| 4272 | { ac_try='test -s conftest$ac_exeext' |
| 4273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4274 | (eval $ac_try) 2>&5 |
| 4275 | ac_status=$? |
| 4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4277 | (exit $ac_status); }; }; then |
| 4278 | ac_cv_search_opendir="-l$ac_lib" |
| 4279 | break |
| 4280 | else |
| 4281 | echo "$as_me: failed program was:" >&5 |
| 4282 | cat conftest.$ac_ext >&5 |
| 4283 | fi |
| 4284 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4285 | done |
| 4286 | fi |
| 4287 | LIBS=$ac_func_search_save_LIBS |
| 4288 | fi |
| 4289 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4290 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4291 | if test "$ac_cv_search_opendir" != no; then |
| 4292 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4293 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4294 | fi |
| 4295 | |
| 4296 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4297 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4298 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4299 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4300 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4302 | else |
| 4303 | cat >conftest.$ac_ext <<_ACEOF |
| 4304 | #line $LINENO "configure" |
| 4305 | #include "confdefs.h" |
| 4306 | #include <sys/types.h> |
| 4307 | #ifdef F77_DUMMY_MAIN |
| 4308 | # ifdef __cplusplus |
| 4309 | extern "C" |
| 4310 | # endif |
| 4311 | int F77_DUMMY_MAIN() { return 1; } |
| 4312 | #endif |
| 4313 | int |
| 4314 | main () |
| 4315 | { |
| 4316 | return makedev(0, 0); |
| 4317 | ; |
| 4318 | return 0; |
| 4319 | } |
| 4320 | _ACEOF |
| 4321 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4323 | (eval $ac_link) 2>&5 |
| 4324 | ac_status=$? |
| 4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4326 | (exit $ac_status); } && |
| 4327 | { ac_try='test -s conftest$ac_exeext' |
| 4328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4329 | (eval $ac_try) 2>&5 |
| 4330 | ac_status=$? |
| 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4332 | (exit $ac_status); }; }; then |
| 4333 | ac_cv_header_sys_types_h_makedev=yes |
| 4334 | else |
| 4335 | echo "$as_me: failed program was:" >&5 |
| 4336 | cat conftest.$ac_ext >&5 |
| 4337 | ac_cv_header_sys_types_h_makedev=no |
| 4338 | fi |
| 4339 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4340 | |
| 4341 | fi |
| 4342 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4343 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4344 | |
| 4345 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4346 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4347 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4348 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4349 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4351 | fi |
| 4352 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4353 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4354 | else |
| 4355 | # Is the header compilable? |
| 4356 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4357 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4358 | cat >conftest.$ac_ext <<_ACEOF |
| 4359 | #line $LINENO "configure" |
| 4360 | #include "confdefs.h" |
| 4361 | $ac_includes_default |
| 4362 | #include <sys/mkdev.h> |
| 4363 | _ACEOF |
| 4364 | rm -f conftest.$ac_objext |
| 4365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4366 | (eval $ac_compile) 2>&5 |
| 4367 | ac_status=$? |
| 4368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4369 | (exit $ac_status); } && |
| 4370 | { ac_try='test -s conftest.$ac_objext' |
| 4371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4372 | (eval $ac_try) 2>&5 |
| 4373 | ac_status=$? |
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4375 | (exit $ac_status); }; }; then |
| 4376 | ac_header_compiler=yes |
| 4377 | else |
| 4378 | echo "$as_me: failed program was:" >&5 |
| 4379 | cat conftest.$ac_ext >&5 |
| 4380 | ac_header_compiler=no |
| 4381 | fi |
| 4382 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4383 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4384 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4385 | |
| 4386 | # Is the header present? |
| 4387 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4388 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4389 | cat >conftest.$ac_ext <<_ACEOF |
| 4390 | #line $LINENO "configure" |
| 4391 | #include "confdefs.h" |
| 4392 | #include <sys/mkdev.h> |
| 4393 | _ACEOF |
| 4394 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4395 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4396 | ac_status=$? |
| 4397 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4398 | rm -f conftest.er1 |
| 4399 | cat conftest.err >&5 |
| 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4401 | (exit $ac_status); } >/dev/null; then |
| 4402 | if test -s conftest.err; then |
| 4403 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4404 | else |
| 4405 | ac_cpp_err= |
| 4406 | fi |
| 4407 | else |
| 4408 | ac_cpp_err=yes |
| 4409 | fi |
| 4410 | if test -z "$ac_cpp_err"; then |
| 4411 | ac_header_preproc=yes |
| 4412 | else |
| 4413 | echo "$as_me: failed program was:" >&5 |
| 4414 | cat conftest.$ac_ext >&5 |
| 4415 | ac_header_preproc=no |
| 4416 | fi |
| 4417 | rm -f conftest.err conftest.$ac_ext |
| 4418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4419 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4420 | |
| 4421 | # So? What about this header? |
| 4422 | case $ac_header_compiler:$ac_header_preproc in |
| 4423 | yes:no ) |
| 4424 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4425 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4426 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4427 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4428 | no:yes ) |
| 4429 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4430 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4431 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4432 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4433 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4434 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4435 | esac |
| 4436 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4437 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4438 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4440 | else |
| 4441 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4442 | fi |
| 4443 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4444 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4445 | |
| 4446 | fi |
| 4447 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4448 | |
| 4449 | cat >>confdefs.h <<\_ACEOF |
| 4450 | #define MAJOR_IN_MKDEV 1 |
| 4451 | _ACEOF |
| 4452 | |
| 4453 | fi |
| 4454 | |
| 4455 | |
| 4456 | |
| 4457 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4458 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4459 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4460 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4461 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4463 | fi |
| 4464 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4465 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4466 | else |
| 4467 | # Is the header compilable? |
| 4468 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4469 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4470 | cat >conftest.$ac_ext <<_ACEOF |
| 4471 | #line $LINENO "configure" |
| 4472 | #include "confdefs.h" |
| 4473 | $ac_includes_default |
| 4474 | #include <sys/sysmacros.h> |
| 4475 | _ACEOF |
| 4476 | rm -f conftest.$ac_objext |
| 4477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4478 | (eval $ac_compile) 2>&5 |
| 4479 | ac_status=$? |
| 4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4481 | (exit $ac_status); } && |
| 4482 | { ac_try='test -s conftest.$ac_objext' |
| 4483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4484 | (eval $ac_try) 2>&5 |
| 4485 | ac_status=$? |
| 4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4487 | (exit $ac_status); }; }; then |
| 4488 | ac_header_compiler=yes |
| 4489 | else |
| 4490 | echo "$as_me: failed program was:" >&5 |
| 4491 | cat conftest.$ac_ext >&5 |
| 4492 | ac_header_compiler=no |
| 4493 | fi |
| 4494 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4496 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4497 | |
| 4498 | # Is the header present? |
| 4499 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4500 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4501 | cat >conftest.$ac_ext <<_ACEOF |
| 4502 | #line $LINENO "configure" |
| 4503 | #include "confdefs.h" |
| 4504 | #include <sys/sysmacros.h> |
| 4505 | _ACEOF |
| 4506 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4507 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4508 | ac_status=$? |
| 4509 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4510 | rm -f conftest.er1 |
| 4511 | cat conftest.err >&5 |
| 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4513 | (exit $ac_status); } >/dev/null; then |
| 4514 | if test -s conftest.err; then |
| 4515 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4516 | else |
| 4517 | ac_cpp_err= |
| 4518 | fi |
| 4519 | else |
| 4520 | ac_cpp_err=yes |
| 4521 | fi |
| 4522 | if test -z "$ac_cpp_err"; then |
| 4523 | ac_header_preproc=yes |
| 4524 | else |
| 4525 | echo "$as_me: failed program was:" >&5 |
| 4526 | cat conftest.$ac_ext >&5 |
| 4527 | ac_header_preproc=no |
| 4528 | fi |
| 4529 | rm -f conftest.err conftest.$ac_ext |
| 4530 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4531 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4532 | |
| 4533 | # So? What about this header? |
| 4534 | case $ac_header_compiler:$ac_header_preproc in |
| 4535 | yes:no ) |
| 4536 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4537 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4538 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4539 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4540 | no:yes ) |
| 4541 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4542 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4543 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4544 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4545 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4546 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4547 | esac |
| 4548 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4549 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4550 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4552 | else |
| 4553 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4554 | fi |
| 4555 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4556 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4557 | |
| 4558 | fi |
| 4559 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4560 | |
| 4561 | cat >>confdefs.h <<\_ACEOF |
| 4562 | #define MAJOR_IN_SYSMACROS 1 |
| 4563 | _ACEOF |
| 4564 | |
| 4565 | fi |
| 4566 | |
| 4567 | |
| 4568 | fi |
| 4569 | fi |
| 4570 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4571 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4572 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4573 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4574 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4575 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4576 | cat >conftest.$ac_ext <<_ACEOF |
| 4577 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4578 | #include "confdefs.h" |
| 4579 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4580 | |
| 4581 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4583 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4584 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4586 | |
| 4587 | |
| 4588 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4589 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4590 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4591 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4592 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4593 | fi |
| 4594 | rm -f conftest* |
| 4595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4596 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4597 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4598 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4599 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4600 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4601 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4602 | cat >conftest.$ac_ext <<_ACEOF |
| 4603 | #line $LINENO "configure" |
| 4604 | #include "confdefs.h" |
| 4605 | #include <sys/types.h> |
| 4606 | #ifdef F77_DUMMY_MAIN |
| 4607 | # ifdef __cplusplus |
| 4608 | extern "C" |
| 4609 | # endif |
| 4610 | int F77_DUMMY_MAIN() { return 1; } |
| 4611 | #endif |
| 4612 | int |
| 4613 | main () |
| 4614 | { |
| 4615 | makedev(0, 0) |
| 4616 | ; |
| 4617 | return 0; |
| 4618 | } |
| 4619 | _ACEOF |
| 4620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4622 | (eval $ac_link) 2>&5 |
| 4623 | ac_status=$? |
| 4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4625 | (exit $ac_status); } && |
| 4626 | { ac_try='test -s conftest$ac_exeext' |
| 4627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4628 | (eval $ac_try) 2>&5 |
| 4629 | ac_status=$? |
| 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4631 | (exit $ac_status); }; }; then |
| 4632 | ac_cv_has_makedev=yes |
| 4633 | else |
| 4634 | echo "$as_me: failed program was:" >&5 |
| 4635 | cat conftest.$ac_ext >&5 |
| 4636 | ac_cv_has_makedev=no |
| 4637 | fi |
| 4638 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4639 | if test "$ac_cv_has_makedev" = "no"; then |
| 4640 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4641 | cat >conftest.$ac_ext <<_ACEOF |
| 4642 | #line $LINENO "configure" |
| 4643 | #include "confdefs.h" |
| 4644 | |
| 4645 | #define _OSF_SOURCE 1 |
| 4646 | #include <sys/types.h> |
| 4647 | |
| 4648 | #ifdef F77_DUMMY_MAIN |
| 4649 | # ifdef __cplusplus |
| 4650 | extern "C" |
| 4651 | # endif |
| 4652 | int F77_DUMMY_MAIN() { return 1; } |
| 4653 | #endif |
| 4654 | int |
| 4655 | main () |
| 4656 | { |
| 4657 | makedev(0, 0) |
| 4658 | ; |
| 4659 | return 0; |
| 4660 | } |
| 4661 | _ACEOF |
| 4662 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4664 | (eval $ac_link) 2>&5 |
| 4665 | ac_status=$? |
| 4666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4667 | (exit $ac_status); } && |
| 4668 | { ac_try='test -s conftest$ac_exeext' |
| 4669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4670 | (eval $ac_try) 2>&5 |
| 4671 | ac_status=$? |
| 4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4673 | (exit $ac_status); }; }; then |
| 4674 | ac_cv_has_makedev=yes |
| 4675 | else |
| 4676 | echo "$as_me: failed program was:" >&5 |
| 4677 | cat conftest.$ac_ext >&5 |
| 4678 | ac_cv_has_makedev=no |
| 4679 | fi |
| 4680 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4681 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4682 | |
| 4683 | cat >>confdefs.h <<\_ACEOF |
| 4684 | #define _OSF_SOURCE 1 |
| 4685 | _ACEOF |
| 4686 | |
| 4687 | fi |
| 4688 | fi |
| 4689 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4690 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4691 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4692 | |
| 4693 | cat >>confdefs.h <<\_ACEOF |
| 4694 | #define HAVE_MAKEDEV 1 |
| 4695 | _ACEOF |
| 4696 | |
| 4697 | fi |
| 4698 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4699 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4700 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4701 | # defined, but the compiler does not support pragma redefine_extname, |
| 4702 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4703 | # structures (such as rlimit64) without declaring them. As a |
| 4704 | # work-around, disable LFS on such configurations |
| 4705 | |
| 4706 | use_lfs=yes |
| 4707 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4708 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4709 | cat >conftest.$ac_ext <<_ACEOF |
| 4710 | #line $LINENO "configure" |
| 4711 | #include "confdefs.h" |
| 4712 | |
| 4713 | #define _LARGEFILE_SOURCE 1 |
| 4714 | #define _FILE_OFFSET_BITS 64 |
| 4715 | #include <sys/resource.h> |
| 4716 | |
| 4717 | #ifdef F77_DUMMY_MAIN |
| 4718 | # ifdef __cplusplus |
| 4719 | extern "C" |
| 4720 | # endif |
| 4721 | int F77_DUMMY_MAIN() { return 1; } |
| 4722 | #endif |
| 4723 | int |
| 4724 | main () |
| 4725 | { |
| 4726 | struct rlimit foo; |
| 4727 | ; |
| 4728 | return 0; |
| 4729 | } |
| 4730 | _ACEOF |
| 4731 | rm -f conftest.$ac_objext |
| 4732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4733 | (eval $ac_compile) 2>&5 |
| 4734 | ac_status=$? |
| 4735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4736 | (exit $ac_status); } && |
| 4737 | { ac_try='test -s conftest.$ac_objext' |
| 4738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4739 | (eval $ac_try) 2>&5 |
| 4740 | ac_status=$? |
| 4741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4742 | (exit $ac_status); }; }; then |
| 4743 | sol_lfs_bug=no |
| 4744 | else |
| 4745 | echo "$as_me: failed program was:" >&5 |
| 4746 | cat conftest.$ac_ext >&5 |
| 4747 | sol_lfs_bug=yes |
| 4748 | fi |
| 4749 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4750 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4751 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4752 | if test "$sol_lfs_bug" = "yes"; then |
| 4753 | use_lfs=no |
| 4754 | fi |
| 4755 | |
| 4756 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4757 | # Two defines needed to enable largefile support on various platforms |
| 4758 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4760 | cat >>confdefs.h <<\_ACEOF |
| 4761 | #define _LARGEFILE_SOURCE 1 |
| 4762 | _ACEOF |
| 4763 | |
| 4764 | |
| 4765 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4766 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4767 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4768 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4769 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4770 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4771 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4772 | cat >> confdefs.h <<\EOF |
| 4773 | #if defined(SCO_DS) |
| 4774 | #undef _OFF_T |
| 4775 | #endif |
| 4776 | EOF |
| 4777 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4778 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4779 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4780 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4781 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4784 | cat >conftest.$ac_ext <<_ACEOF |
| 4785 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4786 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4787 | $ac_includes_default |
| 4788 | #ifdef F77_DUMMY_MAIN |
| 4789 | # ifdef __cplusplus |
| 4790 | extern "C" |
| 4791 | # endif |
| 4792 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4793 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4794 | int |
| 4795 | main () |
| 4796 | { |
| 4797 | if ((mode_t *) 0) |
| 4798 | return 0; |
| 4799 | if (sizeof (mode_t)) |
| 4800 | return 0; |
| 4801 | ; |
| 4802 | return 0; |
| 4803 | } |
| 4804 | _ACEOF |
| 4805 | rm -f conftest.$ac_objext |
| 4806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4807 | (eval $ac_compile) 2>&5 |
| 4808 | ac_status=$? |
| 4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4810 | (exit $ac_status); } && |
| 4811 | { ac_try='test -s conftest.$ac_objext' |
| 4812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4813 | (eval $ac_try) 2>&5 |
| 4814 | ac_status=$? |
| 4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4816 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4817 | ac_cv_type_mode_t=yes |
| 4818 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4819 | echo "$as_me: failed program was:" >&5 |
| 4820 | cat conftest.$ac_ext >&5 |
| 4821 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4822 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4823 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4824 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4825 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4826 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4827 | if test $ac_cv_type_mode_t = yes; then |
| 4828 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4830 | |
| 4831 | cat >>confdefs.h <<_ACEOF |
| 4832 | #define mode_t int |
| 4833 | _ACEOF |
| 4834 | |
| 4835 | fi |
| 4836 | |
| 4837 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4838 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4839 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4841 | else |
| 4842 | cat >conftest.$ac_ext <<_ACEOF |
| 4843 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4844 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4845 | $ac_includes_default |
| 4846 | #ifdef F77_DUMMY_MAIN |
| 4847 | # ifdef __cplusplus |
| 4848 | extern "C" |
| 4849 | # endif |
| 4850 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4851 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4852 | int |
| 4853 | main () |
| 4854 | { |
| 4855 | if ((off_t *) 0) |
| 4856 | return 0; |
| 4857 | if (sizeof (off_t)) |
| 4858 | return 0; |
| 4859 | ; |
| 4860 | return 0; |
| 4861 | } |
| 4862 | _ACEOF |
| 4863 | rm -f conftest.$ac_objext |
| 4864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4865 | (eval $ac_compile) 2>&5 |
| 4866 | ac_status=$? |
| 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4868 | (exit $ac_status); } && |
| 4869 | { ac_try='test -s conftest.$ac_objext' |
| 4870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4871 | (eval $ac_try) 2>&5 |
| 4872 | ac_status=$? |
| 4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4874 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4875 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4877 | echo "$as_me: failed program was:" >&5 |
| 4878 | cat conftest.$ac_ext >&5 |
| 4879 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4880 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4881 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4883 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4884 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4885 | if test $ac_cv_type_off_t = yes; then |
| 4886 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4887 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4888 | |
| 4889 | cat >>confdefs.h <<_ACEOF |
| 4890 | #define off_t long |
| 4891 | _ACEOF |
| 4892 | |
| 4893 | fi |
| 4894 | |
| 4895 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4896 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4897 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4899 | else |
| 4900 | cat >conftest.$ac_ext <<_ACEOF |
| 4901 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4902 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4903 | $ac_includes_default |
| 4904 | #ifdef F77_DUMMY_MAIN |
| 4905 | # ifdef __cplusplus |
| 4906 | extern "C" |
| 4907 | # endif |
| 4908 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4909 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4910 | int |
| 4911 | main () |
| 4912 | { |
| 4913 | if ((pid_t *) 0) |
| 4914 | return 0; |
| 4915 | if (sizeof (pid_t)) |
| 4916 | return 0; |
| 4917 | ; |
| 4918 | return 0; |
| 4919 | } |
| 4920 | _ACEOF |
| 4921 | rm -f conftest.$ac_objext |
| 4922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4923 | (eval $ac_compile) 2>&5 |
| 4924 | ac_status=$? |
| 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4926 | (exit $ac_status); } && |
| 4927 | { ac_try='test -s conftest.$ac_objext' |
| 4928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4929 | (eval $ac_try) 2>&5 |
| 4930 | ac_status=$? |
| 4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4932 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4933 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4935 | echo "$as_me: failed program was:" >&5 |
| 4936 | cat conftest.$ac_ext >&5 |
| 4937 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4938 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4939 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4940 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4941 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4942 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4943 | if test $ac_cv_type_pid_t = yes; then |
| 4944 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4946 | |
| 4947 | cat >>confdefs.h <<_ACEOF |
| 4948 | #define pid_t int |
| 4949 | _ACEOF |
| 4950 | |
| 4951 | fi |
| 4952 | |
| 4953 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4954 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4955 | if test "${ac_cv_type_signal+set}" = set; then |
| 4956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4957 | else |
| 4958 | cat >conftest.$ac_ext <<_ACEOF |
| 4959 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4960 | #include "confdefs.h" |
| 4961 | #include <sys/types.h> |
| 4962 | #include <signal.h> |
| 4963 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4964 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4965 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4966 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4967 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4968 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4969 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4970 | #endif |
| 4971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4972 | #ifdef F77_DUMMY_MAIN |
| 4973 | # ifdef __cplusplus |
| 4974 | extern "C" |
| 4975 | # endif |
| 4976 | int F77_DUMMY_MAIN() { return 1; } |
| 4977 | #endif |
| 4978 | int |
| 4979 | main () |
| 4980 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4981 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4982 | ; |
| 4983 | return 0; |
| 4984 | } |
| 4985 | _ACEOF |
| 4986 | rm -f conftest.$ac_objext |
| 4987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4988 | (eval $ac_compile) 2>&5 |
| 4989 | ac_status=$? |
| 4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4991 | (exit $ac_status); } && |
| 4992 | { ac_try='test -s conftest.$ac_objext' |
| 4993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4994 | (eval $ac_try) 2>&5 |
| 4995 | ac_status=$? |
| 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4997 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4998 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5000 | echo "$as_me: failed program was:" >&5 |
| 5001 | cat conftest.$ac_ext >&5 |
| 5002 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5004 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5005 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5006 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5007 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5009 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5010 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5011 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5012 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5014 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5015 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5016 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5019 | cat >conftest.$ac_ext <<_ACEOF |
| 5020 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5021 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5022 | $ac_includes_default |
| 5023 | #ifdef F77_DUMMY_MAIN |
| 5024 | # ifdef __cplusplus |
| 5025 | extern "C" |
| 5026 | # endif |
| 5027 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5028 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5029 | int |
| 5030 | main () |
| 5031 | { |
| 5032 | if ((size_t *) 0) |
| 5033 | return 0; |
| 5034 | if (sizeof (size_t)) |
| 5035 | return 0; |
| 5036 | ; |
| 5037 | return 0; |
| 5038 | } |
| 5039 | _ACEOF |
| 5040 | rm -f conftest.$ac_objext |
| 5041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5042 | (eval $ac_compile) 2>&5 |
| 5043 | ac_status=$? |
| 5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5045 | (exit $ac_status); } && |
| 5046 | { ac_try='test -s conftest.$ac_objext' |
| 5047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5048 | (eval $ac_try) 2>&5 |
| 5049 | ac_status=$? |
| 5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5051 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5052 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5054 | echo "$as_me: failed program was:" >&5 |
| 5055 | cat conftest.$ac_ext >&5 |
| 5056 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5057 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5058 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5060 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5061 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5062 | if test $ac_cv_type_size_t = yes; then |
| 5063 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5064 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5065 | |
| 5066 | cat >>confdefs.h <<_ACEOF |
| 5067 | #define size_t unsigned |
| 5068 | _ACEOF |
| 5069 | |
| 5070 | fi |
| 5071 | |
| 5072 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5073 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5074 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5076 | else |
| 5077 | cat >conftest.$ac_ext <<_ACEOF |
| 5078 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5079 | #include "confdefs.h" |
| 5080 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5081 | |
| 5082 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5083 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5084 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5085 | ac_cv_type_uid_t=yes |
| 5086 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5087 | ac_cv_type_uid_t=no |
| 5088 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5089 | rm -f conftest* |
| 5090 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5092 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5093 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5094 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5096 | cat >>confdefs.h <<\_ACEOF |
| 5097 | #define uid_t int |
| 5098 | _ACEOF |
| 5099 | |
| 5100 | |
| 5101 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5102 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5103 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5104 | |
| 5105 | fi |
| 5106 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5107 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5108 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5109 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5110 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5111 | if test "${ac_cv_type_int+set}" = set; then |
| 5112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5113 | else |
| 5114 | cat >conftest.$ac_ext <<_ACEOF |
| 5115 | #line $LINENO "configure" |
| 5116 | #include "confdefs.h" |
| 5117 | $ac_includes_default |
| 5118 | #ifdef F77_DUMMY_MAIN |
| 5119 | # ifdef __cplusplus |
| 5120 | extern "C" |
| 5121 | # endif |
| 5122 | int F77_DUMMY_MAIN() { return 1; } |
| 5123 | #endif |
| 5124 | int |
| 5125 | main () |
| 5126 | { |
| 5127 | if ((int *) 0) |
| 5128 | return 0; |
| 5129 | if (sizeof (int)) |
| 5130 | return 0; |
| 5131 | ; |
| 5132 | return 0; |
| 5133 | } |
| 5134 | _ACEOF |
| 5135 | rm -f conftest.$ac_objext |
| 5136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5137 | (eval $ac_compile) 2>&5 |
| 5138 | ac_status=$? |
| 5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5140 | (exit $ac_status); } && |
| 5141 | { ac_try='test -s conftest.$ac_objext' |
| 5142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5143 | (eval $ac_try) 2>&5 |
| 5144 | ac_status=$? |
| 5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5146 | (exit $ac_status); }; }; then |
| 5147 | ac_cv_type_int=yes |
| 5148 | else |
| 5149 | echo "$as_me: failed program was:" >&5 |
| 5150 | cat conftest.$ac_ext >&5 |
| 5151 | ac_cv_type_int=no |
| 5152 | fi |
| 5153 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5154 | fi |
| 5155 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5156 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5157 | |
| 5158 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5159 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5160 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5162 | else |
| 5163 | if test "$ac_cv_type_int" = yes; then |
| 5164 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5165 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5166 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5167 | # This bug is HP SR number 8606223364. |
| 5168 | if test "$cross_compiling" = yes; then |
| 5169 | # Depending upon the size, compute the lo and hi bounds. |
| 5170 | cat >conftest.$ac_ext <<_ACEOF |
| 5171 | #line $LINENO "configure" |
| 5172 | #include "confdefs.h" |
| 5173 | $ac_includes_default |
| 5174 | #ifdef F77_DUMMY_MAIN |
| 5175 | # ifdef __cplusplus |
| 5176 | extern "C" |
| 5177 | # endif |
| 5178 | int F77_DUMMY_MAIN() { return 1; } |
| 5179 | #endif |
| 5180 | int |
| 5181 | main () |
| 5182 | { |
| 5183 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5184 | test_array [0] = 0 |
| 5185 | |
| 5186 | ; |
| 5187 | return 0; |
| 5188 | } |
| 5189 | _ACEOF |
| 5190 | rm -f conftest.$ac_objext |
| 5191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5192 | (eval $ac_compile) 2>&5 |
| 5193 | ac_status=$? |
| 5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5195 | (exit $ac_status); } && |
| 5196 | { ac_try='test -s conftest.$ac_objext' |
| 5197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5198 | (eval $ac_try) 2>&5 |
| 5199 | ac_status=$? |
| 5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5201 | (exit $ac_status); }; }; then |
| 5202 | ac_lo=0 ac_mid=0 |
| 5203 | while :; do |
| 5204 | cat >conftest.$ac_ext <<_ACEOF |
| 5205 | #line $LINENO "configure" |
| 5206 | #include "confdefs.h" |
| 5207 | $ac_includes_default |
| 5208 | #ifdef F77_DUMMY_MAIN |
| 5209 | # ifdef __cplusplus |
| 5210 | extern "C" |
| 5211 | # endif |
| 5212 | int F77_DUMMY_MAIN() { return 1; } |
| 5213 | #endif |
| 5214 | int |
| 5215 | main () |
| 5216 | { |
| 5217 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5218 | test_array [0] = 0 |
| 5219 | |
| 5220 | ; |
| 5221 | return 0; |
| 5222 | } |
| 5223 | _ACEOF |
| 5224 | rm -f conftest.$ac_objext |
| 5225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5226 | (eval $ac_compile) 2>&5 |
| 5227 | ac_status=$? |
| 5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5229 | (exit $ac_status); } && |
| 5230 | { ac_try='test -s conftest.$ac_objext' |
| 5231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5232 | (eval $ac_try) 2>&5 |
| 5233 | ac_status=$? |
| 5234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5235 | (exit $ac_status); }; }; then |
| 5236 | ac_hi=$ac_mid; break |
| 5237 | else |
| 5238 | echo "$as_me: failed program was:" >&5 |
| 5239 | cat conftest.$ac_ext >&5 |
| 5240 | ac_lo=`expr $ac_mid + 1` |
| 5241 | if test $ac_lo -le $ac_mid; then |
| 5242 | ac_lo= ac_hi= |
| 5243 | break |
| 5244 | fi |
| 5245 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5246 | fi |
| 5247 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5248 | done |
| 5249 | else |
| 5250 | echo "$as_me: failed program was:" >&5 |
| 5251 | cat conftest.$ac_ext >&5 |
| 5252 | cat >conftest.$ac_ext <<_ACEOF |
| 5253 | #line $LINENO "configure" |
| 5254 | #include "confdefs.h" |
| 5255 | $ac_includes_default |
| 5256 | #ifdef F77_DUMMY_MAIN |
| 5257 | # ifdef __cplusplus |
| 5258 | extern "C" |
| 5259 | # endif |
| 5260 | int F77_DUMMY_MAIN() { return 1; } |
| 5261 | #endif |
| 5262 | int |
| 5263 | main () |
| 5264 | { |
| 5265 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5266 | test_array [0] = 0 |
| 5267 | |
| 5268 | ; |
| 5269 | return 0; |
| 5270 | } |
| 5271 | _ACEOF |
| 5272 | rm -f conftest.$ac_objext |
| 5273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5274 | (eval $ac_compile) 2>&5 |
| 5275 | ac_status=$? |
| 5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5277 | (exit $ac_status); } && |
| 5278 | { ac_try='test -s conftest.$ac_objext' |
| 5279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5280 | (eval $ac_try) 2>&5 |
| 5281 | ac_status=$? |
| 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5283 | (exit $ac_status); }; }; then |
| 5284 | ac_hi=-1 ac_mid=-1 |
| 5285 | while :; do |
| 5286 | cat >conftest.$ac_ext <<_ACEOF |
| 5287 | #line $LINENO "configure" |
| 5288 | #include "confdefs.h" |
| 5289 | $ac_includes_default |
| 5290 | #ifdef F77_DUMMY_MAIN |
| 5291 | # ifdef __cplusplus |
| 5292 | extern "C" |
| 5293 | # endif |
| 5294 | int F77_DUMMY_MAIN() { return 1; } |
| 5295 | #endif |
| 5296 | int |
| 5297 | main () |
| 5298 | { |
| 5299 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5300 | test_array [0] = 0 |
| 5301 | |
| 5302 | ; |
| 5303 | return 0; |
| 5304 | } |
| 5305 | _ACEOF |
| 5306 | rm -f conftest.$ac_objext |
| 5307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5308 | (eval $ac_compile) 2>&5 |
| 5309 | ac_status=$? |
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5311 | (exit $ac_status); } && |
| 5312 | { ac_try='test -s conftest.$ac_objext' |
| 5313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5314 | (eval $ac_try) 2>&5 |
| 5315 | ac_status=$? |
| 5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5317 | (exit $ac_status); }; }; then |
| 5318 | ac_lo=$ac_mid; break |
| 5319 | else |
| 5320 | echo "$as_me: failed program was:" >&5 |
| 5321 | cat conftest.$ac_ext >&5 |
| 5322 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5323 | if test $ac_mid -le $ac_hi; then |
| 5324 | ac_lo= ac_hi= |
| 5325 | break |
| 5326 | fi |
| 5327 | ac_mid=`expr 2 '*' $ac_mid` |
| 5328 | fi |
| 5329 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5330 | done |
| 5331 | else |
| 5332 | echo "$as_me: failed program was:" >&5 |
| 5333 | cat conftest.$ac_ext >&5 |
| 5334 | ac_lo= ac_hi= |
| 5335 | fi |
| 5336 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5337 | fi |
| 5338 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5339 | # Binary search between lo and hi bounds. |
| 5340 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5341 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5342 | cat >conftest.$ac_ext <<_ACEOF |
| 5343 | #line $LINENO "configure" |
| 5344 | #include "confdefs.h" |
| 5345 | $ac_includes_default |
| 5346 | #ifdef F77_DUMMY_MAIN |
| 5347 | # ifdef __cplusplus |
| 5348 | extern "C" |
| 5349 | # endif |
| 5350 | int F77_DUMMY_MAIN() { return 1; } |
| 5351 | #endif |
| 5352 | int |
| 5353 | main () |
| 5354 | { |
| 5355 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5356 | test_array [0] = 0 |
| 5357 | |
| 5358 | ; |
| 5359 | return 0; |
| 5360 | } |
| 5361 | _ACEOF |
| 5362 | rm -f conftest.$ac_objext |
| 5363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5364 | (eval $ac_compile) 2>&5 |
| 5365 | ac_status=$? |
| 5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5367 | (exit $ac_status); } && |
| 5368 | { ac_try='test -s conftest.$ac_objext' |
| 5369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5370 | (eval $ac_try) 2>&5 |
| 5371 | ac_status=$? |
| 5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5373 | (exit $ac_status); }; }; then |
| 5374 | ac_hi=$ac_mid |
| 5375 | else |
| 5376 | echo "$as_me: failed program was:" >&5 |
| 5377 | cat conftest.$ac_ext >&5 |
| 5378 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5379 | fi |
| 5380 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5381 | done |
| 5382 | case $ac_lo in |
| 5383 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5384 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5385 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5386 | { (exit 1); exit 1; }; } ;; |
| 5387 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5388 | else |
| 5389 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5390 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5391 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5392 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5393 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5394 | cat >conftest.$ac_ext <<_ACEOF |
| 5395 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5396 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5397 | $ac_includes_default |
| 5398 | long longval () { return (long) (sizeof (int)); } |
| 5399 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5400 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5401 | #include <stdlib.h> |
| 5402 | #ifdef F77_DUMMY_MAIN |
| 5403 | # ifdef __cplusplus |
| 5404 | extern "C" |
| 5405 | # endif |
| 5406 | int F77_DUMMY_MAIN() { return 1; } |
| 5407 | #endif |
| 5408 | int |
| 5409 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5410 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5411 | |
| 5412 | FILE *f = fopen ("conftest.val", "w"); |
| 5413 | if (! f) |
| 5414 | exit (1); |
| 5415 | if (((long) (sizeof (int))) < 0) |
| 5416 | { |
| 5417 | long i = longval (); |
| 5418 | if (i != ((long) (sizeof (int)))) |
| 5419 | exit (1); |
| 5420 | fprintf (f, "%ld\n", i); |
| 5421 | } |
| 5422 | else |
| 5423 | { |
| 5424 | unsigned long i = ulongval (); |
| 5425 | if (i != ((long) (sizeof (int)))) |
| 5426 | exit (1); |
| 5427 | fprintf (f, "%lu\n", i); |
| 5428 | } |
| 5429 | exit (ferror (f) || fclose (f) != 0); |
| 5430 | |
| 5431 | ; |
| 5432 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5433 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5434 | _ACEOF |
| 5435 | rm -f conftest$ac_exeext |
| 5436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5437 | (eval $ac_link) 2>&5 |
| 5438 | ac_status=$? |
| 5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5442 | (eval $ac_try) 2>&5 |
| 5443 | ac_status=$? |
| 5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5445 | (exit $ac_status); }; }; then |
| 5446 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5448 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5449 | echo "$as_me: failed program was:" >&5 |
| 5450 | cat conftest.$ac_ext >&5 |
| 5451 | ( exit $ac_status ) |
| 5452 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5453 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5454 | { (exit 1); exit 1; }; } |
| 5455 | fi |
| 5456 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5457 | fi |
| 5458 | fi |
| 5459 | rm -f conftest.val |
| 5460 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5461 | ac_cv_sizeof_int=0 |
| 5462 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5463 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5464 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5465 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5466 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5467 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5468 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5469 | |
| 5470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5471 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5472 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5473 | if test "${ac_cv_type_long+set}" = set; then |
| 5474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5475 | else |
| 5476 | cat >conftest.$ac_ext <<_ACEOF |
| 5477 | #line $LINENO "configure" |
| 5478 | #include "confdefs.h" |
| 5479 | $ac_includes_default |
| 5480 | #ifdef F77_DUMMY_MAIN |
| 5481 | # ifdef __cplusplus |
| 5482 | extern "C" |
| 5483 | # endif |
| 5484 | int F77_DUMMY_MAIN() { return 1; } |
| 5485 | #endif |
| 5486 | int |
| 5487 | main () |
| 5488 | { |
| 5489 | if ((long *) 0) |
| 5490 | return 0; |
| 5491 | if (sizeof (long)) |
| 5492 | return 0; |
| 5493 | ; |
| 5494 | return 0; |
| 5495 | } |
| 5496 | _ACEOF |
| 5497 | rm -f conftest.$ac_objext |
| 5498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5499 | (eval $ac_compile) 2>&5 |
| 5500 | ac_status=$? |
| 5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5502 | (exit $ac_status); } && |
| 5503 | { ac_try='test -s conftest.$ac_objext' |
| 5504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5505 | (eval $ac_try) 2>&5 |
| 5506 | ac_status=$? |
| 5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5508 | (exit $ac_status); }; }; then |
| 5509 | ac_cv_type_long=yes |
| 5510 | else |
| 5511 | echo "$as_me: failed program was:" >&5 |
| 5512 | cat conftest.$ac_ext >&5 |
| 5513 | ac_cv_type_long=no |
| 5514 | fi |
| 5515 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5516 | fi |
| 5517 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5518 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5519 | |
| 5520 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5521 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5522 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5524 | else |
| 5525 | if test "$ac_cv_type_long" = yes; then |
| 5526 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5527 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5528 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5529 | # This bug is HP SR number 8606223364. |
| 5530 | if test "$cross_compiling" = yes; then |
| 5531 | # Depending upon the size, compute the lo and hi bounds. |
| 5532 | cat >conftest.$ac_ext <<_ACEOF |
| 5533 | #line $LINENO "configure" |
| 5534 | #include "confdefs.h" |
| 5535 | $ac_includes_default |
| 5536 | #ifdef F77_DUMMY_MAIN |
| 5537 | # ifdef __cplusplus |
| 5538 | extern "C" |
| 5539 | # endif |
| 5540 | int F77_DUMMY_MAIN() { return 1; } |
| 5541 | #endif |
| 5542 | int |
| 5543 | main () |
| 5544 | { |
| 5545 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5546 | test_array [0] = 0 |
| 5547 | |
| 5548 | ; |
| 5549 | return 0; |
| 5550 | } |
| 5551 | _ACEOF |
| 5552 | rm -f conftest.$ac_objext |
| 5553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5554 | (eval $ac_compile) 2>&5 |
| 5555 | ac_status=$? |
| 5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5557 | (exit $ac_status); } && |
| 5558 | { ac_try='test -s conftest.$ac_objext' |
| 5559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5560 | (eval $ac_try) 2>&5 |
| 5561 | ac_status=$? |
| 5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5563 | (exit $ac_status); }; }; then |
| 5564 | ac_lo=0 ac_mid=0 |
| 5565 | while :; do |
| 5566 | cat >conftest.$ac_ext <<_ACEOF |
| 5567 | #line $LINENO "configure" |
| 5568 | #include "confdefs.h" |
| 5569 | $ac_includes_default |
| 5570 | #ifdef F77_DUMMY_MAIN |
| 5571 | # ifdef __cplusplus |
| 5572 | extern "C" |
| 5573 | # endif |
| 5574 | int F77_DUMMY_MAIN() { return 1; } |
| 5575 | #endif |
| 5576 | int |
| 5577 | main () |
| 5578 | { |
| 5579 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5580 | test_array [0] = 0 |
| 5581 | |
| 5582 | ; |
| 5583 | return 0; |
| 5584 | } |
| 5585 | _ACEOF |
| 5586 | rm -f conftest.$ac_objext |
| 5587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5588 | (eval $ac_compile) 2>&5 |
| 5589 | ac_status=$? |
| 5590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5591 | (exit $ac_status); } && |
| 5592 | { ac_try='test -s conftest.$ac_objext' |
| 5593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5594 | (eval $ac_try) 2>&5 |
| 5595 | ac_status=$? |
| 5596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5597 | (exit $ac_status); }; }; then |
| 5598 | ac_hi=$ac_mid; break |
| 5599 | else |
| 5600 | echo "$as_me: failed program was:" >&5 |
| 5601 | cat conftest.$ac_ext >&5 |
| 5602 | ac_lo=`expr $ac_mid + 1` |
| 5603 | if test $ac_lo -le $ac_mid; then |
| 5604 | ac_lo= ac_hi= |
| 5605 | break |
| 5606 | fi |
| 5607 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5608 | fi |
| 5609 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5610 | done |
| 5611 | else |
| 5612 | echo "$as_me: failed program was:" >&5 |
| 5613 | cat conftest.$ac_ext >&5 |
| 5614 | cat >conftest.$ac_ext <<_ACEOF |
| 5615 | #line $LINENO "configure" |
| 5616 | #include "confdefs.h" |
| 5617 | $ac_includes_default |
| 5618 | #ifdef F77_DUMMY_MAIN |
| 5619 | # ifdef __cplusplus |
| 5620 | extern "C" |
| 5621 | # endif |
| 5622 | int F77_DUMMY_MAIN() { return 1; } |
| 5623 | #endif |
| 5624 | int |
| 5625 | main () |
| 5626 | { |
| 5627 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5628 | test_array [0] = 0 |
| 5629 | |
| 5630 | ; |
| 5631 | return 0; |
| 5632 | } |
| 5633 | _ACEOF |
| 5634 | rm -f conftest.$ac_objext |
| 5635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5636 | (eval $ac_compile) 2>&5 |
| 5637 | ac_status=$? |
| 5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5639 | (exit $ac_status); } && |
| 5640 | { ac_try='test -s conftest.$ac_objext' |
| 5641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5642 | (eval $ac_try) 2>&5 |
| 5643 | ac_status=$? |
| 5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5645 | (exit $ac_status); }; }; then |
| 5646 | ac_hi=-1 ac_mid=-1 |
| 5647 | while :; do |
| 5648 | cat >conftest.$ac_ext <<_ACEOF |
| 5649 | #line $LINENO "configure" |
| 5650 | #include "confdefs.h" |
| 5651 | $ac_includes_default |
| 5652 | #ifdef F77_DUMMY_MAIN |
| 5653 | # ifdef __cplusplus |
| 5654 | extern "C" |
| 5655 | # endif |
| 5656 | int F77_DUMMY_MAIN() { return 1; } |
| 5657 | #endif |
| 5658 | int |
| 5659 | main () |
| 5660 | { |
| 5661 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5662 | test_array [0] = 0 |
| 5663 | |
| 5664 | ; |
| 5665 | return 0; |
| 5666 | } |
| 5667 | _ACEOF |
| 5668 | rm -f conftest.$ac_objext |
| 5669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5670 | (eval $ac_compile) 2>&5 |
| 5671 | ac_status=$? |
| 5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5673 | (exit $ac_status); } && |
| 5674 | { ac_try='test -s conftest.$ac_objext' |
| 5675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5676 | (eval $ac_try) 2>&5 |
| 5677 | ac_status=$? |
| 5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5679 | (exit $ac_status); }; }; then |
| 5680 | ac_lo=$ac_mid; break |
| 5681 | else |
| 5682 | echo "$as_me: failed program was:" >&5 |
| 5683 | cat conftest.$ac_ext >&5 |
| 5684 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5685 | if test $ac_mid -le $ac_hi; then |
| 5686 | ac_lo= ac_hi= |
| 5687 | break |
| 5688 | fi |
| 5689 | ac_mid=`expr 2 '*' $ac_mid` |
| 5690 | fi |
| 5691 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5692 | done |
| 5693 | else |
| 5694 | echo "$as_me: failed program was:" >&5 |
| 5695 | cat conftest.$ac_ext >&5 |
| 5696 | ac_lo= ac_hi= |
| 5697 | fi |
| 5698 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5699 | fi |
| 5700 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5701 | # Binary search between lo and hi bounds. |
| 5702 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5703 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5704 | cat >conftest.$ac_ext <<_ACEOF |
| 5705 | #line $LINENO "configure" |
| 5706 | #include "confdefs.h" |
| 5707 | $ac_includes_default |
| 5708 | #ifdef F77_DUMMY_MAIN |
| 5709 | # ifdef __cplusplus |
| 5710 | extern "C" |
| 5711 | # endif |
| 5712 | int F77_DUMMY_MAIN() { return 1; } |
| 5713 | #endif |
| 5714 | int |
| 5715 | main () |
| 5716 | { |
| 5717 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5718 | test_array [0] = 0 |
| 5719 | |
| 5720 | ; |
| 5721 | return 0; |
| 5722 | } |
| 5723 | _ACEOF |
| 5724 | rm -f conftest.$ac_objext |
| 5725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5726 | (eval $ac_compile) 2>&5 |
| 5727 | ac_status=$? |
| 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5729 | (exit $ac_status); } && |
| 5730 | { ac_try='test -s conftest.$ac_objext' |
| 5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5732 | (eval $ac_try) 2>&5 |
| 5733 | ac_status=$? |
| 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5735 | (exit $ac_status); }; }; then |
| 5736 | ac_hi=$ac_mid |
| 5737 | else |
| 5738 | echo "$as_me: failed program was:" >&5 |
| 5739 | cat conftest.$ac_ext >&5 |
| 5740 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5741 | fi |
| 5742 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5743 | done |
| 5744 | case $ac_lo in |
| 5745 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5746 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5747 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5748 | { (exit 1); exit 1; }; } ;; |
| 5749 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5750 | else |
| 5751 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5752 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5753 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5754 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5756 | cat >conftest.$ac_ext <<_ACEOF |
| 5757 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5758 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5759 | $ac_includes_default |
| 5760 | long longval () { return (long) (sizeof (long)); } |
| 5761 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5762 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5763 | #include <stdlib.h> |
| 5764 | #ifdef F77_DUMMY_MAIN |
| 5765 | # ifdef __cplusplus |
| 5766 | extern "C" |
| 5767 | # endif |
| 5768 | int F77_DUMMY_MAIN() { return 1; } |
| 5769 | #endif |
| 5770 | int |
| 5771 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5772 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5773 | |
| 5774 | FILE *f = fopen ("conftest.val", "w"); |
| 5775 | if (! f) |
| 5776 | exit (1); |
| 5777 | if (((long) (sizeof (long))) < 0) |
| 5778 | { |
| 5779 | long i = longval (); |
| 5780 | if (i != ((long) (sizeof (long)))) |
| 5781 | exit (1); |
| 5782 | fprintf (f, "%ld\n", i); |
| 5783 | } |
| 5784 | else |
| 5785 | { |
| 5786 | unsigned long i = ulongval (); |
| 5787 | if (i != ((long) (sizeof (long)))) |
| 5788 | exit (1); |
| 5789 | fprintf (f, "%lu\n", i); |
| 5790 | } |
| 5791 | exit (ferror (f) || fclose (f) != 0); |
| 5792 | |
| 5793 | ; |
| 5794 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5795 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5796 | _ACEOF |
| 5797 | rm -f conftest$ac_exeext |
| 5798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5799 | (eval $ac_link) 2>&5 |
| 5800 | ac_status=$? |
| 5801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5804 | (eval $ac_try) 2>&5 |
| 5805 | ac_status=$? |
| 5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5807 | (exit $ac_status); }; }; then |
| 5808 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5810 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5811 | echo "$as_me: failed program was:" >&5 |
| 5812 | cat conftest.$ac_ext >&5 |
| 5813 | ( exit $ac_status ) |
| 5814 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5815 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5816 | { (exit 1); exit 1; }; } |
| 5817 | fi |
| 5818 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5819 | fi |
| 5820 | fi |
| 5821 | rm -f conftest.val |
| 5822 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5823 | ac_cv_sizeof_long=0 |
| 5824 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5825 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5826 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5827 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5828 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5829 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5830 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5831 | |
| 5832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5833 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5834 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5835 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5837 | else |
| 5838 | cat >conftest.$ac_ext <<_ACEOF |
| 5839 | #line $LINENO "configure" |
| 5840 | #include "confdefs.h" |
| 5841 | $ac_includes_default |
| 5842 | #ifdef F77_DUMMY_MAIN |
| 5843 | # ifdef __cplusplus |
| 5844 | extern "C" |
| 5845 | # endif |
| 5846 | int F77_DUMMY_MAIN() { return 1; } |
| 5847 | #endif |
| 5848 | int |
| 5849 | main () |
| 5850 | { |
| 5851 | if ((void * *) 0) |
| 5852 | return 0; |
| 5853 | if (sizeof (void *)) |
| 5854 | return 0; |
| 5855 | ; |
| 5856 | return 0; |
| 5857 | } |
| 5858 | _ACEOF |
| 5859 | rm -f conftest.$ac_objext |
| 5860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5861 | (eval $ac_compile) 2>&5 |
| 5862 | ac_status=$? |
| 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5864 | (exit $ac_status); } && |
| 5865 | { ac_try='test -s conftest.$ac_objext' |
| 5866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5867 | (eval $ac_try) 2>&5 |
| 5868 | ac_status=$? |
| 5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5870 | (exit $ac_status); }; }; then |
| 5871 | ac_cv_type_void_p=yes |
| 5872 | else |
| 5873 | echo "$as_me: failed program was:" >&5 |
| 5874 | cat conftest.$ac_ext >&5 |
| 5875 | ac_cv_type_void_p=no |
| 5876 | fi |
| 5877 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5878 | fi |
| 5879 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5880 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5881 | |
| 5882 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5883 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5884 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5886 | else |
| 5887 | if test "$ac_cv_type_void_p" = yes; then |
| 5888 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5889 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5890 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5891 | # This bug is HP SR number 8606223364. |
| 5892 | if test "$cross_compiling" = yes; then |
| 5893 | # Depending upon the size, compute the lo and hi bounds. |
| 5894 | cat >conftest.$ac_ext <<_ACEOF |
| 5895 | #line $LINENO "configure" |
| 5896 | #include "confdefs.h" |
| 5897 | $ac_includes_default |
| 5898 | #ifdef F77_DUMMY_MAIN |
| 5899 | # ifdef __cplusplus |
| 5900 | extern "C" |
| 5901 | # endif |
| 5902 | int F77_DUMMY_MAIN() { return 1; } |
| 5903 | #endif |
| 5904 | int |
| 5905 | main () |
| 5906 | { |
| 5907 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5908 | test_array [0] = 0 |
| 5909 | |
| 5910 | ; |
| 5911 | return 0; |
| 5912 | } |
| 5913 | _ACEOF |
| 5914 | rm -f conftest.$ac_objext |
| 5915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5916 | (eval $ac_compile) 2>&5 |
| 5917 | ac_status=$? |
| 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5919 | (exit $ac_status); } && |
| 5920 | { ac_try='test -s conftest.$ac_objext' |
| 5921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5922 | (eval $ac_try) 2>&5 |
| 5923 | ac_status=$? |
| 5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5925 | (exit $ac_status); }; }; then |
| 5926 | ac_lo=0 ac_mid=0 |
| 5927 | while :; do |
| 5928 | cat >conftest.$ac_ext <<_ACEOF |
| 5929 | #line $LINENO "configure" |
| 5930 | #include "confdefs.h" |
| 5931 | $ac_includes_default |
| 5932 | #ifdef F77_DUMMY_MAIN |
| 5933 | # ifdef __cplusplus |
| 5934 | extern "C" |
| 5935 | # endif |
| 5936 | int F77_DUMMY_MAIN() { return 1; } |
| 5937 | #endif |
| 5938 | int |
| 5939 | main () |
| 5940 | { |
| 5941 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5942 | test_array [0] = 0 |
| 5943 | |
| 5944 | ; |
| 5945 | return 0; |
| 5946 | } |
| 5947 | _ACEOF |
| 5948 | rm -f conftest.$ac_objext |
| 5949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5950 | (eval $ac_compile) 2>&5 |
| 5951 | ac_status=$? |
| 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5953 | (exit $ac_status); } && |
| 5954 | { ac_try='test -s conftest.$ac_objext' |
| 5955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5956 | (eval $ac_try) 2>&5 |
| 5957 | ac_status=$? |
| 5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5959 | (exit $ac_status); }; }; then |
| 5960 | ac_hi=$ac_mid; break |
| 5961 | else |
| 5962 | echo "$as_me: failed program was:" >&5 |
| 5963 | cat conftest.$ac_ext >&5 |
| 5964 | ac_lo=`expr $ac_mid + 1` |
| 5965 | if test $ac_lo -le $ac_mid; then |
| 5966 | ac_lo= ac_hi= |
| 5967 | break |
| 5968 | fi |
| 5969 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5970 | fi |
| 5971 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5972 | done |
| 5973 | else |
| 5974 | echo "$as_me: failed program was:" >&5 |
| 5975 | cat conftest.$ac_ext >&5 |
| 5976 | cat >conftest.$ac_ext <<_ACEOF |
| 5977 | #line $LINENO "configure" |
| 5978 | #include "confdefs.h" |
| 5979 | $ac_includes_default |
| 5980 | #ifdef F77_DUMMY_MAIN |
| 5981 | # ifdef __cplusplus |
| 5982 | extern "C" |
| 5983 | # endif |
| 5984 | int F77_DUMMY_MAIN() { return 1; } |
| 5985 | #endif |
| 5986 | int |
| 5987 | main () |
| 5988 | { |
| 5989 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 5990 | test_array [0] = 0 |
| 5991 | |
| 5992 | ; |
| 5993 | return 0; |
| 5994 | } |
| 5995 | _ACEOF |
| 5996 | rm -f conftest.$ac_objext |
| 5997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5998 | (eval $ac_compile) 2>&5 |
| 5999 | ac_status=$? |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); } && |
| 6002 | { ac_try='test -s conftest.$ac_objext' |
| 6003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6004 | (eval $ac_try) 2>&5 |
| 6005 | ac_status=$? |
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6007 | (exit $ac_status); }; }; then |
| 6008 | ac_hi=-1 ac_mid=-1 |
| 6009 | while :; do |
| 6010 | cat >conftest.$ac_ext <<_ACEOF |
| 6011 | #line $LINENO "configure" |
| 6012 | #include "confdefs.h" |
| 6013 | $ac_includes_default |
| 6014 | #ifdef F77_DUMMY_MAIN |
| 6015 | # ifdef __cplusplus |
| 6016 | extern "C" |
| 6017 | # endif |
| 6018 | int F77_DUMMY_MAIN() { return 1; } |
| 6019 | #endif |
| 6020 | int |
| 6021 | main () |
| 6022 | { |
| 6023 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6024 | test_array [0] = 0 |
| 6025 | |
| 6026 | ; |
| 6027 | return 0; |
| 6028 | } |
| 6029 | _ACEOF |
| 6030 | rm -f conftest.$ac_objext |
| 6031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6032 | (eval $ac_compile) 2>&5 |
| 6033 | ac_status=$? |
| 6034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6035 | (exit $ac_status); } && |
| 6036 | { ac_try='test -s conftest.$ac_objext' |
| 6037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6038 | (eval $ac_try) 2>&5 |
| 6039 | ac_status=$? |
| 6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6041 | (exit $ac_status); }; }; then |
| 6042 | ac_lo=$ac_mid; break |
| 6043 | else |
| 6044 | echo "$as_me: failed program was:" >&5 |
| 6045 | cat conftest.$ac_ext >&5 |
| 6046 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6047 | if test $ac_mid -le $ac_hi; then |
| 6048 | ac_lo= ac_hi= |
| 6049 | break |
| 6050 | fi |
| 6051 | ac_mid=`expr 2 '*' $ac_mid` |
| 6052 | fi |
| 6053 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6054 | done |
| 6055 | else |
| 6056 | echo "$as_me: failed program was:" >&5 |
| 6057 | cat conftest.$ac_ext >&5 |
| 6058 | ac_lo= ac_hi= |
| 6059 | fi |
| 6060 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6061 | fi |
| 6062 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6063 | # Binary search between lo and hi bounds. |
| 6064 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6065 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6066 | cat >conftest.$ac_ext <<_ACEOF |
| 6067 | #line $LINENO "configure" |
| 6068 | #include "confdefs.h" |
| 6069 | $ac_includes_default |
| 6070 | #ifdef F77_DUMMY_MAIN |
| 6071 | # ifdef __cplusplus |
| 6072 | extern "C" |
| 6073 | # endif |
| 6074 | int F77_DUMMY_MAIN() { return 1; } |
| 6075 | #endif |
| 6076 | int |
| 6077 | main () |
| 6078 | { |
| 6079 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6080 | test_array [0] = 0 |
| 6081 | |
| 6082 | ; |
| 6083 | return 0; |
| 6084 | } |
| 6085 | _ACEOF |
| 6086 | rm -f conftest.$ac_objext |
| 6087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6088 | (eval $ac_compile) 2>&5 |
| 6089 | ac_status=$? |
| 6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6091 | (exit $ac_status); } && |
| 6092 | { ac_try='test -s conftest.$ac_objext' |
| 6093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6094 | (eval $ac_try) 2>&5 |
| 6095 | ac_status=$? |
| 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6097 | (exit $ac_status); }; }; then |
| 6098 | ac_hi=$ac_mid |
| 6099 | else |
| 6100 | echo "$as_me: failed program was:" >&5 |
| 6101 | cat conftest.$ac_ext >&5 |
| 6102 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6103 | fi |
| 6104 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6105 | done |
| 6106 | case $ac_lo in |
| 6107 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6108 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6109 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6110 | { (exit 1); exit 1; }; } ;; |
| 6111 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6112 | else |
| 6113 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6115 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6116 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6118 | cat >conftest.$ac_ext <<_ACEOF |
| 6119 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6120 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6121 | $ac_includes_default |
| 6122 | long longval () { return (long) (sizeof (void *)); } |
| 6123 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6124 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | #include <stdlib.h> |
| 6126 | #ifdef F77_DUMMY_MAIN |
| 6127 | # ifdef __cplusplus |
| 6128 | extern "C" |
| 6129 | # endif |
| 6130 | int F77_DUMMY_MAIN() { return 1; } |
| 6131 | #endif |
| 6132 | int |
| 6133 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6134 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6135 | |
| 6136 | FILE *f = fopen ("conftest.val", "w"); |
| 6137 | if (! f) |
| 6138 | exit (1); |
| 6139 | if (((long) (sizeof (void *))) < 0) |
| 6140 | { |
| 6141 | long i = longval (); |
| 6142 | if (i != ((long) (sizeof (void *)))) |
| 6143 | exit (1); |
| 6144 | fprintf (f, "%ld\n", i); |
| 6145 | } |
| 6146 | else |
| 6147 | { |
| 6148 | unsigned long i = ulongval (); |
| 6149 | if (i != ((long) (sizeof (void *)))) |
| 6150 | exit (1); |
| 6151 | fprintf (f, "%lu\n", i); |
| 6152 | } |
| 6153 | exit (ferror (f) || fclose (f) != 0); |
| 6154 | |
| 6155 | ; |
| 6156 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6157 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | _ACEOF |
| 6159 | rm -f conftest$ac_exeext |
| 6160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6161 | (eval $ac_link) 2>&5 |
| 6162 | ac_status=$? |
| 6163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6164 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6166 | (eval $ac_try) 2>&5 |
| 6167 | ac_status=$? |
| 6168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6169 | (exit $ac_status); }; }; then |
| 6170 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6172 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6173 | echo "$as_me: failed program was:" >&5 |
| 6174 | cat conftest.$ac_ext >&5 |
| 6175 | ( exit $ac_status ) |
| 6176 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6177 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6178 | { (exit 1); exit 1; }; } |
| 6179 | fi |
| 6180 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6181 | fi |
| 6182 | fi |
| 6183 | rm -f conftest.val |
| 6184 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6185 | ac_cv_sizeof_void_p=0 |
| 6186 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6187 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6188 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6189 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6190 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6191 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6192 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6193 | |
| 6194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6195 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6196 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6197 | if test "${ac_cv_type_char+set}" = set; then |
| 6198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6199 | else |
| 6200 | cat >conftest.$ac_ext <<_ACEOF |
| 6201 | #line $LINENO "configure" |
| 6202 | #include "confdefs.h" |
| 6203 | $ac_includes_default |
| 6204 | #ifdef F77_DUMMY_MAIN |
| 6205 | # ifdef __cplusplus |
| 6206 | extern "C" |
| 6207 | # endif |
| 6208 | int F77_DUMMY_MAIN() { return 1; } |
| 6209 | #endif |
| 6210 | int |
| 6211 | main () |
| 6212 | { |
| 6213 | if ((char *) 0) |
| 6214 | return 0; |
| 6215 | if (sizeof (char)) |
| 6216 | return 0; |
| 6217 | ; |
| 6218 | return 0; |
| 6219 | } |
| 6220 | _ACEOF |
| 6221 | rm -f conftest.$ac_objext |
| 6222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6223 | (eval $ac_compile) 2>&5 |
| 6224 | ac_status=$? |
| 6225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6226 | (exit $ac_status); } && |
| 6227 | { ac_try='test -s conftest.$ac_objext' |
| 6228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6229 | (eval $ac_try) 2>&5 |
| 6230 | ac_status=$? |
| 6231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6232 | (exit $ac_status); }; }; then |
| 6233 | ac_cv_type_char=yes |
| 6234 | else |
| 6235 | echo "$as_me: failed program was:" >&5 |
| 6236 | cat conftest.$ac_ext >&5 |
| 6237 | ac_cv_type_char=no |
| 6238 | fi |
| 6239 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6240 | fi |
| 6241 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6242 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6243 | |
| 6244 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6245 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6246 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6248 | else |
| 6249 | if test "$ac_cv_type_char" = yes; then |
| 6250 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6251 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6252 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6253 | # This bug is HP SR number 8606223364. |
| 6254 | if test "$cross_compiling" = yes; then |
| 6255 | # Depending upon the size, compute the lo and hi bounds. |
| 6256 | cat >conftest.$ac_ext <<_ACEOF |
| 6257 | #line $LINENO "configure" |
| 6258 | #include "confdefs.h" |
| 6259 | $ac_includes_default |
| 6260 | #ifdef F77_DUMMY_MAIN |
| 6261 | # ifdef __cplusplus |
| 6262 | extern "C" |
| 6263 | # endif |
| 6264 | int F77_DUMMY_MAIN() { return 1; } |
| 6265 | #endif |
| 6266 | int |
| 6267 | main () |
| 6268 | { |
| 6269 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6270 | test_array [0] = 0 |
| 6271 | |
| 6272 | ; |
| 6273 | return 0; |
| 6274 | } |
| 6275 | _ACEOF |
| 6276 | rm -f conftest.$ac_objext |
| 6277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6278 | (eval $ac_compile) 2>&5 |
| 6279 | ac_status=$? |
| 6280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6281 | (exit $ac_status); } && |
| 6282 | { ac_try='test -s conftest.$ac_objext' |
| 6283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6284 | (eval $ac_try) 2>&5 |
| 6285 | ac_status=$? |
| 6286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6287 | (exit $ac_status); }; }; then |
| 6288 | ac_lo=0 ac_mid=0 |
| 6289 | while :; do |
| 6290 | cat >conftest.$ac_ext <<_ACEOF |
| 6291 | #line $LINENO "configure" |
| 6292 | #include "confdefs.h" |
| 6293 | $ac_includes_default |
| 6294 | #ifdef F77_DUMMY_MAIN |
| 6295 | # ifdef __cplusplus |
| 6296 | extern "C" |
| 6297 | # endif |
| 6298 | int F77_DUMMY_MAIN() { return 1; } |
| 6299 | #endif |
| 6300 | int |
| 6301 | main () |
| 6302 | { |
| 6303 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6304 | test_array [0] = 0 |
| 6305 | |
| 6306 | ; |
| 6307 | return 0; |
| 6308 | } |
| 6309 | _ACEOF |
| 6310 | rm -f conftest.$ac_objext |
| 6311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6312 | (eval $ac_compile) 2>&5 |
| 6313 | ac_status=$? |
| 6314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6315 | (exit $ac_status); } && |
| 6316 | { ac_try='test -s conftest.$ac_objext' |
| 6317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6318 | (eval $ac_try) 2>&5 |
| 6319 | ac_status=$? |
| 6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6321 | (exit $ac_status); }; }; then |
| 6322 | ac_hi=$ac_mid; break |
| 6323 | else |
| 6324 | echo "$as_me: failed program was:" >&5 |
| 6325 | cat conftest.$ac_ext >&5 |
| 6326 | ac_lo=`expr $ac_mid + 1` |
| 6327 | if test $ac_lo -le $ac_mid; then |
| 6328 | ac_lo= ac_hi= |
| 6329 | break |
| 6330 | fi |
| 6331 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6332 | fi |
| 6333 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6334 | done |
| 6335 | else |
| 6336 | echo "$as_me: failed program was:" >&5 |
| 6337 | cat conftest.$ac_ext >&5 |
| 6338 | cat >conftest.$ac_ext <<_ACEOF |
| 6339 | #line $LINENO "configure" |
| 6340 | #include "confdefs.h" |
| 6341 | $ac_includes_default |
| 6342 | #ifdef F77_DUMMY_MAIN |
| 6343 | # ifdef __cplusplus |
| 6344 | extern "C" |
| 6345 | # endif |
| 6346 | int F77_DUMMY_MAIN() { return 1; } |
| 6347 | #endif |
| 6348 | int |
| 6349 | main () |
| 6350 | { |
| 6351 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6352 | test_array [0] = 0 |
| 6353 | |
| 6354 | ; |
| 6355 | return 0; |
| 6356 | } |
| 6357 | _ACEOF |
| 6358 | rm -f conftest.$ac_objext |
| 6359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6360 | (eval $ac_compile) 2>&5 |
| 6361 | ac_status=$? |
| 6362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6363 | (exit $ac_status); } && |
| 6364 | { ac_try='test -s conftest.$ac_objext' |
| 6365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6366 | (eval $ac_try) 2>&5 |
| 6367 | ac_status=$? |
| 6368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6369 | (exit $ac_status); }; }; then |
| 6370 | ac_hi=-1 ac_mid=-1 |
| 6371 | while :; do |
| 6372 | cat >conftest.$ac_ext <<_ACEOF |
| 6373 | #line $LINENO "configure" |
| 6374 | #include "confdefs.h" |
| 6375 | $ac_includes_default |
| 6376 | #ifdef F77_DUMMY_MAIN |
| 6377 | # ifdef __cplusplus |
| 6378 | extern "C" |
| 6379 | # endif |
| 6380 | int F77_DUMMY_MAIN() { return 1; } |
| 6381 | #endif |
| 6382 | int |
| 6383 | main () |
| 6384 | { |
| 6385 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6386 | test_array [0] = 0 |
| 6387 | |
| 6388 | ; |
| 6389 | return 0; |
| 6390 | } |
| 6391 | _ACEOF |
| 6392 | rm -f conftest.$ac_objext |
| 6393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6394 | (eval $ac_compile) 2>&5 |
| 6395 | ac_status=$? |
| 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6397 | (exit $ac_status); } && |
| 6398 | { ac_try='test -s conftest.$ac_objext' |
| 6399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6400 | (eval $ac_try) 2>&5 |
| 6401 | ac_status=$? |
| 6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6403 | (exit $ac_status); }; }; then |
| 6404 | ac_lo=$ac_mid; break |
| 6405 | else |
| 6406 | echo "$as_me: failed program was:" >&5 |
| 6407 | cat conftest.$ac_ext >&5 |
| 6408 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6409 | if test $ac_mid -le $ac_hi; then |
| 6410 | ac_lo= ac_hi= |
| 6411 | break |
| 6412 | fi |
| 6413 | ac_mid=`expr 2 '*' $ac_mid` |
| 6414 | fi |
| 6415 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6416 | done |
| 6417 | else |
| 6418 | echo "$as_me: failed program was:" >&5 |
| 6419 | cat conftest.$ac_ext >&5 |
| 6420 | ac_lo= ac_hi= |
| 6421 | fi |
| 6422 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6423 | fi |
| 6424 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6425 | # Binary search between lo and hi bounds. |
| 6426 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6427 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6428 | cat >conftest.$ac_ext <<_ACEOF |
| 6429 | #line $LINENO "configure" |
| 6430 | #include "confdefs.h" |
| 6431 | $ac_includes_default |
| 6432 | #ifdef F77_DUMMY_MAIN |
| 6433 | # ifdef __cplusplus |
| 6434 | extern "C" |
| 6435 | # endif |
| 6436 | int F77_DUMMY_MAIN() { return 1; } |
| 6437 | #endif |
| 6438 | int |
| 6439 | main () |
| 6440 | { |
| 6441 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6442 | test_array [0] = 0 |
| 6443 | |
| 6444 | ; |
| 6445 | return 0; |
| 6446 | } |
| 6447 | _ACEOF |
| 6448 | rm -f conftest.$ac_objext |
| 6449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6450 | (eval $ac_compile) 2>&5 |
| 6451 | ac_status=$? |
| 6452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6453 | (exit $ac_status); } && |
| 6454 | { ac_try='test -s conftest.$ac_objext' |
| 6455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6456 | (eval $ac_try) 2>&5 |
| 6457 | ac_status=$? |
| 6458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6459 | (exit $ac_status); }; }; then |
| 6460 | ac_hi=$ac_mid |
| 6461 | else |
| 6462 | echo "$as_me: failed program was:" >&5 |
| 6463 | cat conftest.$ac_ext >&5 |
| 6464 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6465 | fi |
| 6466 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6467 | done |
| 6468 | case $ac_lo in |
| 6469 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6470 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6471 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6472 | { (exit 1); exit 1; }; } ;; |
| 6473 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6474 | else |
| 6475 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6476 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6477 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6478 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6480 | cat >conftest.$ac_ext <<_ACEOF |
| 6481 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6482 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6483 | $ac_includes_default |
| 6484 | long longval () { return (long) (sizeof (char)); } |
| 6485 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6486 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6487 | #include <stdlib.h> |
| 6488 | #ifdef F77_DUMMY_MAIN |
| 6489 | # ifdef __cplusplus |
| 6490 | extern "C" |
| 6491 | # endif |
| 6492 | int F77_DUMMY_MAIN() { return 1; } |
| 6493 | #endif |
| 6494 | int |
| 6495 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6496 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6497 | |
| 6498 | FILE *f = fopen ("conftest.val", "w"); |
| 6499 | if (! f) |
| 6500 | exit (1); |
| 6501 | if (((long) (sizeof (char))) < 0) |
| 6502 | { |
| 6503 | long i = longval (); |
| 6504 | if (i != ((long) (sizeof (char)))) |
| 6505 | exit (1); |
| 6506 | fprintf (f, "%ld\n", i); |
| 6507 | } |
| 6508 | else |
| 6509 | { |
| 6510 | unsigned long i = ulongval (); |
| 6511 | if (i != ((long) (sizeof (char)))) |
| 6512 | exit (1); |
| 6513 | fprintf (f, "%lu\n", i); |
| 6514 | } |
| 6515 | exit (ferror (f) || fclose (f) != 0); |
| 6516 | |
| 6517 | ; |
| 6518 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6519 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6520 | _ACEOF |
| 6521 | rm -f conftest$ac_exeext |
| 6522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6523 | (eval $ac_link) 2>&5 |
| 6524 | ac_status=$? |
| 6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6526 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6528 | (eval $ac_try) 2>&5 |
| 6529 | ac_status=$? |
| 6530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6531 | (exit $ac_status); }; }; then |
| 6532 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6534 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6535 | echo "$as_me: failed program was:" >&5 |
| 6536 | cat conftest.$ac_ext >&5 |
| 6537 | ( exit $ac_status ) |
| 6538 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6539 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6540 | { (exit 1); exit 1; }; } |
| 6541 | fi |
| 6542 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6543 | fi |
| 6544 | fi |
| 6545 | rm -f conftest.val |
| 6546 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6547 | ac_cv_sizeof_char=0 |
| 6548 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6549 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6550 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6551 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6552 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6553 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6554 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6555 | |
| 6556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6557 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6558 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6559 | if test "${ac_cv_type_short+set}" = set; then |
| 6560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6561 | else |
| 6562 | cat >conftest.$ac_ext <<_ACEOF |
| 6563 | #line $LINENO "configure" |
| 6564 | #include "confdefs.h" |
| 6565 | $ac_includes_default |
| 6566 | #ifdef F77_DUMMY_MAIN |
| 6567 | # ifdef __cplusplus |
| 6568 | extern "C" |
| 6569 | # endif |
| 6570 | int F77_DUMMY_MAIN() { return 1; } |
| 6571 | #endif |
| 6572 | int |
| 6573 | main () |
| 6574 | { |
| 6575 | if ((short *) 0) |
| 6576 | return 0; |
| 6577 | if (sizeof (short)) |
| 6578 | return 0; |
| 6579 | ; |
| 6580 | return 0; |
| 6581 | } |
| 6582 | _ACEOF |
| 6583 | rm -f conftest.$ac_objext |
| 6584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6585 | (eval $ac_compile) 2>&5 |
| 6586 | ac_status=$? |
| 6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6588 | (exit $ac_status); } && |
| 6589 | { ac_try='test -s conftest.$ac_objext' |
| 6590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6591 | (eval $ac_try) 2>&5 |
| 6592 | ac_status=$? |
| 6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6594 | (exit $ac_status); }; }; then |
| 6595 | ac_cv_type_short=yes |
| 6596 | else |
| 6597 | echo "$as_me: failed program was:" >&5 |
| 6598 | cat conftest.$ac_ext >&5 |
| 6599 | ac_cv_type_short=no |
| 6600 | fi |
| 6601 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6602 | fi |
| 6603 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6604 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6605 | |
| 6606 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6607 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6608 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6610 | else |
| 6611 | if test "$ac_cv_type_short" = yes; then |
| 6612 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6613 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6614 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6615 | # This bug is HP SR number 8606223364. |
| 6616 | if test "$cross_compiling" = yes; then |
| 6617 | # Depending upon the size, compute the lo and hi bounds. |
| 6618 | cat >conftest.$ac_ext <<_ACEOF |
| 6619 | #line $LINENO "configure" |
| 6620 | #include "confdefs.h" |
| 6621 | $ac_includes_default |
| 6622 | #ifdef F77_DUMMY_MAIN |
| 6623 | # ifdef __cplusplus |
| 6624 | extern "C" |
| 6625 | # endif |
| 6626 | int F77_DUMMY_MAIN() { return 1; } |
| 6627 | #endif |
| 6628 | int |
| 6629 | main () |
| 6630 | { |
| 6631 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6632 | test_array [0] = 0 |
| 6633 | |
| 6634 | ; |
| 6635 | return 0; |
| 6636 | } |
| 6637 | _ACEOF |
| 6638 | rm -f conftest.$ac_objext |
| 6639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6640 | (eval $ac_compile) 2>&5 |
| 6641 | ac_status=$? |
| 6642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6643 | (exit $ac_status); } && |
| 6644 | { ac_try='test -s conftest.$ac_objext' |
| 6645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6646 | (eval $ac_try) 2>&5 |
| 6647 | ac_status=$? |
| 6648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6649 | (exit $ac_status); }; }; then |
| 6650 | ac_lo=0 ac_mid=0 |
| 6651 | while :; do |
| 6652 | cat >conftest.$ac_ext <<_ACEOF |
| 6653 | #line $LINENO "configure" |
| 6654 | #include "confdefs.h" |
| 6655 | $ac_includes_default |
| 6656 | #ifdef F77_DUMMY_MAIN |
| 6657 | # ifdef __cplusplus |
| 6658 | extern "C" |
| 6659 | # endif |
| 6660 | int F77_DUMMY_MAIN() { return 1; } |
| 6661 | #endif |
| 6662 | int |
| 6663 | main () |
| 6664 | { |
| 6665 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6666 | test_array [0] = 0 |
| 6667 | |
| 6668 | ; |
| 6669 | return 0; |
| 6670 | } |
| 6671 | _ACEOF |
| 6672 | rm -f conftest.$ac_objext |
| 6673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6674 | (eval $ac_compile) 2>&5 |
| 6675 | ac_status=$? |
| 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6677 | (exit $ac_status); } && |
| 6678 | { ac_try='test -s conftest.$ac_objext' |
| 6679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6680 | (eval $ac_try) 2>&5 |
| 6681 | ac_status=$? |
| 6682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6683 | (exit $ac_status); }; }; then |
| 6684 | ac_hi=$ac_mid; break |
| 6685 | else |
| 6686 | echo "$as_me: failed program was:" >&5 |
| 6687 | cat conftest.$ac_ext >&5 |
| 6688 | ac_lo=`expr $ac_mid + 1` |
| 6689 | if test $ac_lo -le $ac_mid; then |
| 6690 | ac_lo= ac_hi= |
| 6691 | break |
| 6692 | fi |
| 6693 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6694 | fi |
| 6695 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6696 | done |
| 6697 | else |
| 6698 | echo "$as_me: failed program was:" >&5 |
| 6699 | cat conftest.$ac_ext >&5 |
| 6700 | cat >conftest.$ac_ext <<_ACEOF |
| 6701 | #line $LINENO "configure" |
| 6702 | #include "confdefs.h" |
| 6703 | $ac_includes_default |
| 6704 | #ifdef F77_DUMMY_MAIN |
| 6705 | # ifdef __cplusplus |
| 6706 | extern "C" |
| 6707 | # endif |
| 6708 | int F77_DUMMY_MAIN() { return 1; } |
| 6709 | #endif |
| 6710 | int |
| 6711 | main () |
| 6712 | { |
| 6713 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6714 | test_array [0] = 0 |
| 6715 | |
| 6716 | ; |
| 6717 | return 0; |
| 6718 | } |
| 6719 | _ACEOF |
| 6720 | rm -f conftest.$ac_objext |
| 6721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6722 | (eval $ac_compile) 2>&5 |
| 6723 | ac_status=$? |
| 6724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6725 | (exit $ac_status); } && |
| 6726 | { ac_try='test -s conftest.$ac_objext' |
| 6727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6728 | (eval $ac_try) 2>&5 |
| 6729 | ac_status=$? |
| 6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6731 | (exit $ac_status); }; }; then |
| 6732 | ac_hi=-1 ac_mid=-1 |
| 6733 | while :; do |
| 6734 | cat >conftest.$ac_ext <<_ACEOF |
| 6735 | #line $LINENO "configure" |
| 6736 | #include "confdefs.h" |
| 6737 | $ac_includes_default |
| 6738 | #ifdef F77_DUMMY_MAIN |
| 6739 | # ifdef __cplusplus |
| 6740 | extern "C" |
| 6741 | # endif |
| 6742 | int F77_DUMMY_MAIN() { return 1; } |
| 6743 | #endif |
| 6744 | int |
| 6745 | main () |
| 6746 | { |
| 6747 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6748 | test_array [0] = 0 |
| 6749 | |
| 6750 | ; |
| 6751 | return 0; |
| 6752 | } |
| 6753 | _ACEOF |
| 6754 | rm -f conftest.$ac_objext |
| 6755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6756 | (eval $ac_compile) 2>&5 |
| 6757 | ac_status=$? |
| 6758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6759 | (exit $ac_status); } && |
| 6760 | { ac_try='test -s conftest.$ac_objext' |
| 6761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6762 | (eval $ac_try) 2>&5 |
| 6763 | ac_status=$? |
| 6764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6765 | (exit $ac_status); }; }; then |
| 6766 | ac_lo=$ac_mid; break |
| 6767 | else |
| 6768 | echo "$as_me: failed program was:" >&5 |
| 6769 | cat conftest.$ac_ext >&5 |
| 6770 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6771 | if test $ac_mid -le $ac_hi; then |
| 6772 | ac_lo= ac_hi= |
| 6773 | break |
| 6774 | fi |
| 6775 | ac_mid=`expr 2 '*' $ac_mid` |
| 6776 | fi |
| 6777 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6778 | done |
| 6779 | else |
| 6780 | echo "$as_me: failed program was:" >&5 |
| 6781 | cat conftest.$ac_ext >&5 |
| 6782 | ac_lo= ac_hi= |
| 6783 | fi |
| 6784 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6785 | fi |
| 6786 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6787 | # Binary search between lo and hi bounds. |
| 6788 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6789 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6790 | cat >conftest.$ac_ext <<_ACEOF |
| 6791 | #line $LINENO "configure" |
| 6792 | #include "confdefs.h" |
| 6793 | $ac_includes_default |
| 6794 | #ifdef F77_DUMMY_MAIN |
| 6795 | # ifdef __cplusplus |
| 6796 | extern "C" |
| 6797 | # endif |
| 6798 | int F77_DUMMY_MAIN() { return 1; } |
| 6799 | #endif |
| 6800 | int |
| 6801 | main () |
| 6802 | { |
| 6803 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6804 | test_array [0] = 0 |
| 6805 | |
| 6806 | ; |
| 6807 | return 0; |
| 6808 | } |
| 6809 | _ACEOF |
| 6810 | rm -f conftest.$ac_objext |
| 6811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6812 | (eval $ac_compile) 2>&5 |
| 6813 | ac_status=$? |
| 6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6815 | (exit $ac_status); } && |
| 6816 | { ac_try='test -s conftest.$ac_objext' |
| 6817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6818 | (eval $ac_try) 2>&5 |
| 6819 | ac_status=$? |
| 6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6821 | (exit $ac_status); }; }; then |
| 6822 | ac_hi=$ac_mid |
| 6823 | else |
| 6824 | echo "$as_me: failed program was:" >&5 |
| 6825 | cat conftest.$ac_ext >&5 |
| 6826 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6827 | fi |
| 6828 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6829 | done |
| 6830 | case $ac_lo in |
| 6831 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6832 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6833 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6834 | { (exit 1); exit 1; }; } ;; |
| 6835 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6836 | else |
| 6837 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6838 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6839 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6840 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6841 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6842 | cat >conftest.$ac_ext <<_ACEOF |
| 6843 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6844 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6845 | $ac_includes_default |
| 6846 | long longval () { return (long) (sizeof (short)); } |
| 6847 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6848 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6849 | #include <stdlib.h> |
| 6850 | #ifdef F77_DUMMY_MAIN |
| 6851 | # ifdef __cplusplus |
| 6852 | extern "C" |
| 6853 | # endif |
| 6854 | int F77_DUMMY_MAIN() { return 1; } |
| 6855 | #endif |
| 6856 | int |
| 6857 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6858 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6859 | |
| 6860 | FILE *f = fopen ("conftest.val", "w"); |
| 6861 | if (! f) |
| 6862 | exit (1); |
| 6863 | if (((long) (sizeof (short))) < 0) |
| 6864 | { |
| 6865 | long i = longval (); |
| 6866 | if (i != ((long) (sizeof (short)))) |
| 6867 | exit (1); |
| 6868 | fprintf (f, "%ld\n", i); |
| 6869 | } |
| 6870 | else |
| 6871 | { |
| 6872 | unsigned long i = ulongval (); |
| 6873 | if (i != ((long) (sizeof (short)))) |
| 6874 | exit (1); |
| 6875 | fprintf (f, "%lu\n", i); |
| 6876 | } |
| 6877 | exit (ferror (f) || fclose (f) != 0); |
| 6878 | |
| 6879 | ; |
| 6880 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6881 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6882 | _ACEOF |
| 6883 | rm -f conftest$ac_exeext |
| 6884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6885 | (eval $ac_link) 2>&5 |
| 6886 | ac_status=$? |
| 6887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6890 | (eval $ac_try) 2>&5 |
| 6891 | ac_status=$? |
| 6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6893 | (exit $ac_status); }; }; then |
| 6894 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6896 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6897 | echo "$as_me: failed program was:" >&5 |
| 6898 | cat conftest.$ac_ext >&5 |
| 6899 | ( exit $ac_status ) |
| 6900 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6901 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6902 | { (exit 1); exit 1; }; } |
| 6903 | fi |
| 6904 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6905 | fi |
| 6906 | fi |
| 6907 | rm -f conftest.val |
| 6908 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6909 | ac_cv_sizeof_short=0 |
| 6910 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6911 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6913 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6914 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6915 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6916 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6917 | |
| 6918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6919 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6920 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6921 | if test "${ac_cv_type_float+set}" = set; then |
| 6922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6923 | else |
| 6924 | cat >conftest.$ac_ext <<_ACEOF |
| 6925 | #line $LINENO "configure" |
| 6926 | #include "confdefs.h" |
| 6927 | $ac_includes_default |
| 6928 | #ifdef F77_DUMMY_MAIN |
| 6929 | # ifdef __cplusplus |
| 6930 | extern "C" |
| 6931 | # endif |
| 6932 | int F77_DUMMY_MAIN() { return 1; } |
| 6933 | #endif |
| 6934 | int |
| 6935 | main () |
| 6936 | { |
| 6937 | if ((float *) 0) |
| 6938 | return 0; |
| 6939 | if (sizeof (float)) |
| 6940 | return 0; |
| 6941 | ; |
| 6942 | return 0; |
| 6943 | } |
| 6944 | _ACEOF |
| 6945 | rm -f conftest.$ac_objext |
| 6946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6947 | (eval $ac_compile) 2>&5 |
| 6948 | ac_status=$? |
| 6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6950 | (exit $ac_status); } && |
| 6951 | { ac_try='test -s conftest.$ac_objext' |
| 6952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6953 | (eval $ac_try) 2>&5 |
| 6954 | ac_status=$? |
| 6955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6956 | (exit $ac_status); }; }; then |
| 6957 | ac_cv_type_float=yes |
| 6958 | else |
| 6959 | echo "$as_me: failed program was:" >&5 |
| 6960 | cat conftest.$ac_ext >&5 |
| 6961 | ac_cv_type_float=no |
| 6962 | fi |
| 6963 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6964 | fi |
| 6965 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6966 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6967 | |
| 6968 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6969 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6970 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6972 | else |
| 6973 | if test "$ac_cv_type_float" = yes; then |
| 6974 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6975 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6976 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6977 | # This bug is HP SR number 8606223364. |
| 6978 | if test "$cross_compiling" = yes; then |
| 6979 | # Depending upon the size, compute the lo and hi bounds. |
| 6980 | cat >conftest.$ac_ext <<_ACEOF |
| 6981 | #line $LINENO "configure" |
| 6982 | #include "confdefs.h" |
| 6983 | $ac_includes_default |
| 6984 | #ifdef F77_DUMMY_MAIN |
| 6985 | # ifdef __cplusplus |
| 6986 | extern "C" |
| 6987 | # endif |
| 6988 | int F77_DUMMY_MAIN() { return 1; } |
| 6989 | #endif |
| 6990 | int |
| 6991 | main () |
| 6992 | { |
| 6993 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6994 | test_array [0] = 0 |
| 6995 | |
| 6996 | ; |
| 6997 | return 0; |
| 6998 | } |
| 6999 | _ACEOF |
| 7000 | rm -f conftest.$ac_objext |
| 7001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7002 | (eval $ac_compile) 2>&5 |
| 7003 | ac_status=$? |
| 7004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7005 | (exit $ac_status); } && |
| 7006 | { ac_try='test -s conftest.$ac_objext' |
| 7007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7008 | (eval $ac_try) 2>&5 |
| 7009 | ac_status=$? |
| 7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7011 | (exit $ac_status); }; }; then |
| 7012 | ac_lo=0 ac_mid=0 |
| 7013 | while :; do |
| 7014 | cat >conftest.$ac_ext <<_ACEOF |
| 7015 | #line $LINENO "configure" |
| 7016 | #include "confdefs.h" |
| 7017 | $ac_includes_default |
| 7018 | #ifdef F77_DUMMY_MAIN |
| 7019 | # ifdef __cplusplus |
| 7020 | extern "C" |
| 7021 | # endif |
| 7022 | int F77_DUMMY_MAIN() { return 1; } |
| 7023 | #endif |
| 7024 | int |
| 7025 | main () |
| 7026 | { |
| 7027 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7028 | test_array [0] = 0 |
| 7029 | |
| 7030 | ; |
| 7031 | return 0; |
| 7032 | } |
| 7033 | _ACEOF |
| 7034 | rm -f conftest.$ac_objext |
| 7035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7036 | (eval $ac_compile) 2>&5 |
| 7037 | ac_status=$? |
| 7038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7039 | (exit $ac_status); } && |
| 7040 | { ac_try='test -s conftest.$ac_objext' |
| 7041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7042 | (eval $ac_try) 2>&5 |
| 7043 | ac_status=$? |
| 7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7045 | (exit $ac_status); }; }; then |
| 7046 | ac_hi=$ac_mid; break |
| 7047 | else |
| 7048 | echo "$as_me: failed program was:" >&5 |
| 7049 | cat conftest.$ac_ext >&5 |
| 7050 | ac_lo=`expr $ac_mid + 1` |
| 7051 | if test $ac_lo -le $ac_mid; then |
| 7052 | ac_lo= ac_hi= |
| 7053 | break |
| 7054 | fi |
| 7055 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7056 | fi |
| 7057 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7058 | done |
| 7059 | else |
| 7060 | echo "$as_me: failed program was:" >&5 |
| 7061 | cat conftest.$ac_ext >&5 |
| 7062 | cat >conftest.$ac_ext <<_ACEOF |
| 7063 | #line $LINENO "configure" |
| 7064 | #include "confdefs.h" |
| 7065 | $ac_includes_default |
| 7066 | #ifdef F77_DUMMY_MAIN |
| 7067 | # ifdef __cplusplus |
| 7068 | extern "C" |
| 7069 | # endif |
| 7070 | int F77_DUMMY_MAIN() { return 1; } |
| 7071 | #endif |
| 7072 | int |
| 7073 | main () |
| 7074 | { |
| 7075 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7076 | test_array [0] = 0 |
| 7077 | |
| 7078 | ; |
| 7079 | return 0; |
| 7080 | } |
| 7081 | _ACEOF |
| 7082 | rm -f conftest.$ac_objext |
| 7083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7084 | (eval $ac_compile) 2>&5 |
| 7085 | ac_status=$? |
| 7086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7087 | (exit $ac_status); } && |
| 7088 | { ac_try='test -s conftest.$ac_objext' |
| 7089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7090 | (eval $ac_try) 2>&5 |
| 7091 | ac_status=$? |
| 7092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7093 | (exit $ac_status); }; }; then |
| 7094 | ac_hi=-1 ac_mid=-1 |
| 7095 | while :; do |
| 7096 | cat >conftest.$ac_ext <<_ACEOF |
| 7097 | #line $LINENO "configure" |
| 7098 | #include "confdefs.h" |
| 7099 | $ac_includes_default |
| 7100 | #ifdef F77_DUMMY_MAIN |
| 7101 | # ifdef __cplusplus |
| 7102 | extern "C" |
| 7103 | # endif |
| 7104 | int F77_DUMMY_MAIN() { return 1; } |
| 7105 | #endif |
| 7106 | int |
| 7107 | main () |
| 7108 | { |
| 7109 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7110 | test_array [0] = 0 |
| 7111 | |
| 7112 | ; |
| 7113 | return 0; |
| 7114 | } |
| 7115 | _ACEOF |
| 7116 | rm -f conftest.$ac_objext |
| 7117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7118 | (eval $ac_compile) 2>&5 |
| 7119 | ac_status=$? |
| 7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7121 | (exit $ac_status); } && |
| 7122 | { ac_try='test -s conftest.$ac_objext' |
| 7123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7124 | (eval $ac_try) 2>&5 |
| 7125 | ac_status=$? |
| 7126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7127 | (exit $ac_status); }; }; then |
| 7128 | ac_lo=$ac_mid; break |
| 7129 | else |
| 7130 | echo "$as_me: failed program was:" >&5 |
| 7131 | cat conftest.$ac_ext >&5 |
| 7132 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7133 | if test $ac_mid -le $ac_hi; then |
| 7134 | ac_lo= ac_hi= |
| 7135 | break |
| 7136 | fi |
| 7137 | ac_mid=`expr 2 '*' $ac_mid` |
| 7138 | fi |
| 7139 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7140 | done |
| 7141 | else |
| 7142 | echo "$as_me: failed program was:" >&5 |
| 7143 | cat conftest.$ac_ext >&5 |
| 7144 | ac_lo= ac_hi= |
| 7145 | fi |
| 7146 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7147 | fi |
| 7148 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7149 | # Binary search between lo and hi bounds. |
| 7150 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7151 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7152 | cat >conftest.$ac_ext <<_ACEOF |
| 7153 | #line $LINENO "configure" |
| 7154 | #include "confdefs.h" |
| 7155 | $ac_includes_default |
| 7156 | #ifdef F77_DUMMY_MAIN |
| 7157 | # ifdef __cplusplus |
| 7158 | extern "C" |
| 7159 | # endif |
| 7160 | int F77_DUMMY_MAIN() { return 1; } |
| 7161 | #endif |
| 7162 | int |
| 7163 | main () |
| 7164 | { |
| 7165 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7166 | test_array [0] = 0 |
| 7167 | |
| 7168 | ; |
| 7169 | return 0; |
| 7170 | } |
| 7171 | _ACEOF |
| 7172 | rm -f conftest.$ac_objext |
| 7173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7174 | (eval $ac_compile) 2>&5 |
| 7175 | ac_status=$? |
| 7176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7177 | (exit $ac_status); } && |
| 7178 | { ac_try='test -s conftest.$ac_objext' |
| 7179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7180 | (eval $ac_try) 2>&5 |
| 7181 | ac_status=$? |
| 7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7183 | (exit $ac_status); }; }; then |
| 7184 | ac_hi=$ac_mid |
| 7185 | else |
| 7186 | echo "$as_me: failed program was:" >&5 |
| 7187 | cat conftest.$ac_ext >&5 |
| 7188 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7189 | fi |
| 7190 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7191 | done |
| 7192 | case $ac_lo in |
| 7193 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7194 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7195 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7196 | { (exit 1); exit 1; }; } ;; |
| 7197 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7198 | else |
| 7199 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7200 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7201 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7202 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7203 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7204 | cat >conftest.$ac_ext <<_ACEOF |
| 7205 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7206 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7207 | $ac_includes_default |
| 7208 | long longval () { return (long) (sizeof (float)); } |
| 7209 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7210 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7211 | #include <stdlib.h> |
| 7212 | #ifdef F77_DUMMY_MAIN |
| 7213 | # ifdef __cplusplus |
| 7214 | extern "C" |
| 7215 | # endif |
| 7216 | int F77_DUMMY_MAIN() { return 1; } |
| 7217 | #endif |
| 7218 | int |
| 7219 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7220 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7221 | |
| 7222 | FILE *f = fopen ("conftest.val", "w"); |
| 7223 | if (! f) |
| 7224 | exit (1); |
| 7225 | if (((long) (sizeof (float))) < 0) |
| 7226 | { |
| 7227 | long i = longval (); |
| 7228 | if (i != ((long) (sizeof (float)))) |
| 7229 | exit (1); |
| 7230 | fprintf (f, "%ld\n", i); |
| 7231 | } |
| 7232 | else |
| 7233 | { |
| 7234 | unsigned long i = ulongval (); |
| 7235 | if (i != ((long) (sizeof (float)))) |
| 7236 | exit (1); |
| 7237 | fprintf (f, "%lu\n", i); |
| 7238 | } |
| 7239 | exit (ferror (f) || fclose (f) != 0); |
| 7240 | |
| 7241 | ; |
| 7242 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7243 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7244 | _ACEOF |
| 7245 | rm -f conftest$ac_exeext |
| 7246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7247 | (eval $ac_link) 2>&5 |
| 7248 | ac_status=$? |
| 7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7250 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7252 | (eval $ac_try) 2>&5 |
| 7253 | ac_status=$? |
| 7254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7255 | (exit $ac_status); }; }; then |
| 7256 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7258 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7259 | echo "$as_me: failed program was:" >&5 |
| 7260 | cat conftest.$ac_ext >&5 |
| 7261 | ( exit $ac_status ) |
| 7262 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7263 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7264 | { (exit 1); exit 1; }; } |
| 7265 | fi |
| 7266 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7267 | fi |
| 7268 | fi |
| 7269 | rm -f conftest.val |
| 7270 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7271 | ac_cv_sizeof_float=0 |
| 7272 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7274 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7275 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7276 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7277 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7278 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7279 | |
| 7280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7281 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7282 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7283 | if test "${ac_cv_type_double+set}" = set; then |
| 7284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7285 | else |
| 7286 | cat >conftest.$ac_ext <<_ACEOF |
| 7287 | #line $LINENO "configure" |
| 7288 | #include "confdefs.h" |
| 7289 | $ac_includes_default |
| 7290 | #ifdef F77_DUMMY_MAIN |
| 7291 | # ifdef __cplusplus |
| 7292 | extern "C" |
| 7293 | # endif |
| 7294 | int F77_DUMMY_MAIN() { return 1; } |
| 7295 | #endif |
| 7296 | int |
| 7297 | main () |
| 7298 | { |
| 7299 | if ((double *) 0) |
| 7300 | return 0; |
| 7301 | if (sizeof (double)) |
| 7302 | return 0; |
| 7303 | ; |
| 7304 | return 0; |
| 7305 | } |
| 7306 | _ACEOF |
| 7307 | rm -f conftest.$ac_objext |
| 7308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7309 | (eval $ac_compile) 2>&5 |
| 7310 | ac_status=$? |
| 7311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7312 | (exit $ac_status); } && |
| 7313 | { ac_try='test -s conftest.$ac_objext' |
| 7314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7315 | (eval $ac_try) 2>&5 |
| 7316 | ac_status=$? |
| 7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7318 | (exit $ac_status); }; }; then |
| 7319 | ac_cv_type_double=yes |
| 7320 | else |
| 7321 | echo "$as_me: failed program was:" >&5 |
| 7322 | cat conftest.$ac_ext >&5 |
| 7323 | ac_cv_type_double=no |
| 7324 | fi |
| 7325 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7326 | fi |
| 7327 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7328 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7329 | |
| 7330 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7331 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7332 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7334 | else |
| 7335 | if test "$ac_cv_type_double" = yes; then |
| 7336 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7337 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7338 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7339 | # This bug is HP SR number 8606223364. |
| 7340 | if test "$cross_compiling" = yes; then |
| 7341 | # Depending upon the size, compute the lo and hi bounds. |
| 7342 | cat >conftest.$ac_ext <<_ACEOF |
| 7343 | #line $LINENO "configure" |
| 7344 | #include "confdefs.h" |
| 7345 | $ac_includes_default |
| 7346 | #ifdef F77_DUMMY_MAIN |
| 7347 | # ifdef __cplusplus |
| 7348 | extern "C" |
| 7349 | # endif |
| 7350 | int F77_DUMMY_MAIN() { return 1; } |
| 7351 | #endif |
| 7352 | int |
| 7353 | main () |
| 7354 | { |
| 7355 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7356 | test_array [0] = 0 |
| 7357 | |
| 7358 | ; |
| 7359 | return 0; |
| 7360 | } |
| 7361 | _ACEOF |
| 7362 | rm -f conftest.$ac_objext |
| 7363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7364 | (eval $ac_compile) 2>&5 |
| 7365 | ac_status=$? |
| 7366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7367 | (exit $ac_status); } && |
| 7368 | { ac_try='test -s conftest.$ac_objext' |
| 7369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7370 | (eval $ac_try) 2>&5 |
| 7371 | ac_status=$? |
| 7372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7373 | (exit $ac_status); }; }; then |
| 7374 | ac_lo=0 ac_mid=0 |
| 7375 | while :; do |
| 7376 | cat >conftest.$ac_ext <<_ACEOF |
| 7377 | #line $LINENO "configure" |
| 7378 | #include "confdefs.h" |
| 7379 | $ac_includes_default |
| 7380 | #ifdef F77_DUMMY_MAIN |
| 7381 | # ifdef __cplusplus |
| 7382 | extern "C" |
| 7383 | # endif |
| 7384 | int F77_DUMMY_MAIN() { return 1; } |
| 7385 | #endif |
| 7386 | int |
| 7387 | main () |
| 7388 | { |
| 7389 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7390 | test_array [0] = 0 |
| 7391 | |
| 7392 | ; |
| 7393 | return 0; |
| 7394 | } |
| 7395 | _ACEOF |
| 7396 | rm -f conftest.$ac_objext |
| 7397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7398 | (eval $ac_compile) 2>&5 |
| 7399 | ac_status=$? |
| 7400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7401 | (exit $ac_status); } && |
| 7402 | { ac_try='test -s conftest.$ac_objext' |
| 7403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7404 | (eval $ac_try) 2>&5 |
| 7405 | ac_status=$? |
| 7406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7407 | (exit $ac_status); }; }; then |
| 7408 | ac_hi=$ac_mid; break |
| 7409 | else |
| 7410 | echo "$as_me: failed program was:" >&5 |
| 7411 | cat conftest.$ac_ext >&5 |
| 7412 | ac_lo=`expr $ac_mid + 1` |
| 7413 | if test $ac_lo -le $ac_mid; then |
| 7414 | ac_lo= ac_hi= |
| 7415 | break |
| 7416 | fi |
| 7417 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7418 | fi |
| 7419 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7420 | done |
| 7421 | else |
| 7422 | echo "$as_me: failed program was:" >&5 |
| 7423 | cat conftest.$ac_ext >&5 |
| 7424 | cat >conftest.$ac_ext <<_ACEOF |
| 7425 | #line $LINENO "configure" |
| 7426 | #include "confdefs.h" |
| 7427 | $ac_includes_default |
| 7428 | #ifdef F77_DUMMY_MAIN |
| 7429 | # ifdef __cplusplus |
| 7430 | extern "C" |
| 7431 | # endif |
| 7432 | int F77_DUMMY_MAIN() { return 1; } |
| 7433 | #endif |
| 7434 | int |
| 7435 | main () |
| 7436 | { |
| 7437 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7438 | test_array [0] = 0 |
| 7439 | |
| 7440 | ; |
| 7441 | return 0; |
| 7442 | } |
| 7443 | _ACEOF |
| 7444 | rm -f conftest.$ac_objext |
| 7445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7446 | (eval $ac_compile) 2>&5 |
| 7447 | ac_status=$? |
| 7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7449 | (exit $ac_status); } && |
| 7450 | { ac_try='test -s conftest.$ac_objext' |
| 7451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7452 | (eval $ac_try) 2>&5 |
| 7453 | ac_status=$? |
| 7454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7455 | (exit $ac_status); }; }; then |
| 7456 | ac_hi=-1 ac_mid=-1 |
| 7457 | while :; do |
| 7458 | cat >conftest.$ac_ext <<_ACEOF |
| 7459 | #line $LINENO "configure" |
| 7460 | #include "confdefs.h" |
| 7461 | $ac_includes_default |
| 7462 | #ifdef F77_DUMMY_MAIN |
| 7463 | # ifdef __cplusplus |
| 7464 | extern "C" |
| 7465 | # endif |
| 7466 | int F77_DUMMY_MAIN() { return 1; } |
| 7467 | #endif |
| 7468 | int |
| 7469 | main () |
| 7470 | { |
| 7471 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7472 | test_array [0] = 0 |
| 7473 | |
| 7474 | ; |
| 7475 | return 0; |
| 7476 | } |
| 7477 | _ACEOF |
| 7478 | rm -f conftest.$ac_objext |
| 7479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7480 | (eval $ac_compile) 2>&5 |
| 7481 | ac_status=$? |
| 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7483 | (exit $ac_status); } && |
| 7484 | { ac_try='test -s conftest.$ac_objext' |
| 7485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7486 | (eval $ac_try) 2>&5 |
| 7487 | ac_status=$? |
| 7488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7489 | (exit $ac_status); }; }; then |
| 7490 | ac_lo=$ac_mid; break |
| 7491 | else |
| 7492 | echo "$as_me: failed program was:" >&5 |
| 7493 | cat conftest.$ac_ext >&5 |
| 7494 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7495 | if test $ac_mid -le $ac_hi; then |
| 7496 | ac_lo= ac_hi= |
| 7497 | break |
| 7498 | fi |
| 7499 | ac_mid=`expr 2 '*' $ac_mid` |
| 7500 | fi |
| 7501 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7502 | done |
| 7503 | else |
| 7504 | echo "$as_me: failed program was:" >&5 |
| 7505 | cat conftest.$ac_ext >&5 |
| 7506 | ac_lo= ac_hi= |
| 7507 | fi |
| 7508 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7509 | fi |
| 7510 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7511 | # Binary search between lo and hi bounds. |
| 7512 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7513 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7514 | cat >conftest.$ac_ext <<_ACEOF |
| 7515 | #line $LINENO "configure" |
| 7516 | #include "confdefs.h" |
| 7517 | $ac_includes_default |
| 7518 | #ifdef F77_DUMMY_MAIN |
| 7519 | # ifdef __cplusplus |
| 7520 | extern "C" |
| 7521 | # endif |
| 7522 | int F77_DUMMY_MAIN() { return 1; } |
| 7523 | #endif |
| 7524 | int |
| 7525 | main () |
| 7526 | { |
| 7527 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7528 | test_array [0] = 0 |
| 7529 | |
| 7530 | ; |
| 7531 | return 0; |
| 7532 | } |
| 7533 | _ACEOF |
| 7534 | rm -f conftest.$ac_objext |
| 7535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7536 | (eval $ac_compile) 2>&5 |
| 7537 | ac_status=$? |
| 7538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7539 | (exit $ac_status); } && |
| 7540 | { ac_try='test -s conftest.$ac_objext' |
| 7541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7542 | (eval $ac_try) 2>&5 |
| 7543 | ac_status=$? |
| 7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7545 | (exit $ac_status); }; }; then |
| 7546 | ac_hi=$ac_mid |
| 7547 | else |
| 7548 | echo "$as_me: failed program was:" >&5 |
| 7549 | cat conftest.$ac_ext >&5 |
| 7550 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7551 | fi |
| 7552 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7553 | done |
| 7554 | case $ac_lo in |
| 7555 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7556 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7557 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7558 | { (exit 1); exit 1; }; } ;; |
| 7559 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7560 | else |
| 7561 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7563 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7564 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7566 | cat >conftest.$ac_ext <<_ACEOF |
| 7567 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7568 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7569 | $ac_includes_default |
| 7570 | long longval () { return (long) (sizeof (double)); } |
| 7571 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7572 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7573 | #include <stdlib.h> |
| 7574 | #ifdef F77_DUMMY_MAIN |
| 7575 | # ifdef __cplusplus |
| 7576 | extern "C" |
| 7577 | # endif |
| 7578 | int F77_DUMMY_MAIN() { return 1; } |
| 7579 | #endif |
| 7580 | int |
| 7581 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7582 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7583 | |
| 7584 | FILE *f = fopen ("conftest.val", "w"); |
| 7585 | if (! f) |
| 7586 | exit (1); |
| 7587 | if (((long) (sizeof (double))) < 0) |
| 7588 | { |
| 7589 | long i = longval (); |
| 7590 | if (i != ((long) (sizeof (double)))) |
| 7591 | exit (1); |
| 7592 | fprintf (f, "%ld\n", i); |
| 7593 | } |
| 7594 | else |
| 7595 | { |
| 7596 | unsigned long i = ulongval (); |
| 7597 | if (i != ((long) (sizeof (double)))) |
| 7598 | exit (1); |
| 7599 | fprintf (f, "%lu\n", i); |
| 7600 | } |
| 7601 | exit (ferror (f) || fclose (f) != 0); |
| 7602 | |
| 7603 | ; |
| 7604 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7605 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7606 | _ACEOF |
| 7607 | rm -f conftest$ac_exeext |
| 7608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7609 | (eval $ac_link) 2>&5 |
| 7610 | ac_status=$? |
| 7611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7612 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7614 | (eval $ac_try) 2>&5 |
| 7615 | ac_status=$? |
| 7616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7617 | (exit $ac_status); }; }; then |
| 7618 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7620 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7621 | echo "$as_me: failed program was:" >&5 |
| 7622 | cat conftest.$ac_ext >&5 |
| 7623 | ( exit $ac_status ) |
| 7624 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7625 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7626 | { (exit 1); exit 1; }; } |
| 7627 | fi |
| 7628 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7629 | fi |
| 7630 | fi |
| 7631 | rm -f conftest.val |
| 7632 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7633 | ac_cv_sizeof_double=0 |
| 7634 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7637 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7638 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7639 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7640 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7641 | |
| 7642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7644 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7645 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7647 | else |
| 7648 | cat >conftest.$ac_ext <<_ACEOF |
| 7649 | #line $LINENO "configure" |
| 7650 | #include "confdefs.h" |
| 7651 | $ac_includes_default |
| 7652 | #ifdef F77_DUMMY_MAIN |
| 7653 | # ifdef __cplusplus |
| 7654 | extern "C" |
| 7655 | # endif |
| 7656 | int F77_DUMMY_MAIN() { return 1; } |
| 7657 | #endif |
| 7658 | int |
| 7659 | main () |
| 7660 | { |
| 7661 | if ((fpos_t *) 0) |
| 7662 | return 0; |
| 7663 | if (sizeof (fpos_t)) |
| 7664 | return 0; |
| 7665 | ; |
| 7666 | return 0; |
| 7667 | } |
| 7668 | _ACEOF |
| 7669 | rm -f conftest.$ac_objext |
| 7670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7671 | (eval $ac_compile) 2>&5 |
| 7672 | ac_status=$? |
| 7673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7674 | (exit $ac_status); } && |
| 7675 | { ac_try='test -s conftest.$ac_objext' |
| 7676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7677 | (eval $ac_try) 2>&5 |
| 7678 | ac_status=$? |
| 7679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7680 | (exit $ac_status); }; }; then |
| 7681 | ac_cv_type_fpos_t=yes |
| 7682 | else |
| 7683 | echo "$as_me: failed program was:" >&5 |
| 7684 | cat conftest.$ac_ext >&5 |
| 7685 | ac_cv_type_fpos_t=no |
| 7686 | fi |
| 7687 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7688 | fi |
| 7689 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7690 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7691 | |
| 7692 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7693 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7694 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7696 | else |
| 7697 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7698 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7699 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7700 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7701 | # This bug is HP SR number 8606223364. |
| 7702 | if test "$cross_compiling" = yes; then |
| 7703 | # Depending upon the size, compute the lo and hi bounds. |
| 7704 | cat >conftest.$ac_ext <<_ACEOF |
| 7705 | #line $LINENO "configure" |
| 7706 | #include "confdefs.h" |
| 7707 | $ac_includes_default |
| 7708 | #ifdef F77_DUMMY_MAIN |
| 7709 | # ifdef __cplusplus |
| 7710 | extern "C" |
| 7711 | # endif |
| 7712 | int F77_DUMMY_MAIN() { return 1; } |
| 7713 | #endif |
| 7714 | int |
| 7715 | main () |
| 7716 | { |
| 7717 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7718 | test_array [0] = 0 |
| 7719 | |
| 7720 | ; |
| 7721 | return 0; |
| 7722 | } |
| 7723 | _ACEOF |
| 7724 | rm -f conftest.$ac_objext |
| 7725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7726 | (eval $ac_compile) 2>&5 |
| 7727 | ac_status=$? |
| 7728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7729 | (exit $ac_status); } && |
| 7730 | { ac_try='test -s conftest.$ac_objext' |
| 7731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7732 | (eval $ac_try) 2>&5 |
| 7733 | ac_status=$? |
| 7734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7735 | (exit $ac_status); }; }; then |
| 7736 | ac_lo=0 ac_mid=0 |
| 7737 | while :; do |
| 7738 | cat >conftest.$ac_ext <<_ACEOF |
| 7739 | #line $LINENO "configure" |
| 7740 | #include "confdefs.h" |
| 7741 | $ac_includes_default |
| 7742 | #ifdef F77_DUMMY_MAIN |
| 7743 | # ifdef __cplusplus |
| 7744 | extern "C" |
| 7745 | # endif |
| 7746 | int F77_DUMMY_MAIN() { return 1; } |
| 7747 | #endif |
| 7748 | int |
| 7749 | main () |
| 7750 | { |
| 7751 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7752 | test_array [0] = 0 |
| 7753 | |
| 7754 | ; |
| 7755 | return 0; |
| 7756 | } |
| 7757 | _ACEOF |
| 7758 | rm -f conftest.$ac_objext |
| 7759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7760 | (eval $ac_compile) 2>&5 |
| 7761 | ac_status=$? |
| 7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7763 | (exit $ac_status); } && |
| 7764 | { ac_try='test -s conftest.$ac_objext' |
| 7765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7766 | (eval $ac_try) 2>&5 |
| 7767 | ac_status=$? |
| 7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7769 | (exit $ac_status); }; }; then |
| 7770 | ac_hi=$ac_mid; break |
| 7771 | else |
| 7772 | echo "$as_me: failed program was:" >&5 |
| 7773 | cat conftest.$ac_ext >&5 |
| 7774 | ac_lo=`expr $ac_mid + 1` |
| 7775 | if test $ac_lo -le $ac_mid; then |
| 7776 | ac_lo= ac_hi= |
| 7777 | break |
| 7778 | fi |
| 7779 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7780 | fi |
| 7781 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7782 | done |
| 7783 | else |
| 7784 | echo "$as_me: failed program was:" >&5 |
| 7785 | cat conftest.$ac_ext >&5 |
| 7786 | cat >conftest.$ac_ext <<_ACEOF |
| 7787 | #line $LINENO "configure" |
| 7788 | #include "confdefs.h" |
| 7789 | $ac_includes_default |
| 7790 | #ifdef F77_DUMMY_MAIN |
| 7791 | # ifdef __cplusplus |
| 7792 | extern "C" |
| 7793 | # endif |
| 7794 | int F77_DUMMY_MAIN() { return 1; } |
| 7795 | #endif |
| 7796 | int |
| 7797 | main () |
| 7798 | { |
| 7799 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7800 | test_array [0] = 0 |
| 7801 | |
| 7802 | ; |
| 7803 | return 0; |
| 7804 | } |
| 7805 | _ACEOF |
| 7806 | rm -f conftest.$ac_objext |
| 7807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7808 | (eval $ac_compile) 2>&5 |
| 7809 | ac_status=$? |
| 7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7811 | (exit $ac_status); } && |
| 7812 | { ac_try='test -s conftest.$ac_objext' |
| 7813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7814 | (eval $ac_try) 2>&5 |
| 7815 | ac_status=$? |
| 7816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7817 | (exit $ac_status); }; }; then |
| 7818 | ac_hi=-1 ac_mid=-1 |
| 7819 | while :; do |
| 7820 | cat >conftest.$ac_ext <<_ACEOF |
| 7821 | #line $LINENO "configure" |
| 7822 | #include "confdefs.h" |
| 7823 | $ac_includes_default |
| 7824 | #ifdef F77_DUMMY_MAIN |
| 7825 | # ifdef __cplusplus |
| 7826 | extern "C" |
| 7827 | # endif |
| 7828 | int F77_DUMMY_MAIN() { return 1; } |
| 7829 | #endif |
| 7830 | int |
| 7831 | main () |
| 7832 | { |
| 7833 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7834 | test_array [0] = 0 |
| 7835 | |
| 7836 | ; |
| 7837 | return 0; |
| 7838 | } |
| 7839 | _ACEOF |
| 7840 | rm -f conftest.$ac_objext |
| 7841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7842 | (eval $ac_compile) 2>&5 |
| 7843 | ac_status=$? |
| 7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7845 | (exit $ac_status); } && |
| 7846 | { ac_try='test -s conftest.$ac_objext' |
| 7847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7848 | (eval $ac_try) 2>&5 |
| 7849 | ac_status=$? |
| 7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7851 | (exit $ac_status); }; }; then |
| 7852 | ac_lo=$ac_mid; break |
| 7853 | else |
| 7854 | echo "$as_me: failed program was:" >&5 |
| 7855 | cat conftest.$ac_ext >&5 |
| 7856 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7857 | if test $ac_mid -le $ac_hi; then |
| 7858 | ac_lo= ac_hi= |
| 7859 | break |
| 7860 | fi |
| 7861 | ac_mid=`expr 2 '*' $ac_mid` |
| 7862 | fi |
| 7863 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7864 | done |
| 7865 | else |
| 7866 | echo "$as_me: failed program was:" >&5 |
| 7867 | cat conftest.$ac_ext >&5 |
| 7868 | ac_lo= ac_hi= |
| 7869 | fi |
| 7870 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7871 | fi |
| 7872 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7873 | # Binary search between lo and hi bounds. |
| 7874 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7875 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7876 | cat >conftest.$ac_ext <<_ACEOF |
| 7877 | #line $LINENO "configure" |
| 7878 | #include "confdefs.h" |
| 7879 | $ac_includes_default |
| 7880 | #ifdef F77_DUMMY_MAIN |
| 7881 | # ifdef __cplusplus |
| 7882 | extern "C" |
| 7883 | # endif |
| 7884 | int F77_DUMMY_MAIN() { return 1; } |
| 7885 | #endif |
| 7886 | int |
| 7887 | main () |
| 7888 | { |
| 7889 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7890 | test_array [0] = 0 |
| 7891 | |
| 7892 | ; |
| 7893 | return 0; |
| 7894 | } |
| 7895 | _ACEOF |
| 7896 | rm -f conftest.$ac_objext |
| 7897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7898 | (eval $ac_compile) 2>&5 |
| 7899 | ac_status=$? |
| 7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7901 | (exit $ac_status); } && |
| 7902 | { ac_try='test -s conftest.$ac_objext' |
| 7903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7904 | (eval $ac_try) 2>&5 |
| 7905 | ac_status=$? |
| 7906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7907 | (exit $ac_status); }; }; then |
| 7908 | ac_hi=$ac_mid |
| 7909 | else |
| 7910 | echo "$as_me: failed program was:" >&5 |
| 7911 | cat conftest.$ac_ext >&5 |
| 7912 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7913 | fi |
| 7914 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7915 | done |
| 7916 | case $ac_lo in |
| 7917 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7918 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7919 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7920 | { (exit 1); exit 1; }; } ;; |
| 7921 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7922 | else |
| 7923 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7924 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7925 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7926 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7928 | cat >conftest.$ac_ext <<_ACEOF |
| 7929 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7930 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 | $ac_includes_default |
| 7932 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7933 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7934 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7935 | #include <stdlib.h> |
| 7936 | #ifdef F77_DUMMY_MAIN |
| 7937 | # ifdef __cplusplus |
| 7938 | extern "C" |
| 7939 | # endif |
| 7940 | int F77_DUMMY_MAIN() { return 1; } |
| 7941 | #endif |
| 7942 | int |
| 7943 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7944 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7945 | |
| 7946 | FILE *f = fopen ("conftest.val", "w"); |
| 7947 | if (! f) |
| 7948 | exit (1); |
| 7949 | if (((long) (sizeof (fpos_t))) < 0) |
| 7950 | { |
| 7951 | long i = longval (); |
| 7952 | if (i != ((long) (sizeof (fpos_t)))) |
| 7953 | exit (1); |
| 7954 | fprintf (f, "%ld\n", i); |
| 7955 | } |
| 7956 | else |
| 7957 | { |
| 7958 | unsigned long i = ulongval (); |
| 7959 | if (i != ((long) (sizeof (fpos_t)))) |
| 7960 | exit (1); |
| 7961 | fprintf (f, "%lu\n", i); |
| 7962 | } |
| 7963 | exit (ferror (f) || fclose (f) != 0); |
| 7964 | |
| 7965 | ; |
| 7966 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7967 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | _ACEOF |
| 7969 | rm -f conftest$ac_exeext |
| 7970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7971 | (eval $ac_link) 2>&5 |
| 7972 | ac_status=$? |
| 7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7974 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7976 | (eval $ac_try) 2>&5 |
| 7977 | ac_status=$? |
| 7978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7979 | (exit $ac_status); }; }; then |
| 7980 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7983 | echo "$as_me: failed program was:" >&5 |
| 7984 | cat conftest.$ac_ext >&5 |
| 7985 | ( exit $ac_status ) |
| 7986 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7987 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7988 | { (exit 1); exit 1; }; } |
| 7989 | fi |
| 7990 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7991 | fi |
| 7992 | fi |
| 7993 | rm -f conftest.val |
| 7994 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7995 | ac_cv_sizeof_fpos_t=0 |
| 7996 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7998 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7999 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8000 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8001 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8003 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8004 | |
| 8005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8007 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8008 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8009 | cat >conftest.$ac_ext <<_ACEOF |
| 8010 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8011 | #include "confdefs.h" |
| 8012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8013 | #ifdef F77_DUMMY_MAIN |
| 8014 | # ifdef __cplusplus |
| 8015 | extern "C" |
| 8016 | # endif |
| 8017 | int F77_DUMMY_MAIN() { return 1; } |
| 8018 | #endif |
| 8019 | int |
| 8020 | main () |
| 8021 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8022 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8023 | ; |
| 8024 | return 0; |
| 8025 | } |
| 8026 | _ACEOF |
| 8027 | rm -f conftest.$ac_objext |
| 8028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8029 | (eval $ac_compile) 2>&5 |
| 8030 | ac_status=$? |
| 8031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8032 | (exit $ac_status); } && |
| 8033 | { ac_try='test -s conftest.$ac_objext' |
| 8034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8035 | (eval $ac_try) 2>&5 |
| 8036 | ac_status=$? |
| 8037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8038 | (exit $ac_status); }; }; then |
| 8039 | |
| 8040 | |
| 8041 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8042 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8043 | _ACEOF |
| 8044 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8045 | have_long_long=yes |
| 8046 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | echo "$as_me: failed program was:" >&5 |
| 8049 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8050 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8051 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8052 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8053 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8054 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8056 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8057 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8059 | else |
| 8060 | cat >conftest.$ac_ext <<_ACEOF |
| 8061 | #line $LINENO "configure" |
| 8062 | #include "confdefs.h" |
| 8063 | $ac_includes_default |
| 8064 | #ifdef F77_DUMMY_MAIN |
| 8065 | # ifdef __cplusplus |
| 8066 | extern "C" |
| 8067 | # endif |
| 8068 | int F77_DUMMY_MAIN() { return 1; } |
| 8069 | #endif |
| 8070 | int |
| 8071 | main () |
| 8072 | { |
| 8073 | if ((long long *) 0) |
| 8074 | return 0; |
| 8075 | if (sizeof (long long)) |
| 8076 | return 0; |
| 8077 | ; |
| 8078 | return 0; |
| 8079 | } |
| 8080 | _ACEOF |
| 8081 | rm -f conftest.$ac_objext |
| 8082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8083 | (eval $ac_compile) 2>&5 |
| 8084 | ac_status=$? |
| 8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8086 | (exit $ac_status); } && |
| 8087 | { ac_try='test -s conftest.$ac_objext' |
| 8088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8089 | (eval $ac_try) 2>&5 |
| 8090 | ac_status=$? |
| 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8092 | (exit $ac_status); }; }; then |
| 8093 | ac_cv_type_long_long=yes |
| 8094 | else |
| 8095 | echo "$as_me: failed program was:" >&5 |
| 8096 | cat conftest.$ac_ext >&5 |
| 8097 | ac_cv_type_long_long=no |
| 8098 | fi |
| 8099 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8100 | fi |
| 8101 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8102 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8103 | |
| 8104 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8105 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8106 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8108 | else |
| 8109 | if test "$ac_cv_type_long_long" = yes; then |
| 8110 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8111 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8112 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8113 | # This bug is HP SR number 8606223364. |
| 8114 | if test "$cross_compiling" = yes; then |
| 8115 | # Depending upon the size, compute the lo and hi bounds. |
| 8116 | cat >conftest.$ac_ext <<_ACEOF |
| 8117 | #line $LINENO "configure" |
| 8118 | #include "confdefs.h" |
| 8119 | $ac_includes_default |
| 8120 | #ifdef F77_DUMMY_MAIN |
| 8121 | # ifdef __cplusplus |
| 8122 | extern "C" |
| 8123 | # endif |
| 8124 | int F77_DUMMY_MAIN() { return 1; } |
| 8125 | #endif |
| 8126 | int |
| 8127 | main () |
| 8128 | { |
| 8129 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8130 | test_array [0] = 0 |
| 8131 | |
| 8132 | ; |
| 8133 | return 0; |
| 8134 | } |
| 8135 | _ACEOF |
| 8136 | rm -f conftest.$ac_objext |
| 8137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8138 | (eval $ac_compile) 2>&5 |
| 8139 | ac_status=$? |
| 8140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8141 | (exit $ac_status); } && |
| 8142 | { ac_try='test -s conftest.$ac_objext' |
| 8143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8144 | (eval $ac_try) 2>&5 |
| 8145 | ac_status=$? |
| 8146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8147 | (exit $ac_status); }; }; then |
| 8148 | ac_lo=0 ac_mid=0 |
| 8149 | while :; do |
| 8150 | cat >conftest.$ac_ext <<_ACEOF |
| 8151 | #line $LINENO "configure" |
| 8152 | #include "confdefs.h" |
| 8153 | $ac_includes_default |
| 8154 | #ifdef F77_DUMMY_MAIN |
| 8155 | # ifdef __cplusplus |
| 8156 | extern "C" |
| 8157 | # endif |
| 8158 | int F77_DUMMY_MAIN() { return 1; } |
| 8159 | #endif |
| 8160 | int |
| 8161 | main () |
| 8162 | { |
| 8163 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8164 | test_array [0] = 0 |
| 8165 | |
| 8166 | ; |
| 8167 | return 0; |
| 8168 | } |
| 8169 | _ACEOF |
| 8170 | rm -f conftest.$ac_objext |
| 8171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8172 | (eval $ac_compile) 2>&5 |
| 8173 | ac_status=$? |
| 8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8175 | (exit $ac_status); } && |
| 8176 | { ac_try='test -s conftest.$ac_objext' |
| 8177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8178 | (eval $ac_try) 2>&5 |
| 8179 | ac_status=$? |
| 8180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8181 | (exit $ac_status); }; }; then |
| 8182 | ac_hi=$ac_mid; break |
| 8183 | else |
| 8184 | echo "$as_me: failed program was:" >&5 |
| 8185 | cat conftest.$ac_ext >&5 |
| 8186 | ac_lo=`expr $ac_mid + 1` |
| 8187 | if test $ac_lo -le $ac_mid; then |
| 8188 | ac_lo= ac_hi= |
| 8189 | break |
| 8190 | fi |
| 8191 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8192 | fi |
| 8193 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8194 | done |
| 8195 | else |
| 8196 | echo "$as_me: failed program was:" >&5 |
| 8197 | cat conftest.$ac_ext >&5 |
| 8198 | cat >conftest.$ac_ext <<_ACEOF |
| 8199 | #line $LINENO "configure" |
| 8200 | #include "confdefs.h" |
| 8201 | $ac_includes_default |
| 8202 | #ifdef F77_DUMMY_MAIN |
| 8203 | # ifdef __cplusplus |
| 8204 | extern "C" |
| 8205 | # endif |
| 8206 | int F77_DUMMY_MAIN() { return 1; } |
| 8207 | #endif |
| 8208 | int |
| 8209 | main () |
| 8210 | { |
| 8211 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8212 | test_array [0] = 0 |
| 8213 | |
| 8214 | ; |
| 8215 | return 0; |
| 8216 | } |
| 8217 | _ACEOF |
| 8218 | rm -f conftest.$ac_objext |
| 8219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8220 | (eval $ac_compile) 2>&5 |
| 8221 | ac_status=$? |
| 8222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8223 | (exit $ac_status); } && |
| 8224 | { ac_try='test -s conftest.$ac_objext' |
| 8225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8226 | (eval $ac_try) 2>&5 |
| 8227 | ac_status=$? |
| 8228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8229 | (exit $ac_status); }; }; then |
| 8230 | ac_hi=-1 ac_mid=-1 |
| 8231 | while :; do |
| 8232 | cat >conftest.$ac_ext <<_ACEOF |
| 8233 | #line $LINENO "configure" |
| 8234 | #include "confdefs.h" |
| 8235 | $ac_includes_default |
| 8236 | #ifdef F77_DUMMY_MAIN |
| 8237 | # ifdef __cplusplus |
| 8238 | extern "C" |
| 8239 | # endif |
| 8240 | int F77_DUMMY_MAIN() { return 1; } |
| 8241 | #endif |
| 8242 | int |
| 8243 | main () |
| 8244 | { |
| 8245 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8246 | test_array [0] = 0 |
| 8247 | |
| 8248 | ; |
| 8249 | return 0; |
| 8250 | } |
| 8251 | _ACEOF |
| 8252 | rm -f conftest.$ac_objext |
| 8253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8254 | (eval $ac_compile) 2>&5 |
| 8255 | ac_status=$? |
| 8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8257 | (exit $ac_status); } && |
| 8258 | { ac_try='test -s conftest.$ac_objext' |
| 8259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8260 | (eval $ac_try) 2>&5 |
| 8261 | ac_status=$? |
| 8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8263 | (exit $ac_status); }; }; then |
| 8264 | ac_lo=$ac_mid; break |
| 8265 | else |
| 8266 | echo "$as_me: failed program was:" >&5 |
| 8267 | cat conftest.$ac_ext >&5 |
| 8268 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8269 | if test $ac_mid -le $ac_hi; then |
| 8270 | ac_lo= ac_hi= |
| 8271 | break |
| 8272 | fi |
| 8273 | ac_mid=`expr 2 '*' $ac_mid` |
| 8274 | fi |
| 8275 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8276 | done |
| 8277 | else |
| 8278 | echo "$as_me: failed program was:" >&5 |
| 8279 | cat conftest.$ac_ext >&5 |
| 8280 | ac_lo= ac_hi= |
| 8281 | fi |
| 8282 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8283 | fi |
| 8284 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8285 | # Binary search between lo and hi bounds. |
| 8286 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8287 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8288 | cat >conftest.$ac_ext <<_ACEOF |
| 8289 | #line $LINENO "configure" |
| 8290 | #include "confdefs.h" |
| 8291 | $ac_includes_default |
| 8292 | #ifdef F77_DUMMY_MAIN |
| 8293 | # ifdef __cplusplus |
| 8294 | extern "C" |
| 8295 | # endif |
| 8296 | int F77_DUMMY_MAIN() { return 1; } |
| 8297 | #endif |
| 8298 | int |
| 8299 | main () |
| 8300 | { |
| 8301 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8302 | test_array [0] = 0 |
| 8303 | |
| 8304 | ; |
| 8305 | return 0; |
| 8306 | } |
| 8307 | _ACEOF |
| 8308 | rm -f conftest.$ac_objext |
| 8309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8310 | (eval $ac_compile) 2>&5 |
| 8311 | ac_status=$? |
| 8312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8313 | (exit $ac_status); } && |
| 8314 | { ac_try='test -s conftest.$ac_objext' |
| 8315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8316 | (eval $ac_try) 2>&5 |
| 8317 | ac_status=$? |
| 8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8319 | (exit $ac_status); }; }; then |
| 8320 | ac_hi=$ac_mid |
| 8321 | else |
| 8322 | echo "$as_me: failed program was:" >&5 |
| 8323 | cat conftest.$ac_ext >&5 |
| 8324 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8325 | fi |
| 8326 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8327 | done |
| 8328 | case $ac_lo in |
| 8329 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8330 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8331 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8332 | { (exit 1); exit 1; }; } ;; |
| 8333 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8334 | else |
| 8335 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8336 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8337 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8338 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8340 | cat >conftest.$ac_ext <<_ACEOF |
| 8341 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8342 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 | $ac_includes_default |
| 8344 | long longval () { return (long) (sizeof (long long)); } |
| 8345 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8346 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | #include <stdlib.h> |
| 8348 | #ifdef F77_DUMMY_MAIN |
| 8349 | # ifdef __cplusplus |
| 8350 | extern "C" |
| 8351 | # endif |
| 8352 | int F77_DUMMY_MAIN() { return 1; } |
| 8353 | #endif |
| 8354 | int |
| 8355 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8356 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8357 | |
| 8358 | FILE *f = fopen ("conftest.val", "w"); |
| 8359 | if (! f) |
| 8360 | exit (1); |
| 8361 | if (((long) (sizeof (long long))) < 0) |
| 8362 | { |
| 8363 | long i = longval (); |
| 8364 | if (i != ((long) (sizeof (long long)))) |
| 8365 | exit (1); |
| 8366 | fprintf (f, "%ld\n", i); |
| 8367 | } |
| 8368 | else |
| 8369 | { |
| 8370 | unsigned long i = ulongval (); |
| 8371 | if (i != ((long) (sizeof (long long)))) |
| 8372 | exit (1); |
| 8373 | fprintf (f, "%lu\n", i); |
| 8374 | } |
| 8375 | exit (ferror (f) || fclose (f) != 0); |
| 8376 | |
| 8377 | ; |
| 8378 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8379 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | _ACEOF |
| 8381 | rm -f conftest$ac_exeext |
| 8382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8383 | (eval $ac_link) 2>&5 |
| 8384 | ac_status=$? |
| 8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8388 | (eval $ac_try) 2>&5 |
| 8389 | ac_status=$? |
| 8390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8391 | (exit $ac_status); }; }; then |
| 8392 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8393 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8394 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8395 | echo "$as_me: failed program was:" >&5 |
| 8396 | cat conftest.$ac_ext >&5 |
| 8397 | ( exit $ac_status ) |
| 8398 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8399 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8400 | { (exit 1); exit 1; }; } |
| 8401 | fi |
| 8402 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8403 | fi |
| 8404 | fi |
| 8405 | rm -f conftest.val |
| 8406 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8407 | ac_cv_sizeof_long_long=0 |
| 8408 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8409 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8411 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8412 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8413 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8415 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8416 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8417 | fi |
| 8418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8420 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8421 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | cat >conftest.$ac_ext <<_ACEOF |
| 8423 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8424 | #include "confdefs.h" |
| 8425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8426 | #ifdef F77_DUMMY_MAIN |
| 8427 | # ifdef __cplusplus |
| 8428 | extern "C" |
| 8429 | # endif |
| 8430 | int F77_DUMMY_MAIN() { return 1; } |
| 8431 | #endif |
| 8432 | int |
| 8433 | main () |
| 8434 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8435 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8436 | ; |
| 8437 | return 0; |
| 8438 | } |
| 8439 | _ACEOF |
| 8440 | rm -f conftest.$ac_objext |
| 8441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8442 | (eval $ac_compile) 2>&5 |
| 8443 | ac_status=$? |
| 8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8445 | (exit $ac_status); } && |
| 8446 | { ac_try='test -s conftest.$ac_objext' |
| 8447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8448 | (eval $ac_try) 2>&5 |
| 8449 | ac_status=$? |
| 8450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8451 | (exit $ac_status); }; }; then |
| 8452 | |
| 8453 | |
| 8454 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8455 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | _ACEOF |
| 8457 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8458 | have_uintptr_t=yes |
| 8459 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8461 | echo "$as_me: failed program was:" >&5 |
| 8462 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8463 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8464 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8465 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8466 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8467 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8469 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8470 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8472 | else |
| 8473 | cat >conftest.$ac_ext <<_ACEOF |
| 8474 | #line $LINENO "configure" |
| 8475 | #include "confdefs.h" |
| 8476 | $ac_includes_default |
| 8477 | #ifdef F77_DUMMY_MAIN |
| 8478 | # ifdef __cplusplus |
| 8479 | extern "C" |
| 8480 | # endif |
| 8481 | int F77_DUMMY_MAIN() { return 1; } |
| 8482 | #endif |
| 8483 | int |
| 8484 | main () |
| 8485 | { |
| 8486 | if ((uintptr_t *) 0) |
| 8487 | return 0; |
| 8488 | if (sizeof (uintptr_t)) |
| 8489 | return 0; |
| 8490 | ; |
| 8491 | return 0; |
| 8492 | } |
| 8493 | _ACEOF |
| 8494 | rm -f conftest.$ac_objext |
| 8495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8496 | (eval $ac_compile) 2>&5 |
| 8497 | ac_status=$? |
| 8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8499 | (exit $ac_status); } && |
| 8500 | { ac_try='test -s conftest.$ac_objext' |
| 8501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8502 | (eval $ac_try) 2>&5 |
| 8503 | ac_status=$? |
| 8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8505 | (exit $ac_status); }; }; then |
| 8506 | ac_cv_type_uintptr_t=yes |
| 8507 | else |
| 8508 | echo "$as_me: failed program was:" >&5 |
| 8509 | cat conftest.$ac_ext >&5 |
| 8510 | ac_cv_type_uintptr_t=no |
| 8511 | fi |
| 8512 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8513 | fi |
| 8514 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8515 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8516 | |
| 8517 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8518 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8519 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8521 | else |
| 8522 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8523 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8524 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8525 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8526 | # This bug is HP SR number 8606223364. |
| 8527 | if test "$cross_compiling" = yes; then |
| 8528 | # Depending upon the size, compute the lo and hi bounds. |
| 8529 | cat >conftest.$ac_ext <<_ACEOF |
| 8530 | #line $LINENO "configure" |
| 8531 | #include "confdefs.h" |
| 8532 | $ac_includes_default |
| 8533 | #ifdef F77_DUMMY_MAIN |
| 8534 | # ifdef __cplusplus |
| 8535 | extern "C" |
| 8536 | # endif |
| 8537 | int F77_DUMMY_MAIN() { return 1; } |
| 8538 | #endif |
| 8539 | int |
| 8540 | main () |
| 8541 | { |
| 8542 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8543 | test_array [0] = 0 |
| 8544 | |
| 8545 | ; |
| 8546 | return 0; |
| 8547 | } |
| 8548 | _ACEOF |
| 8549 | rm -f conftest.$ac_objext |
| 8550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8551 | (eval $ac_compile) 2>&5 |
| 8552 | ac_status=$? |
| 8553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8554 | (exit $ac_status); } && |
| 8555 | { ac_try='test -s conftest.$ac_objext' |
| 8556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8557 | (eval $ac_try) 2>&5 |
| 8558 | ac_status=$? |
| 8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8560 | (exit $ac_status); }; }; then |
| 8561 | ac_lo=0 ac_mid=0 |
| 8562 | while :; do |
| 8563 | cat >conftest.$ac_ext <<_ACEOF |
| 8564 | #line $LINENO "configure" |
| 8565 | #include "confdefs.h" |
| 8566 | $ac_includes_default |
| 8567 | #ifdef F77_DUMMY_MAIN |
| 8568 | # ifdef __cplusplus |
| 8569 | extern "C" |
| 8570 | # endif |
| 8571 | int F77_DUMMY_MAIN() { return 1; } |
| 8572 | #endif |
| 8573 | int |
| 8574 | main () |
| 8575 | { |
| 8576 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8577 | test_array [0] = 0 |
| 8578 | |
| 8579 | ; |
| 8580 | return 0; |
| 8581 | } |
| 8582 | _ACEOF |
| 8583 | rm -f conftest.$ac_objext |
| 8584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8585 | (eval $ac_compile) 2>&5 |
| 8586 | ac_status=$? |
| 8587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8588 | (exit $ac_status); } && |
| 8589 | { ac_try='test -s conftest.$ac_objext' |
| 8590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8591 | (eval $ac_try) 2>&5 |
| 8592 | ac_status=$? |
| 8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8594 | (exit $ac_status); }; }; then |
| 8595 | ac_hi=$ac_mid; break |
| 8596 | else |
| 8597 | echo "$as_me: failed program was:" >&5 |
| 8598 | cat conftest.$ac_ext >&5 |
| 8599 | ac_lo=`expr $ac_mid + 1` |
| 8600 | if test $ac_lo -le $ac_mid; then |
| 8601 | ac_lo= ac_hi= |
| 8602 | break |
| 8603 | fi |
| 8604 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8605 | fi |
| 8606 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8607 | done |
| 8608 | else |
| 8609 | echo "$as_me: failed program was:" >&5 |
| 8610 | cat conftest.$ac_ext >&5 |
| 8611 | cat >conftest.$ac_ext <<_ACEOF |
| 8612 | #line $LINENO "configure" |
| 8613 | #include "confdefs.h" |
| 8614 | $ac_includes_default |
| 8615 | #ifdef F77_DUMMY_MAIN |
| 8616 | # ifdef __cplusplus |
| 8617 | extern "C" |
| 8618 | # endif |
| 8619 | int F77_DUMMY_MAIN() { return 1; } |
| 8620 | #endif |
| 8621 | int |
| 8622 | main () |
| 8623 | { |
| 8624 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8625 | test_array [0] = 0 |
| 8626 | |
| 8627 | ; |
| 8628 | return 0; |
| 8629 | } |
| 8630 | _ACEOF |
| 8631 | rm -f conftest.$ac_objext |
| 8632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8633 | (eval $ac_compile) 2>&5 |
| 8634 | ac_status=$? |
| 8635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8636 | (exit $ac_status); } && |
| 8637 | { ac_try='test -s conftest.$ac_objext' |
| 8638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8639 | (eval $ac_try) 2>&5 |
| 8640 | ac_status=$? |
| 8641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8642 | (exit $ac_status); }; }; then |
| 8643 | ac_hi=-1 ac_mid=-1 |
| 8644 | while :; do |
| 8645 | cat >conftest.$ac_ext <<_ACEOF |
| 8646 | #line $LINENO "configure" |
| 8647 | #include "confdefs.h" |
| 8648 | $ac_includes_default |
| 8649 | #ifdef F77_DUMMY_MAIN |
| 8650 | # ifdef __cplusplus |
| 8651 | extern "C" |
| 8652 | # endif |
| 8653 | int F77_DUMMY_MAIN() { return 1; } |
| 8654 | #endif |
| 8655 | int |
| 8656 | main () |
| 8657 | { |
| 8658 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8659 | test_array [0] = 0 |
| 8660 | |
| 8661 | ; |
| 8662 | return 0; |
| 8663 | } |
| 8664 | _ACEOF |
| 8665 | rm -f conftest.$ac_objext |
| 8666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8667 | (eval $ac_compile) 2>&5 |
| 8668 | ac_status=$? |
| 8669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8670 | (exit $ac_status); } && |
| 8671 | { ac_try='test -s conftest.$ac_objext' |
| 8672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8673 | (eval $ac_try) 2>&5 |
| 8674 | ac_status=$? |
| 8675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8676 | (exit $ac_status); }; }; then |
| 8677 | ac_lo=$ac_mid; break |
| 8678 | else |
| 8679 | echo "$as_me: failed program was:" >&5 |
| 8680 | cat conftest.$ac_ext >&5 |
| 8681 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8682 | if test $ac_mid -le $ac_hi; then |
| 8683 | ac_lo= ac_hi= |
| 8684 | break |
| 8685 | fi |
| 8686 | ac_mid=`expr 2 '*' $ac_mid` |
| 8687 | fi |
| 8688 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8689 | done |
| 8690 | else |
| 8691 | echo "$as_me: failed program was:" >&5 |
| 8692 | cat conftest.$ac_ext >&5 |
| 8693 | ac_lo= ac_hi= |
| 8694 | fi |
| 8695 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8696 | fi |
| 8697 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8698 | # Binary search between lo and hi bounds. |
| 8699 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8700 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8701 | cat >conftest.$ac_ext <<_ACEOF |
| 8702 | #line $LINENO "configure" |
| 8703 | #include "confdefs.h" |
| 8704 | $ac_includes_default |
| 8705 | #ifdef F77_DUMMY_MAIN |
| 8706 | # ifdef __cplusplus |
| 8707 | extern "C" |
| 8708 | # endif |
| 8709 | int F77_DUMMY_MAIN() { return 1; } |
| 8710 | #endif |
| 8711 | int |
| 8712 | main () |
| 8713 | { |
| 8714 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8715 | test_array [0] = 0 |
| 8716 | |
| 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
| 8721 | rm -f conftest.$ac_objext |
| 8722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8723 | (eval $ac_compile) 2>&5 |
| 8724 | ac_status=$? |
| 8725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8726 | (exit $ac_status); } && |
| 8727 | { ac_try='test -s conftest.$ac_objext' |
| 8728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8729 | (eval $ac_try) 2>&5 |
| 8730 | ac_status=$? |
| 8731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8732 | (exit $ac_status); }; }; then |
| 8733 | ac_hi=$ac_mid |
| 8734 | else |
| 8735 | echo "$as_me: failed program was:" >&5 |
| 8736 | cat conftest.$ac_ext >&5 |
| 8737 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8738 | fi |
| 8739 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8740 | done |
| 8741 | case $ac_lo in |
| 8742 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8743 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8744 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8745 | { (exit 1); exit 1; }; } ;; |
| 8746 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8747 | else |
| 8748 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8750 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8751 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8753 | cat >conftest.$ac_ext <<_ACEOF |
| 8754 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8755 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8756 | $ac_includes_default |
| 8757 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8758 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8759 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8760 | #include <stdlib.h> |
| 8761 | #ifdef F77_DUMMY_MAIN |
| 8762 | # ifdef __cplusplus |
| 8763 | extern "C" |
| 8764 | # endif |
| 8765 | int F77_DUMMY_MAIN() { return 1; } |
| 8766 | #endif |
| 8767 | int |
| 8768 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8769 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | |
| 8771 | FILE *f = fopen ("conftest.val", "w"); |
| 8772 | if (! f) |
| 8773 | exit (1); |
| 8774 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8775 | { |
| 8776 | long i = longval (); |
| 8777 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8778 | exit (1); |
| 8779 | fprintf (f, "%ld\n", i); |
| 8780 | } |
| 8781 | else |
| 8782 | { |
| 8783 | unsigned long i = ulongval (); |
| 8784 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8785 | exit (1); |
| 8786 | fprintf (f, "%lu\n", i); |
| 8787 | } |
| 8788 | exit (ferror (f) || fclose (f) != 0); |
| 8789 | |
| 8790 | ; |
| 8791 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8792 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8793 | _ACEOF |
| 8794 | rm -f conftest$ac_exeext |
| 8795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8796 | (eval $ac_link) 2>&5 |
| 8797 | ac_status=$? |
| 8798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8799 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8801 | (eval $ac_try) 2>&5 |
| 8802 | ac_status=$? |
| 8803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8804 | (exit $ac_status); }; }; then |
| 8805 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8807 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8808 | echo "$as_me: failed program was:" >&5 |
| 8809 | cat conftest.$ac_ext >&5 |
| 8810 | ( exit $ac_status ) |
| 8811 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8812 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8813 | { (exit 1); exit 1; }; } |
| 8814 | fi |
| 8815 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8816 | fi |
| 8817 | fi |
| 8818 | rm -f conftest.val |
| 8819 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8820 | ac_cv_sizeof_uintptr_t=0 |
| 8821 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8822 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8824 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8825 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8826 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8827 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8828 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8829 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8830 | fi |
| 8831 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8832 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8833 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8834 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8835 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8837 | else |
| 8838 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8839 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8840 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8841 | cat >conftest.$ac_ext <<_ACEOF |
| 8842 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8843 | #include "confdefs.h" |
| 8844 | #include <stdio.h> |
| 8845 | #include <sys/types.h> |
| 8846 | main() |
| 8847 | { |
| 8848 | FILE *f=fopen("conftestval", "w"); |
| 8849 | if (!f) exit(1); |
| 8850 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8851 | exit(0); |
| 8852 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8853 | _ACEOF |
| 8854 | rm -f conftest$ac_exeext |
| 8855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8856 | (eval $ac_link) 2>&5 |
| 8857 | ac_status=$? |
| 8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8859 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8861 | (eval $ac_try) 2>&5 |
| 8862 | ac_status=$? |
| 8863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8864 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8865 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8867 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8868 | echo "$as_me: failed program was:" >&5 |
| 8869 | cat conftest.$ac_ext >&5 |
| 8870 | ( exit $ac_status ) |
| 8871 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8872 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | 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] | 8874 | fi |
| 8875 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8876 | fi |
| 8877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8879 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8880 | |
| 8881 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8882 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8884 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8887 | 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] | 8888 | if test "$have_long_long" = yes -a \ |
| 8889 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8890 | "$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] | 8891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | cat >>confdefs.h <<\_ACEOF |
| 8893 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8894 | _ACEOF |
| 8895 | |
| 8896 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8897 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8898 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 | echo "$as_me:$LINENO: result: no" >&5 |
| 8900 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8901 | fi |
| 8902 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8903 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8905 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8906 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8908 | else |
| 8909 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8910 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8912 | cat >conftest.$ac_ext <<_ACEOF |
| 8913 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8914 | #include "confdefs.h" |
| 8915 | #include <stdio.h> |
| 8916 | #include <time.h> |
| 8917 | main() |
| 8918 | { |
| 8919 | FILE *f=fopen("conftestval", "w"); |
| 8920 | if (!f) exit(1); |
| 8921 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8922 | exit(0); |
| 8923 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8924 | _ACEOF |
| 8925 | rm -f conftest$ac_exeext |
| 8926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8927 | (eval $ac_link) 2>&5 |
| 8928 | ac_status=$? |
| 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8932 | (eval $ac_try) 2>&5 |
| 8933 | ac_status=$? |
| 8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8935 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8936 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8938 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8939 | echo "$as_me: failed program was:" >&5 |
| 8940 | cat conftest.$ac_ext >&5 |
| 8941 | ( exit $ac_status ) |
| 8942 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8943 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | 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] | 8945 | fi |
| 8946 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8947 | fi |
| 8948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8949 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8950 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8951 | |
| 8952 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8953 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8954 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8955 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8956 | |
| 8957 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8958 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8959 | ac_save_cc="$CC" |
| 8960 | if test "$ac_cv_kpthread" = "yes" |
| 8961 | then CC="$CC -Kpthread" |
| 8962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8964 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8965 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8966 | cat >conftest.$ac_ext <<_ACEOF |
| 8967 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8968 | #include "confdefs.h" |
| 8969 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | #ifdef F77_DUMMY_MAIN |
| 8971 | # ifdef __cplusplus |
| 8972 | extern "C" |
| 8973 | # endif |
| 8974 | int F77_DUMMY_MAIN() { return 1; } |
| 8975 | #endif |
| 8976 | int |
| 8977 | main () |
| 8978 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8979 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8980 | ; |
| 8981 | return 0; |
| 8982 | } |
| 8983 | _ACEOF |
| 8984 | rm -f conftest.$ac_objext |
| 8985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8986 | (eval $ac_compile) 2>&5 |
| 8987 | ac_status=$? |
| 8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8989 | (exit $ac_status); } && |
| 8990 | { ac_try='test -s conftest.$ac_objext' |
| 8991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8992 | (eval $ac_try) 2>&5 |
| 8993 | ac_status=$? |
| 8994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8995 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8996 | have_pthread_t=yes |
| 8997 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8998 | echo "$as_me: failed program was:" >&5 |
| 8999 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9000 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9001 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9002 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9003 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9004 | if test "$have_pthread_t" = yes ; then |
| 9005 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9006 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9007 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9008 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9010 | else |
| 9011 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9012 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9014 | cat >conftest.$ac_ext <<_ACEOF |
| 9015 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9016 | #include "confdefs.h" |
| 9017 | #include <stdio.h> |
| 9018 | #include <pthread.h> |
| 9019 | main() |
| 9020 | { |
| 9021 | FILE *f=fopen("conftestval", "w"); |
| 9022 | if (!f) exit(1); |
| 9023 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9024 | exit(0); |
| 9025 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | _ACEOF |
| 9027 | rm -f conftest$ac_exeext |
| 9028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9029 | (eval $ac_link) 2>&5 |
| 9030 | ac_status=$? |
| 9031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9032 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9034 | (eval $ac_try) 2>&5 |
| 9035 | ac_status=$? |
| 9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9037 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9038 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9041 | echo "$as_me: failed program was:" >&5 |
| 9042 | cat conftest.$ac_ext >&5 |
| 9043 | ( exit $ac_status ) |
| 9044 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9045 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | 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] | 9047 | fi |
| 9048 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9049 | fi |
| 9050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9052 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9053 | |
| 9054 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9055 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9056 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9057 | |
| 9058 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9059 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9062 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9063 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9064 | if test "${enable_toolbox_glue+set}" = set; then |
| 9065 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9068 | |
| 9069 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9071 | case $ac_sys_system/$ac_sys_release in |
| 9072 | Darwin/*) |
| 9073 | enable_toolbox_glue="yes";; |
| 9074 | *) |
| 9075 | enable_toolbox_glue="no";; |
| 9076 | esac |
| 9077 | fi |
| 9078 | case "$enable_toolbox_glue" in |
| 9079 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9080 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9081 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9082 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9083 | |
| 9084 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9085 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9086 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9087 | |
| 9088 | ;; |
| 9089 | *) |
| 9090 | extra_frameworks="" |
| 9091 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9092 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9093 | ;; |
| 9094 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9096 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9097 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9098 | |
| 9099 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9100 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9101 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9102 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9103 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9104 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9105 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9106 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9107 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9108 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9109 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9110 | esac |
| 9111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9112 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9113 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9114 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9115 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 9116 | OPT="$OPT -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9117 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9118 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9119 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 | cat >>confdefs.h <<\_ACEOF |
| 9122 | #define WITH_NEXT_FRAMEWORK 1 |
| 9123 | _ACEOF |
| 9124 | |
| 9125 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9126 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9128 | echo "$as_me:$LINENO: result: no" >&5 |
| 9129 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9130 | fi |
| 9131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9133 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9134 | case $ac_sys_system/$ac_sys_release in |
| 9135 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9137 | cat >>confdefs.h <<\_ACEOF |
| 9138 | #define WITH_DYLD 1 |
| 9139 | _ACEOF |
| 9140 | |
| 9141 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9142 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9143 | ;; |
| 9144 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | echo "$as_me:$LINENO: result: no" >&5 |
| 9146 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9147 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9148 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9149 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9150 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9152 | |
| 9153 | |
| 9154 | |
| 9155 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9156 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9157 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9158 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9159 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9160 | if test -z "$SO" |
| 9161 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9162 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9163 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9164 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9165 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9166 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9168 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9169 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9170 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9171 | # -- "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] | 9172 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9173 | # 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] | 9174 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9175 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9176 | if test -z "$LDSHARED" |
| 9177 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9178 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9179 | AIX*) |
| 9180 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9181 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9182 | ;; |
| 9183 | BeOS*) |
| 9184 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9185 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9186 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9187 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9188 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9189 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9191 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9192 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9193 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9194 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9195 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9196 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9197 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9198 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9199 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9200 | if test "$enable_framework" ; then |
| 9201 | # Link against the framework. All externals should be defined. |
| 9202 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9203 | else |
| 9204 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9205 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9206 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9207 | Darwin/*) |
| 9208 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9209 | if test "$enable_framework" ; then |
| 9210 | # Link against the framework. All externals should be defined. |
| 9211 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9212 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9213 | # No framework, use the Python app as bundle-loader |
| 9214 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9215 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9216 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9217 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9218 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9219 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9220 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9221 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9222 | then |
| 9223 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9224 | else |
| 9225 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9226 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9227 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9228 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9229 | if test "$GCC" = "yes" |
| 9230 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9231 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9232 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9233 | SCO_SV*) LDSHARED="$(CC) -Wl,-G,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9234 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9235 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9236 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9237 | *) LDSHARED="ld";; |
| 9238 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9239 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9240 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9241 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9242 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9243 | # 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] | 9244 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9246 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9247 | if test -z "$CCSHARED" |
| 9248 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9249 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9250 | SunOS*) if test "$GCC" = yes; |
| 9251 | then CCSHARED="-fPIC"; |
| 9252 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9253 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9254 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9255 | else CCSHARED="+z"; |
| 9256 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9257 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9258 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9259 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9260 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9261 | if test "$GCC" = "yes" |
| 9262 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9263 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9264 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9265 | SCO_SV*) |
| 9266 | if test "$GCC" = "yes" |
| 9267 | then CCSHARED="-fPIC" |
| 9268 | else CCSHARED="-Kpic -belf" |
| 9269 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9270 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9271 | IRIX*/6*) case $CC in |
| 9272 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9273 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9274 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9275 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9276 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +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: $CCSHARED" >&5 |
| 9279 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9280 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9281 | # 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] | 9282 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9283 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9284 | if test -z "$LINKFORSHARED" |
| 9285 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9286 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9287 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9288 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9289 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9290 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9291 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9292 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9293 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9294 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9295 | # -u __dummy makes the linker aware of the objc runtime |
| 9296 | # in System.framework; otherwise, __objcInit (referenced in |
| 9297 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9298 | # loading of any modules which reference it in System.framework. |
| 9299 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9300 | # not used by the core itself but which needs to be in the core so |
| 9301 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9302 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9303 | if test "$enable_framework" |
| 9304 | then |
| 9305 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9306 | fi |
| 9307 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9308 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9309 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9310 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9311 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9312 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9313 | then |
| 9314 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9315 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9316 | SunOS/5*) case $CC in |
| 9317 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9318 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9319 | then |
| 9320 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9321 | fi;; |
| 9322 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9323 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9324 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9325 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9326 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9327 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9329 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9330 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9331 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9332 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9333 | case $ac_sys_system in |
| 9334 | CYGWIN*) |
| 9335 | # Cygwin needs CCSHARED when building extension DLLs |
| 9336 | # but not when building the interpreter DLL. |
| 9337 | CFLAGSFORSHARED='';; |
| 9338 | *) |
| 9339 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9340 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9341 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9343 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9344 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9345 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9346 | # library (with --enable-shared). |
| 9347 | # For platforms on which shared libraries are not allowed to have unresolved |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9348 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9349 | # if it is not required, since it creates a dependency of the shared library |
| 9350 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9351 | # don't need to link LIBS explicitly. The default should be only changed |
| 9352 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9353 | |
| 9354 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9355 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9356 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9357 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9358 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9359 | esac |
| 9360 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9361 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9362 | |
| 9363 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9364 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | |
| 9366 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9367 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9368 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9372 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9373 | cat >conftest.$ac_ext <<_ACEOF |
| 9374 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9375 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9376 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9377 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9378 | #ifdef __cplusplus |
| 9379 | extern "C" |
| 9380 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9381 | /* 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] | 9382 | builtin and then its argument prototype would still apply. */ |
| 9383 | char dlopen (); |
| 9384 | #ifdef F77_DUMMY_MAIN |
| 9385 | # ifdef __cplusplus |
| 9386 | extern "C" |
| 9387 | # endif |
| 9388 | int F77_DUMMY_MAIN() { return 1; } |
| 9389 | #endif |
| 9390 | int |
| 9391 | main () |
| 9392 | { |
| 9393 | dlopen (); |
| 9394 | ; |
| 9395 | return 0; |
| 9396 | } |
| 9397 | _ACEOF |
| 9398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9400 | (eval $ac_link) 2>&5 |
| 9401 | ac_status=$? |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9403 | (exit $ac_status); } && |
| 9404 | { ac_try='test -s conftest$ac_exeext' |
| 9405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9406 | (eval $ac_try) 2>&5 |
| 9407 | ac_status=$? |
| 9408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9409 | (exit $ac_status); }; }; then |
| 9410 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | echo "$as_me: failed program was:" >&5 |
| 9413 | cat conftest.$ac_ext >&5 |
| 9414 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9415 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9416 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9417 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9419 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9420 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9421 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9422 | cat >>confdefs.h <<_ACEOF |
| 9423 | #define HAVE_LIBDL 1 |
| 9424 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9425 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9426 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9427 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9428 | fi |
| 9429 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | |
| 9431 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9432 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9433 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9437 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | cat >conftest.$ac_ext <<_ACEOF |
| 9439 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9440 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9442 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9443 | #ifdef __cplusplus |
| 9444 | extern "C" |
| 9445 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9446 | /* 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] | 9447 | builtin and then its argument prototype would still apply. */ |
| 9448 | char shl_load (); |
| 9449 | #ifdef F77_DUMMY_MAIN |
| 9450 | # ifdef __cplusplus |
| 9451 | extern "C" |
| 9452 | # endif |
| 9453 | int F77_DUMMY_MAIN() { return 1; } |
| 9454 | #endif |
| 9455 | int |
| 9456 | main () |
| 9457 | { |
| 9458 | shl_load (); |
| 9459 | ; |
| 9460 | return 0; |
| 9461 | } |
| 9462 | _ACEOF |
| 9463 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9465 | (eval $ac_link) 2>&5 |
| 9466 | ac_status=$? |
| 9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9468 | (exit $ac_status); } && |
| 9469 | { ac_try='test -s conftest$ac_exeext' |
| 9470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9471 | (eval $ac_try) 2>&5 |
| 9472 | ac_status=$? |
| 9473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9474 | (exit $ac_status); }; }; then |
| 9475 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | echo "$as_me: failed program was:" >&5 |
| 9478 | cat conftest.$ac_ext >&5 |
| 9479 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9482 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9484 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9485 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9486 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9487 | cat >>confdefs.h <<_ACEOF |
| 9488 | #define HAVE_LIBDLD 1 |
| 9489 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9490 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9491 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9492 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9493 | fi |
| 9494 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9495 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9496 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9497 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9499 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9500 | ac_func_search_save_LIBS=$LIBS |
| 9501 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | cat >conftest.$ac_ext <<_ACEOF |
| 9503 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9504 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9506 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9507 | #ifdef __cplusplus |
| 9508 | extern "C" |
| 9509 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9510 | /* 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] | 9511 | builtin and then its argument prototype would still apply. */ |
| 9512 | char sem_init (); |
| 9513 | #ifdef F77_DUMMY_MAIN |
| 9514 | # ifdef __cplusplus |
| 9515 | extern "C" |
| 9516 | # endif |
| 9517 | int F77_DUMMY_MAIN() { return 1; } |
| 9518 | #endif |
| 9519 | int |
| 9520 | main () |
| 9521 | { |
| 9522 | sem_init (); |
| 9523 | ; |
| 9524 | return 0; |
| 9525 | } |
| 9526 | _ACEOF |
| 9527 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9529 | (eval $ac_link) 2>&5 |
| 9530 | ac_status=$? |
| 9531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9532 | (exit $ac_status); } && |
| 9533 | { ac_try='test -s conftest$ac_exeext' |
| 9534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9535 | (eval $ac_try) 2>&5 |
| 9536 | ac_status=$? |
| 9537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9538 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9539 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9541 | echo "$as_me: failed program was:" >&5 |
| 9542 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9544 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9545 | if test "$ac_cv_search_sem_init" = no; then |
| 9546 | for ac_lib in rt posix4; do |
| 9547 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9548 | cat >conftest.$ac_ext <<_ACEOF |
| 9549 | #line $LINENO "configure" |
| 9550 | #include "confdefs.h" |
| 9551 | |
| 9552 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9553 | #ifdef __cplusplus |
| 9554 | extern "C" |
| 9555 | #endif |
| 9556 | /* We use char because int might match the return type of a gcc2 |
| 9557 | builtin and then its argument prototype would still apply. */ |
| 9558 | char sem_init (); |
| 9559 | #ifdef F77_DUMMY_MAIN |
| 9560 | # ifdef __cplusplus |
| 9561 | extern "C" |
| 9562 | # endif |
| 9563 | int F77_DUMMY_MAIN() { return 1; } |
| 9564 | #endif |
| 9565 | int |
| 9566 | main () |
| 9567 | { |
| 9568 | sem_init (); |
| 9569 | ; |
| 9570 | return 0; |
| 9571 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9572 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9575 | (eval $ac_link) 2>&5 |
| 9576 | ac_status=$? |
| 9577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9578 | (exit $ac_status); } && |
| 9579 | { ac_try='test -s conftest$ac_exeext' |
| 9580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9581 | (eval $ac_try) 2>&5 |
| 9582 | ac_status=$? |
| 9583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9584 | (exit $ac_status); }; }; then |
| 9585 | ac_cv_search_sem_init="-l$ac_lib" |
| 9586 | break |
| 9587 | else |
| 9588 | echo "$as_me: failed program was:" >&5 |
| 9589 | cat conftest.$ac_ext >&5 |
| 9590 | fi |
| 9591 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9592 | done |
| 9593 | fi |
| 9594 | LIBS=$ac_func_search_save_LIBS |
| 9595 | fi |
| 9596 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9597 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9598 | if test "$ac_cv_search_sem_init" != no; then |
| 9599 | test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9600 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9601 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9602 | # 'Real Time' functions on Solaris, |
| 9603 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9604 | |
| 9605 | # checks for system dependent C++ extensions support |
| 9606 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9608 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9609 | cat >conftest.$ac_ext <<_ACEOF |
| 9610 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9611 | #include "confdefs.h" |
| 9612 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | #ifdef F77_DUMMY_MAIN |
| 9614 | # ifdef __cplusplus |
| 9615 | extern "C" |
| 9616 | # endif |
| 9617 | int F77_DUMMY_MAIN() { return 1; } |
| 9618 | #endif |
| 9619 | int |
| 9620 | main () |
| 9621 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9622 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9623 | ; |
| 9624 | return 0; |
| 9625 | } |
| 9626 | _ACEOF |
| 9627 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9629 | (eval $ac_link) 2>&5 |
| 9630 | ac_status=$? |
| 9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9632 | (exit $ac_status); } && |
| 9633 | { ac_try='test -s conftest$ac_exeext' |
| 9634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9635 | (eval $ac_try) 2>&5 |
| 9636 | ac_status=$? |
| 9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9638 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9640 | cat >>confdefs.h <<\_ACEOF |
| 9641 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9642 | _ACEOF |
| 9643 | |
| 9644 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9645 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | echo "$as_me: failed program was:" >&5 |
| 9648 | cat conftest.$ac_ext >&5 |
| 9649 | echo "$as_me:$LINENO: result: no" >&5 |
| 9650 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9651 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9652 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9653 | *) ;; |
| 9654 | esac |
| 9655 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9656 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9657 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9658 | # BeOS' sockets are stashed in libnet. |
| 9659 | case "$ac_sys_system" in |
| 9660 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9661 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9662 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9663 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9664 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9667 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9668 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9669 | cat >conftest.$ac_ext <<_ACEOF |
| 9670 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9671 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9673 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | #ifdef __cplusplus |
| 9675 | extern "C" |
| 9676 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9677 | /* 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] | 9678 | builtin and then its argument prototype would still apply. */ |
| 9679 | char t_open (); |
| 9680 | #ifdef F77_DUMMY_MAIN |
| 9681 | # ifdef __cplusplus |
| 9682 | extern "C" |
| 9683 | # endif |
| 9684 | int F77_DUMMY_MAIN() { return 1; } |
| 9685 | #endif |
| 9686 | int |
| 9687 | main () |
| 9688 | { |
| 9689 | t_open (); |
| 9690 | ; |
| 9691 | return 0; |
| 9692 | } |
| 9693 | _ACEOF |
| 9694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9696 | (eval $ac_link) 2>&5 |
| 9697 | ac_status=$? |
| 9698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9699 | (exit $ac_status); } && |
| 9700 | { ac_try='test -s conftest$ac_exeext' |
| 9701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9702 | (eval $ac_try) 2>&5 |
| 9703 | ac_status=$? |
| 9704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9705 | (exit $ac_status); }; }; then |
| 9706 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9708 | echo "$as_me: failed program was:" >&5 |
| 9709 | cat conftest.$ac_ext >&5 |
| 9710 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9713 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9714 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9716 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9717 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9718 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9719 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9720 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9722 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9723 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9726 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9727 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | cat >conftest.$ac_ext <<_ACEOF |
| 9729 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9730 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9732 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | #ifdef __cplusplus |
| 9734 | extern "C" |
| 9735 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9736 | /* 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] | 9737 | builtin and then its argument prototype would still apply. */ |
| 9738 | char socket (); |
| 9739 | #ifdef F77_DUMMY_MAIN |
| 9740 | # ifdef __cplusplus |
| 9741 | extern "C" |
| 9742 | # endif |
| 9743 | int F77_DUMMY_MAIN() { return 1; } |
| 9744 | #endif |
| 9745 | int |
| 9746 | main () |
| 9747 | { |
| 9748 | socket (); |
| 9749 | ; |
| 9750 | return 0; |
| 9751 | } |
| 9752 | _ACEOF |
| 9753 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9755 | (eval $ac_link) 2>&5 |
| 9756 | ac_status=$? |
| 9757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9758 | (exit $ac_status); } && |
| 9759 | { ac_try='test -s conftest$ac_exeext' |
| 9760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9761 | (eval $ac_try) 2>&5 |
| 9762 | ac_status=$? |
| 9763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9764 | (exit $ac_status); }; }; then |
| 9765 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9767 | echo "$as_me: failed program was:" >&5 |
| 9768 | cat conftest.$ac_ext >&5 |
| 9769 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9770 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9772 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9774 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9775 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9776 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9777 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9778 | fi |
| 9779 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9780 | ;; |
| 9781 | esac |
| 9782 | case "$ac_sys_system" in |
| 9783 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9785 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9786 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9790 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9791 | cat >conftest.$ac_ext <<_ACEOF |
| 9792 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9793 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9795 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | #ifdef __cplusplus |
| 9797 | extern "C" |
| 9798 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9799 | /* 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] | 9800 | builtin and then its argument prototype would still apply. */ |
| 9801 | char socket (); |
| 9802 | #ifdef F77_DUMMY_MAIN |
| 9803 | # ifdef __cplusplus |
| 9804 | extern "C" |
| 9805 | # endif |
| 9806 | int F77_DUMMY_MAIN() { return 1; } |
| 9807 | #endif |
| 9808 | int |
| 9809 | main () |
| 9810 | { |
| 9811 | socket (); |
| 9812 | ; |
| 9813 | return 0; |
| 9814 | } |
| 9815 | _ACEOF |
| 9816 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9818 | (eval $ac_link) 2>&5 |
| 9819 | ac_status=$? |
| 9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9821 | (exit $ac_status); } && |
| 9822 | { ac_try='test -s conftest$ac_exeext' |
| 9823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9824 | (eval $ac_try) 2>&5 |
| 9825 | ac_status=$? |
| 9826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9827 | (exit $ac_status); }; }; then |
| 9828 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | echo "$as_me: failed program was:" >&5 |
| 9831 | cat conftest.$ac_ext >&5 |
| 9832 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9835 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9838 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9839 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9840 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9841 | fi |
| 9842 | # BeOS |
| 9843 | ;; |
| 9844 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9846 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9847 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9848 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9849 | # Check whether --with-libs or --without-libs was given. |
| 9850 | if test "${with_libs+set}" = set; then |
| 9851 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | |
| 9853 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9854 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9855 | LIBS="$withval $LIBS" |
| 9856 | |
| 9857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 | echo "$as_me:$LINENO: result: no" >&5 |
| 9859 | echo "${ECHO_T}no" >&6 |
| 9860 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9861 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9862 | # Determine if signalmodule should be used. |
| 9863 | |
| 9864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9865 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9866 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9867 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9868 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9869 | if test "${with_signal_module+set}" = set; then |
| 9870 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9873 | |
| 9874 | if test -z "$with_signal_module" |
| 9875 | then with_signal_module="yes" |
| 9876 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9878 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9879 | |
| 9880 | if test "${with_signal_module}" = "yes"; then |
| 9881 | USE_SIGNAL_MODULE="" |
| 9882 | SIGNAL_OBJS="" |
| 9883 | else |
| 9884 | USE_SIGNAL_MODULE="#" |
| 9885 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9886 | fi |
| 9887 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9888 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9889 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9890 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9892 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9893 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9894 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9895 | |
| 9896 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9897 | if test "${with_dec_threads+set}" = set; then |
| 9898 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9899 | |
| 9900 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9901 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9902 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9903 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9904 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9905 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | echo "$as_me:$LINENO: result: no" >&5 |
| 9908 | echo "${ECHO_T}no" >&6 |
| 9909 | fi; |
| 9910 | |
| 9911 | # Templates for things AC_DEFINEd more than once. |
| 9912 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9913 | |
| 9914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | |
| 9916 | |
| 9917 | |
| 9918 | |
| 9919 | |
| 9920 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9921 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9922 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9923 | # Check whether --with-threads or --without-threads was given. |
| 9924 | if test "${with_threads+set}" = set; then |
| 9925 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9927 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9928 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9929 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9931 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9932 | if test "${with_thread+set}" = set; then |
| 9933 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | with_threads=$with_thread |
| 9936 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9937 | |
| 9938 | if test -z "$with_threads" |
| 9939 | then with_threads="yes" |
| 9940 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9941 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9942 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9943 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9944 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9945 | if test "$with_threads" = "no" |
| 9946 | then |
| 9947 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9948 | elif test "$ac_cv_pthread_is_default" = yes |
| 9949 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9950 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9951 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9953 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9954 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9955 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9956 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9957 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9958 | |
| 9959 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9960 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9961 | elif test "$ac_cv_kpthread" = "yes" |
| 9962 | then |
| 9963 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9965 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9966 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9967 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9968 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9969 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9970 | else |
| 9971 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9972 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9973 | fi |
| 9974 | if test ! -z "$withval" -a -d "$withval" |
| 9975 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9976 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9977 | |
| 9978 | # According to the POSIX spec, a pthreads implementation must |
| 9979 | # 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] | 9980 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9981 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9982 | cat >conftest.$ac_ext <<_ACEOF |
| 9983 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9984 | #include "confdefs.h" |
| 9985 | #include <unistd.h> |
| 9986 | #ifdef _POSIX_THREADS |
| 9987 | yes |
| 9988 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9989 | |
| 9990 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9992 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9993 | unistd_defines_pthreads=yes |
| 9994 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9995 | unistd_defines_pthreads=no |
| 9996 | fi |
| 9997 | rm -f conftest* |
| 9998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9999 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10000 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10002 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10003 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10004 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10006 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10007 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10008 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10009 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10011 | fi |
| 10012 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10013 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10015 | # Is the header compilable? |
| 10016 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10017 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10018 | cat >conftest.$ac_ext <<_ACEOF |
| 10019 | #line $LINENO "configure" |
| 10020 | #include "confdefs.h" |
| 10021 | $ac_includes_default |
| 10022 | #include <cthreads.h> |
| 10023 | _ACEOF |
| 10024 | rm -f conftest.$ac_objext |
| 10025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10026 | (eval $ac_compile) 2>&5 |
| 10027 | ac_status=$? |
| 10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10029 | (exit $ac_status); } && |
| 10030 | { ac_try='test -s conftest.$ac_objext' |
| 10031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10032 | (eval $ac_try) 2>&5 |
| 10033 | ac_status=$? |
| 10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10035 | (exit $ac_status); }; }; then |
| 10036 | ac_header_compiler=yes |
| 10037 | else |
| 10038 | echo "$as_me: failed program was:" >&5 |
| 10039 | cat conftest.$ac_ext >&5 |
| 10040 | ac_header_compiler=no |
| 10041 | fi |
| 10042 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10043 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10044 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10045 | |
| 10046 | # Is the header present? |
| 10047 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10048 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10049 | cat >conftest.$ac_ext <<_ACEOF |
| 10050 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10051 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10052 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10053 | _ACEOF |
| 10054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10056 | ac_status=$? |
| 10057 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10058 | rm -f conftest.er1 |
| 10059 | cat conftest.err >&5 |
| 10060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10061 | (exit $ac_status); } >/dev/null; then |
| 10062 | if test -s conftest.err; then |
| 10063 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10064 | else |
| 10065 | ac_cpp_err= |
| 10066 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10068 | ac_cpp_err=yes |
| 10069 | fi |
| 10070 | if test -z "$ac_cpp_err"; then |
| 10071 | ac_header_preproc=yes |
| 10072 | else |
| 10073 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10074 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10076 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10077 | rm -f conftest.err conftest.$ac_ext |
| 10078 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10079 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10080 | |
| 10081 | # So? What about this header? |
| 10082 | case $ac_header_compiler:$ac_header_preproc in |
| 10083 | yes:no ) |
| 10084 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10085 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10086 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10087 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10088 | no:yes ) |
| 10089 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10090 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10091 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10092 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10093 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10094 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10095 | esac |
| 10096 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10097 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10098 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10100 | else |
| 10101 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10104 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10105 | |
| 10106 | fi |
| 10107 | if test $ac_cv_header_cthreads_h = yes; then |
| 10108 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10109 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10110 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10112 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10113 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10114 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10116 | |
| 10117 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10118 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10120 | |
| 10121 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10122 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10123 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10126 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10127 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10128 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10130 | fi |
| 10131 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10132 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | # Is the header compilable? |
| 10135 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10136 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10137 | cat >conftest.$ac_ext <<_ACEOF |
| 10138 | #line $LINENO "configure" |
| 10139 | #include "confdefs.h" |
| 10140 | $ac_includes_default |
| 10141 | #include <mach/cthreads.h> |
| 10142 | _ACEOF |
| 10143 | rm -f conftest.$ac_objext |
| 10144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10145 | (eval $ac_compile) 2>&5 |
| 10146 | ac_status=$? |
| 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10148 | (exit $ac_status); } && |
| 10149 | { ac_try='test -s conftest.$ac_objext' |
| 10150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10151 | (eval $ac_try) 2>&5 |
| 10152 | ac_status=$? |
| 10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10154 | (exit $ac_status); }; }; then |
| 10155 | ac_header_compiler=yes |
| 10156 | else |
| 10157 | echo "$as_me: failed program was:" >&5 |
| 10158 | cat conftest.$ac_ext >&5 |
| 10159 | ac_header_compiler=no |
| 10160 | fi |
| 10161 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10162 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10163 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10164 | |
| 10165 | # Is the header present? |
| 10166 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10167 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10168 | cat >conftest.$ac_ext <<_ACEOF |
| 10169 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10170 | #include "confdefs.h" |
| 10171 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | _ACEOF |
| 10173 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10174 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10175 | ac_status=$? |
| 10176 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10177 | rm -f conftest.er1 |
| 10178 | cat conftest.err >&5 |
| 10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10180 | (exit $ac_status); } >/dev/null; then |
| 10181 | if test -s conftest.err; then |
| 10182 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10183 | else |
| 10184 | ac_cpp_err= |
| 10185 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10187 | ac_cpp_err=yes |
| 10188 | fi |
| 10189 | if test -z "$ac_cpp_err"; then |
| 10190 | ac_header_preproc=yes |
| 10191 | else |
| 10192 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10193 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10195 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | rm -f conftest.err conftest.$ac_ext |
| 10197 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10198 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10199 | |
| 10200 | # So? What about this header? |
| 10201 | case $ac_header_compiler:$ac_header_preproc in |
| 10202 | yes:no ) |
| 10203 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10204 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10205 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10206 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10207 | no:yes ) |
| 10208 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10209 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10210 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10211 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10212 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10213 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10214 | esac |
| 10215 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10216 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10217 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10219 | else |
| 10220 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10223 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10224 | |
| 10225 | fi |
| 10226 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10227 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10228 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10231 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10232 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10233 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10235 | |
| 10236 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10237 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10239 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10240 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10241 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10243 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10244 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10245 | |
| 10246 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10247 | if test "${with_pth+set}" = set; then |
| 10248 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10251 | echo "${ECHO_T}$withval" >&6 |
| 10252 | cat >>confdefs.h <<\_ACEOF |
| 10253 | #define WITH_THREAD 1 |
| 10254 | _ACEOF |
| 10255 | |
| 10256 | |
| 10257 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10258 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10260 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10261 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10262 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10263 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | |
| 10265 | echo "$as_me:$LINENO: result: no" >&5 |
| 10266 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10267 | |
| 10268 | # Just looking for pthread_create in libpthread is not enough: |
| 10269 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10270 | # So we really have to include pthread.h, and then link. |
| 10271 | _libs=$LIBS |
| 10272 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10274 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10275 | cat >conftest.$ac_ext <<_ACEOF |
| 10276 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10277 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10278 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10279 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10280 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10281 | #ifdef F77_DUMMY_MAIN |
| 10282 | # ifdef __cplusplus |
| 10283 | extern "C" |
| 10284 | # endif |
| 10285 | int F77_DUMMY_MAIN() { return 1; } |
| 10286 | #endif |
| 10287 | int |
| 10288 | main () |
| 10289 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10290 | |
| 10291 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | ; |
| 10293 | return 0; |
| 10294 | } |
| 10295 | _ACEOF |
| 10296 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10298 | (eval $ac_link) 2>&5 |
| 10299 | ac_status=$? |
| 10300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10301 | (exit $ac_status); } && |
| 10302 | { ac_try='test -s conftest$ac_exeext' |
| 10303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10304 | (eval $ac_try) 2>&5 |
| 10305 | ac_status=$? |
| 10306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10307 | (exit $ac_status); }; }; then |
| 10308 | |
| 10309 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10310 | echo "${ECHO_T}yes" >&6 |
| 10311 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10312 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10313 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10314 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10315 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10316 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | echo "$as_me: failed program was:" >&5 |
| 10319 | cat conftest.$ac_ext >&5 |
| 10320 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10321 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10323 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10324 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10326 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | cat >conftest.$ac_ext <<_ACEOF |
| 10328 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10329 | #include "confdefs.h" |
| 10330 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10332 | #include <assert.h> |
| 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 | ad678af | 1998-10-02 14:42:15 +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_detach (); |
| 10340 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | #ifdef F77_DUMMY_MAIN |
| 10343 | # ifdef __cplusplus |
| 10344 | extern "C" |
| 10345 | # endif |
| 10346 | int F77_DUMMY_MAIN() { return 1; } |
| 10347 | #endif |
| 10348 | int |
| 10349 | main () |
| 10350 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10351 | /* The GNU C library defines this for functions which it implements |
| 10352 | to always fail with ENOSYS. Some functions are actually named |
| 10353 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10354 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10355 | choke me |
| 10356 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10358 | #endif |
| 10359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | ; |
| 10361 | return 0; |
| 10362 | } |
| 10363 | _ACEOF |
| 10364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10366 | (eval $ac_link) 2>&5 |
| 10367 | ac_status=$? |
| 10368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10369 | (exit $ac_status); } && |
| 10370 | { ac_try='test -s conftest$ac_exeext' |
| 10371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10372 | (eval $ac_try) 2>&5 |
| 10373 | ac_status=$? |
| 10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10375 | (exit $ac_status); }; }; then |
| 10376 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | echo "$as_me: failed program was:" >&5 |
| 10379 | cat conftest.$ac_ext >&5 |
| 10380 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10381 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10382 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10383 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10385 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10386 | if test $ac_cv_func_pthread_detach = yes; then |
| 10387 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10388 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10390 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10391 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10392 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10393 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10394 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10395 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10396 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10397 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10398 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10400 | fi |
| 10401 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10402 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10403 | else |
| 10404 | # Is the header compilable? |
| 10405 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10406 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10407 | cat >conftest.$ac_ext <<_ACEOF |
| 10408 | #line $LINENO "configure" |
| 10409 | #include "confdefs.h" |
| 10410 | $ac_includes_default |
| 10411 | #include <atheos/threads.h> |
| 10412 | _ACEOF |
| 10413 | rm -f conftest.$ac_objext |
| 10414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10415 | (eval $ac_compile) 2>&5 |
| 10416 | ac_status=$? |
| 10417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10418 | (exit $ac_status); } && |
| 10419 | { ac_try='test -s conftest.$ac_objext' |
| 10420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10421 | (eval $ac_try) 2>&5 |
| 10422 | ac_status=$? |
| 10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10424 | (exit $ac_status); }; }; then |
| 10425 | ac_header_compiler=yes |
| 10426 | else |
| 10427 | echo "$as_me: failed program was:" >&5 |
| 10428 | cat conftest.$ac_ext >&5 |
| 10429 | ac_header_compiler=no |
| 10430 | fi |
| 10431 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10432 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10433 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10434 | |
| 10435 | # Is the header present? |
| 10436 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10437 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10438 | cat >conftest.$ac_ext <<_ACEOF |
| 10439 | #line $LINENO "configure" |
| 10440 | #include "confdefs.h" |
| 10441 | #include <atheos/threads.h> |
| 10442 | _ACEOF |
| 10443 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10444 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10445 | ac_status=$? |
| 10446 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10447 | rm -f conftest.er1 |
| 10448 | cat conftest.err >&5 |
| 10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10450 | (exit $ac_status); } >/dev/null; then |
| 10451 | if test -s conftest.err; then |
| 10452 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10453 | else |
| 10454 | ac_cpp_err= |
| 10455 | fi |
| 10456 | else |
| 10457 | ac_cpp_err=yes |
| 10458 | fi |
| 10459 | if test -z "$ac_cpp_err"; then |
| 10460 | ac_header_preproc=yes |
| 10461 | else |
| 10462 | echo "$as_me: failed program was:" >&5 |
| 10463 | cat conftest.$ac_ext >&5 |
| 10464 | ac_header_preproc=no |
| 10465 | fi |
| 10466 | rm -f conftest.err conftest.$ac_ext |
| 10467 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10468 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10469 | |
| 10470 | # So? What about this header? |
| 10471 | case $ac_header_compiler:$ac_header_preproc in |
| 10472 | yes:no ) |
| 10473 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10474 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10475 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10476 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10477 | no:yes ) |
| 10478 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10479 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10480 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10481 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10482 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10483 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10484 | esac |
| 10485 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10486 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10487 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10489 | else |
| 10490 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10491 | fi |
| 10492 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10493 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10494 | |
| 10495 | fi |
| 10496 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10497 | cat >>confdefs.h <<\_ACEOF |
| 10498 | #define WITH_THREAD 1 |
| 10499 | _ACEOF |
| 10500 | |
| 10501 | |
| 10502 | cat >>confdefs.h <<\_ACEOF |
| 10503 | #define ATHEOS_THREADS 1 |
| 10504 | _ACEOF |
| 10505 | |
| 10506 | THREADOBJ="Python/thread.o" |
| 10507 | else |
| 10508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10509 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10510 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10511 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10512 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10514 | fi |
| 10515 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10516 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10517 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10518 | # Is the header compilable? |
| 10519 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10520 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10521 | cat >conftest.$ac_ext <<_ACEOF |
| 10522 | #line $LINENO "configure" |
| 10523 | #include "confdefs.h" |
| 10524 | $ac_includes_default |
| 10525 | #include <kernel/OS.h> |
| 10526 | _ACEOF |
| 10527 | rm -f conftest.$ac_objext |
| 10528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10529 | (eval $ac_compile) 2>&5 |
| 10530 | ac_status=$? |
| 10531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10532 | (exit $ac_status); } && |
| 10533 | { ac_try='test -s conftest.$ac_objext' |
| 10534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10535 | (eval $ac_try) 2>&5 |
| 10536 | ac_status=$? |
| 10537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10538 | (exit $ac_status); }; }; then |
| 10539 | ac_header_compiler=yes |
| 10540 | else |
| 10541 | echo "$as_me: failed program was:" >&5 |
| 10542 | cat conftest.$ac_ext >&5 |
| 10543 | ac_header_compiler=no |
| 10544 | fi |
| 10545 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10546 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10547 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10548 | |
| 10549 | # Is the header present? |
| 10550 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10551 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10552 | cat >conftest.$ac_ext <<_ACEOF |
| 10553 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10554 | #include "confdefs.h" |
| 10555 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10556 | _ACEOF |
| 10557 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10558 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10559 | ac_status=$? |
| 10560 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10561 | rm -f conftest.er1 |
| 10562 | cat conftest.err >&5 |
| 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10564 | (exit $ac_status); } >/dev/null; then |
| 10565 | if test -s conftest.err; then |
| 10566 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10567 | else |
| 10568 | ac_cpp_err= |
| 10569 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10571 | ac_cpp_err=yes |
| 10572 | fi |
| 10573 | if test -z "$ac_cpp_err"; then |
| 10574 | ac_header_preproc=yes |
| 10575 | else |
| 10576 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10577 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10578 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10579 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10580 | rm -f conftest.err conftest.$ac_ext |
| 10581 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10582 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 | # So? What about this header? |
| 10585 | case $ac_header_compiler:$ac_header_preproc in |
| 10586 | yes:no ) |
| 10587 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10588 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10589 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10590 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10591 | no:yes ) |
| 10592 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10593 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10594 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10595 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10596 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10597 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10598 | esac |
| 10599 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10600 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10601 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10603 | else |
| 10604 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10605 | fi |
| 10606 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10607 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10608 | |
| 10609 | fi |
| 10610 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10611 | cat >>confdefs.h <<\_ACEOF |
| 10612 | #define WITH_THREAD 1 |
| 10613 | _ACEOF |
| 10614 | |
| 10615 | |
| 10616 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10617 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10618 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10619 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10620 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10621 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10623 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10624 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10625 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10628 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10629 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | cat >conftest.$ac_ext <<_ACEOF |
| 10631 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10632 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10634 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | #ifdef __cplusplus |
| 10636 | extern "C" |
| 10637 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10638 | /* 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] | 10639 | builtin and then its argument prototype would still apply. */ |
| 10640 | char pthread_create (); |
| 10641 | #ifdef F77_DUMMY_MAIN |
| 10642 | # ifdef __cplusplus |
| 10643 | extern "C" |
| 10644 | # endif |
| 10645 | int F77_DUMMY_MAIN() { return 1; } |
| 10646 | #endif |
| 10647 | int |
| 10648 | main () |
| 10649 | { |
| 10650 | pthread_create (); |
| 10651 | ; |
| 10652 | return 0; |
| 10653 | } |
| 10654 | _ACEOF |
| 10655 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10657 | (eval $ac_link) 2>&5 |
| 10658 | ac_status=$? |
| 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10660 | (exit $ac_status); } && |
| 10661 | { ac_try='test -s conftest$ac_exeext' |
| 10662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10663 | (eval $ac_try) 2>&5 |
| 10664 | ac_status=$? |
| 10665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10666 | (exit $ac_status); }; }; then |
| 10667 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10669 | echo "$as_me: failed program was:" >&5 |
| 10670 | cat conftest.$ac_ext >&5 |
| 10671 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10674 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10675 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10676 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10677 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10678 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10679 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10680 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10681 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10682 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10683 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10684 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10685 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10686 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10689 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10690 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10694 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10695 | cat >conftest.$ac_ext <<_ACEOF |
| 10696 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10697 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10698 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10699 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | #ifdef __cplusplus |
| 10701 | extern "C" |
| 10702 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10703 | /* 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] | 10704 | builtin and then its argument prototype would still apply. */ |
| 10705 | char pthread_create (); |
| 10706 | #ifdef F77_DUMMY_MAIN |
| 10707 | # ifdef __cplusplus |
| 10708 | extern "C" |
| 10709 | # endif |
| 10710 | int F77_DUMMY_MAIN() { return 1; } |
| 10711 | #endif |
| 10712 | int |
| 10713 | main () |
| 10714 | { |
| 10715 | pthread_create (); |
| 10716 | ; |
| 10717 | return 0; |
| 10718 | } |
| 10719 | _ACEOF |
| 10720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10722 | (eval $ac_link) 2>&5 |
| 10723 | ac_status=$? |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10725 | (exit $ac_status); } && |
| 10726 | { ac_try='test -s conftest$ac_exeext' |
| 10727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10728 | (eval $ac_try) 2>&5 |
| 10729 | ac_status=$? |
| 10730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10731 | (exit $ac_status); }; }; then |
| 10732 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10734 | echo "$as_me: failed program was:" >&5 |
| 10735 | cat conftest.$ac_ext >&5 |
| 10736 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10737 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10738 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10739 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10740 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10742 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10743 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10744 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10745 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10747 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10748 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10749 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10750 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10751 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10753 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10754 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10755 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10758 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10759 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | cat >conftest.$ac_ext <<_ACEOF |
| 10761 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10762 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10763 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10764 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10765 | #ifdef __cplusplus |
| 10766 | extern "C" |
| 10767 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10768 | /* 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] | 10769 | builtin and then its argument prototype would still apply. */ |
| 10770 | char __d6_pthread_create (); |
| 10771 | #ifdef F77_DUMMY_MAIN |
| 10772 | # ifdef __cplusplus |
| 10773 | extern "C" |
| 10774 | # endif |
| 10775 | int F77_DUMMY_MAIN() { return 1; } |
| 10776 | #endif |
| 10777 | int |
| 10778 | main () |
| 10779 | { |
| 10780 | __d6_pthread_create (); |
| 10781 | ; |
| 10782 | return 0; |
| 10783 | } |
| 10784 | _ACEOF |
| 10785 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10787 | (eval $ac_link) 2>&5 |
| 10788 | ac_status=$? |
| 10789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10790 | (exit $ac_status); } && |
| 10791 | { ac_try='test -s conftest$ac_exeext' |
| 10792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10793 | (eval $ac_try) 2>&5 |
| 10794 | ac_status=$? |
| 10795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10796 | (exit $ac_status); }; }; then |
| 10797 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10799 | echo "$as_me: failed program was:" >&5 |
| 10800 | cat conftest.$ac_ext >&5 |
| 10801 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10802 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10803 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10804 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10806 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10807 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10808 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10809 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10810 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10811 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10812 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10813 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10814 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10815 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10816 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10818 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10819 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10820 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10823 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10824 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10825 | cat >conftest.$ac_ext <<_ACEOF |
| 10826 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10827 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10828 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10829 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10830 | #ifdef __cplusplus |
| 10831 | extern "C" |
| 10832 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10833 | /* 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] | 10834 | builtin and then its argument prototype would still apply. */ |
| 10835 | char __pthread_create_system (); |
| 10836 | #ifdef F77_DUMMY_MAIN |
| 10837 | # ifdef __cplusplus |
| 10838 | extern "C" |
| 10839 | # endif |
| 10840 | int F77_DUMMY_MAIN() { return 1; } |
| 10841 | #endif |
| 10842 | int |
| 10843 | main () |
| 10844 | { |
| 10845 | __pthread_create_system (); |
| 10846 | ; |
| 10847 | return 0; |
| 10848 | } |
| 10849 | _ACEOF |
| 10850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10852 | (eval $ac_link) 2>&5 |
| 10853 | ac_status=$? |
| 10854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10855 | (exit $ac_status); } && |
| 10856 | { ac_try='test -s conftest$ac_exeext' |
| 10857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10858 | (eval $ac_try) 2>&5 |
| 10859 | ac_status=$? |
| 10860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10861 | (exit $ac_status); }; }; then |
| 10862 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10863 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 | echo "$as_me: failed program was:" >&5 |
| 10865 | cat conftest.$ac_ext >&5 |
| 10866 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10867 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10868 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10869 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10870 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10871 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10872 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10873 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10874 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10875 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10877 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10878 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10879 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10880 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10881 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10884 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10885 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10887 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10888 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10889 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | cat >conftest.$ac_ext <<_ACEOF |
| 10891 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10892 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10893 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10894 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10895 | #ifdef __cplusplus |
| 10896 | extern "C" |
| 10897 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10898 | /* 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] | 10899 | builtin and then its argument prototype would still apply. */ |
| 10900 | char pthread_create (); |
| 10901 | #ifdef F77_DUMMY_MAIN |
| 10902 | # ifdef __cplusplus |
| 10903 | extern "C" |
| 10904 | # endif |
| 10905 | int F77_DUMMY_MAIN() { return 1; } |
| 10906 | #endif |
| 10907 | int |
| 10908 | main () |
| 10909 | { |
| 10910 | pthread_create (); |
| 10911 | ; |
| 10912 | return 0; |
| 10913 | } |
| 10914 | _ACEOF |
| 10915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10917 | (eval $ac_link) 2>&5 |
| 10918 | ac_status=$? |
| 10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10920 | (exit $ac_status); } && |
| 10921 | { ac_try='test -s conftest$ac_exeext' |
| 10922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10923 | (eval $ac_try) 2>&5 |
| 10924 | ac_status=$? |
| 10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10926 | (exit $ac_status); }; }; then |
| 10927 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | echo "$as_me: failed program was:" >&5 |
| 10930 | cat conftest.$ac_ext >&5 |
| 10931 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10932 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10933 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10934 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10936 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10937 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10938 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10939 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10940 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10941 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10942 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10943 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10944 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10945 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10946 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10947 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10948 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10949 | fi |
| 10950 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10951 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10952 | fi |
| 10953 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10954 | fi |
| 10955 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10956 | fi |
| 10957 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10958 | fi |
| 10959 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10960 | fi |
| 10961 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10962 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10963 | fi |
| 10964 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10965 | |
| 10966 | fi |
| 10967 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10969 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10970 | fi; |
| 10971 | fi |
| 10972 | |
| 10973 | |
| 10974 | fi |
| 10975 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10976 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10977 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10978 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10979 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | |
| 10981 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10982 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10984 | |
| 10985 | fi |
| 10986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10987 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10988 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10989 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10991 | else |
| 10992 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10993 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10995 | cat >conftest.$ac_ext <<_ACEOF |
| 10996 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10997 | #include "confdefs.h" |
| 10998 | #include <pthread.h> |
| 10999 | void *foo(void *parm) { |
| 11000 | return NULL; |
| 11001 | } |
| 11002 | main() { |
| 11003 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11004 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11005 | if (pthread_attr_init(&attr)) exit(-1); |
| 11006 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11007 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11008 | exit(0); |
| 11009 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11010 | _ACEOF |
| 11011 | rm -f conftest$ac_exeext |
| 11012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11013 | (eval $ac_link) 2>&5 |
| 11014 | ac_status=$? |
| 11015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11016 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11018 | (eval $ac_try) 2>&5 |
| 11019 | ac_status=$? |
| 11020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11021 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11022 | ac_cv_pthread_system_supported=yes |
| 11023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11024 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11025 | echo "$as_me: failed program was:" >&5 |
| 11026 | cat conftest.$ac_ext >&5 |
| 11027 | ( exit $ac_status ) |
| 11028 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11030 | 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] | 11031 | fi |
| 11032 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11033 | fi |
| 11034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11035 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11036 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11037 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | |
| 11039 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11040 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11042 | |
| 11043 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11044 | |
| 11045 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11046 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11048 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11050 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11053 | cat >conftest.$ac_ext <<_ACEOF |
| 11054 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11055 | #include "confdefs.h" |
| 11056 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11057 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11058 | #include <assert.h> |
| 11059 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11060 | #ifdef __cplusplus |
| 11061 | extern "C" |
| 11062 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11063 | /* 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] | 11064 | builtin and then its argument prototype would still apply. */ |
| 11065 | char $ac_func (); |
| 11066 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11068 | #ifdef F77_DUMMY_MAIN |
| 11069 | # ifdef __cplusplus |
| 11070 | extern "C" |
| 11071 | # endif |
| 11072 | int F77_DUMMY_MAIN() { return 1; } |
| 11073 | #endif |
| 11074 | int |
| 11075 | main () |
| 11076 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11077 | /* The GNU C library defines this for functions which it implements |
| 11078 | to always fail with ENOSYS. Some functions are actually named |
| 11079 | something starting with __ and the normal name is an alias. */ |
| 11080 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11081 | choke me |
| 11082 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11083 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11084 | #endif |
| 11085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 | ; |
| 11087 | return 0; |
| 11088 | } |
| 11089 | _ACEOF |
| 11090 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11092 | (eval $ac_link) 2>&5 |
| 11093 | ac_status=$? |
| 11094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11095 | (exit $ac_status); } && |
| 11096 | { ac_try='test -s conftest$ac_exeext' |
| 11097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11098 | (eval $ac_try) 2>&5 |
| 11099 | ac_status=$? |
| 11100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11101 | (exit $ac_status); }; }; then |
| 11102 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | echo "$as_me: failed program was:" >&5 |
| 11105 | cat conftest.$ac_ext >&5 |
| 11106 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11107 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11108 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11109 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11111 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11112 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11113 | cat >>confdefs.h <<_ACEOF |
| 11114 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11115 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11116 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11117 | fi |
| 11118 | done |
| 11119 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11120 | fi |
| 11121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11123 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11124 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11128 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11129 | cat >conftest.$ac_ext <<_ACEOF |
| 11130 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11131 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11133 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | #ifdef __cplusplus |
| 11135 | extern "C" |
| 11136 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11137 | /* 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] | 11138 | builtin and then its argument prototype would still apply. */ |
| 11139 | char usconfig (); |
| 11140 | #ifdef F77_DUMMY_MAIN |
| 11141 | # ifdef __cplusplus |
| 11142 | extern "C" |
| 11143 | # endif |
| 11144 | int F77_DUMMY_MAIN() { return 1; } |
| 11145 | #endif |
| 11146 | int |
| 11147 | main () |
| 11148 | { |
| 11149 | usconfig (); |
| 11150 | ; |
| 11151 | return 0; |
| 11152 | } |
| 11153 | _ACEOF |
| 11154 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11156 | (eval $ac_link) 2>&5 |
| 11157 | ac_status=$? |
| 11158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11159 | (exit $ac_status); } && |
| 11160 | { ac_try='test -s conftest$ac_exeext' |
| 11161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11162 | (eval $ac_try) 2>&5 |
| 11163 | ac_status=$? |
| 11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11165 | (exit $ac_status); }; }; then |
| 11166 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | echo "$as_me: failed program was:" >&5 |
| 11169 | cat conftest.$ac_ext >&5 |
| 11170 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11171 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11173 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11175 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11176 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11177 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11178 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11179 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11181 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11182 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11183 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11184 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11185 | fi |
| 11186 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | if test $posix_threads != "yes"; then |
| 11189 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11190 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11191 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11195 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11196 | cat >conftest.$ac_ext <<_ACEOF |
| 11197 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11198 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11200 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | #ifdef __cplusplus |
| 11202 | extern "C" |
| 11203 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11204 | /* 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] | 11205 | builtin and then its argument prototype would still apply. */ |
| 11206 | char thr_create (); |
| 11207 | #ifdef F77_DUMMY_MAIN |
| 11208 | # ifdef __cplusplus |
| 11209 | extern "C" |
| 11210 | # endif |
| 11211 | int F77_DUMMY_MAIN() { return 1; } |
| 11212 | #endif |
| 11213 | int |
| 11214 | main () |
| 11215 | { |
| 11216 | thr_create (); |
| 11217 | ; |
| 11218 | return 0; |
| 11219 | } |
| 11220 | _ACEOF |
| 11221 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11223 | (eval $ac_link) 2>&5 |
| 11224 | ac_status=$? |
| 11225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11226 | (exit $ac_status); } && |
| 11227 | { ac_try='test -s conftest$ac_exeext' |
| 11228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11229 | (eval $ac_try) 2>&5 |
| 11230 | ac_status=$? |
| 11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11232 | (exit $ac_status); }; }; then |
| 11233 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11235 | echo "$as_me: failed program was:" >&5 |
| 11236 | cat conftest.$ac_ext >&5 |
| 11237 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11238 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11239 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11240 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11243 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11244 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11245 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11246 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11248 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11249 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11250 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11251 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11252 | fi |
| 11253 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11254 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11255 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11256 | if test "$USE_THREAD_MODULE" != "#" |
| 11257 | then |
| 11258 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11259 | # needs this '-threads' argument during linking. |
| 11260 | case $ac_sys_system in |
| 11261 | OSF1) LDLAST=-threads;; |
| 11262 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11263 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11264 | |
| 11265 | if test "$posix_threads" = yes -a \ |
| 11266 | "$ac_sys_system" = "SunOS" -a \ |
| 11267 | "$ac_sys_release" = "5.6"; then |
| 11268 | |
| 11269 | cat >>confdefs.h <<\_ACEOF |
| 11270 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11271 | _ACEOF |
| 11272 | |
| 11273 | fi |
| 11274 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11275 | fi |
| 11276 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11277 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11278 | |
| 11279 | |
| 11280 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11281 | 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] | 11282 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11283 | if test "${enable_ipv6+set}" = set; then |
| 11284 | enableval="$enable_ipv6" |
| 11285 | case "$enableval" in |
| 11286 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11287 | echo "$as_me:$LINENO: result: no" >&5 |
| 11288 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11289 | ipv6=no |
| 11290 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11291 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11292 | echo "${ECHO_T}yes" >&6 |
| 11293 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11294 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11296 | |
| 11297 | ipv6=yes |
| 11298 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11302 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | echo "$as_me:$LINENO: result: no" >&5 |
| 11304 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11305 | ipv6=no |
| 11306 | |
| 11307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11308 | cat >conftest.$ac_ext <<_ACEOF |
| 11309 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11310 | #include "confdefs.h" |
| 11311 | /* AF_INET6 available check */ |
| 11312 | #include <sys/types.h> |
| 11313 | #include <sys/socket.h> |
| 11314 | main() |
| 11315 | { |
| 11316 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11317 | exit(1); |
| 11318 | else |
| 11319 | exit(0); |
| 11320 | } |
| 11321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | _ACEOF |
| 11323 | rm -f conftest$ac_exeext |
| 11324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11325 | (eval $ac_link) 2>&5 |
| 11326 | ac_status=$? |
| 11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11330 | (eval $ac_try) 2>&5 |
| 11331 | ac_status=$? |
| 11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11333 | (exit $ac_status); }; }; then |
| 11334 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11335 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11336 | ipv6=yes |
| 11337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11338 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11339 | echo "$as_me: failed program was:" >&5 |
| 11340 | cat conftest.$ac_ext >&5 |
| 11341 | ( exit $ac_status ) |
| 11342 | echo "$as_me:$LINENO: result: no" >&5 |
| 11343 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11344 | ipv6=no |
| 11345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11346 | 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] | 11347 | fi |
| 11348 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11349 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11350 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11351 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11352 | cat >conftest.$ac_ext <<_ACEOF |
| 11353 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11354 | #include "confdefs.h" |
| 11355 | #include <sys/types.h> |
| 11356 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | #ifdef F77_DUMMY_MAIN |
| 11358 | # ifdef __cplusplus |
| 11359 | extern "C" |
| 11360 | # endif |
| 11361 | int F77_DUMMY_MAIN() { return 1; } |
| 11362 | #endif |
| 11363 | int |
| 11364 | main () |
| 11365 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11366 | struct sockaddr_in6 x; |
| 11367 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11368 | ; |
| 11369 | return 0; |
| 11370 | } |
| 11371 | _ACEOF |
| 11372 | rm -f conftest.$ac_objext |
| 11373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11374 | (eval $ac_compile) 2>&5 |
| 11375 | ac_status=$? |
| 11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11377 | (exit $ac_status); } && |
| 11378 | { ac_try='test -s conftest.$ac_objext' |
| 11379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11380 | (eval $ac_try) 2>&5 |
| 11381 | ac_status=$? |
| 11382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11383 | (exit $ac_status); }; }; then |
| 11384 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11385 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11386 | ipv6=yes |
| 11387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | echo "$as_me: failed program was:" >&5 |
| 11389 | cat conftest.$ac_ext >&5 |
| 11390 | echo "$as_me:$LINENO: result: no" >&5 |
| 11391 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11392 | ipv6=no |
| 11393 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11395 | fi |
| 11396 | |
| 11397 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11398 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11399 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11400 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11401 | |
| 11402 | fi |
| 11403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11404 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11405 | |
| 11406 | ipv6type=unknown |
| 11407 | ipv6lib=none |
| 11408 | ipv6trylibc=no |
| 11409 | |
| 11410 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11412 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11413 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11414 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11415 | case $i in |
| 11416 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | cat >conftest.$ac_ext <<_ACEOF |
| 11418 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11419 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11420 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11421 | #include <netinet/in.h> |
| 11422 | #ifdef IPV6_INRIA_VERSION |
| 11423 | yes |
| 11424 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11427 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11428 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11429 | fi |
| 11430 | rm -f conftest* |
| 11431 | |
| 11432 | ;; |
| 11433 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11434 | cat >conftest.$ac_ext <<_ACEOF |
| 11435 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11436 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11437 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11438 | #include <netinet/in.h> |
| 11439 | #ifdef __KAME__ |
| 11440 | yes |
| 11441 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11442 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11444 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11445 | ipv6type=$i; |
| 11446 | ipv6lib=inet6 |
| 11447 | ipv6libdir=/usr/local/v6/lib |
| 11448 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11449 | fi |
| 11450 | rm -f conftest* |
| 11451 | |
| 11452 | ;; |
| 11453 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | cat >conftest.$ac_ext <<_ACEOF |
| 11455 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11456 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11457 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11458 | #include <features.h> |
| 11459 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11460 | yes |
| 11461 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11462 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11464 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11465 | ipv6type=$i; |
| 11466 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11467 | fi |
| 11468 | rm -f conftest* |
| 11469 | |
| 11470 | ;; |
| 11471 | linux-inet6) |
| 11472 | if test -d /usr/inet6; then |
| 11473 | ipv6type=$i |
| 11474 | ipv6lib=inet6 |
| 11475 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11476 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11477 | fi |
| 11478 | ;; |
| 11479 | solaris) |
| 11480 | if test -f /etc/netconfig; then |
| 11481 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11482 | ipv6type=$i |
| 11483 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11484 | fi |
| 11485 | fi |
| 11486 | ;; |
| 11487 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11488 | cat >conftest.$ac_ext <<_ACEOF |
| 11489 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11490 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11491 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11492 | #include <sys/param.h> |
| 11493 | #ifdef _TOSHIBA_INET6 |
| 11494 | yes |
| 11495 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11496 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11498 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11499 | ipv6type=$i; |
| 11500 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11501 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11502 | fi |
| 11503 | rm -f conftest* |
| 11504 | |
| 11505 | ;; |
| 11506 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11507 | cat >conftest.$ac_ext <<_ACEOF |
| 11508 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11509 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11510 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11511 | #include </usr/local/v6/include/sys/v6config.h> |
| 11512 | #ifdef __V6D__ |
| 11513 | yes |
| 11514 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11517 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11518 | ipv6type=$i; |
| 11519 | ipv6lib=v6; |
| 11520 | ipv6libdir=/usr/local/v6/lib; |
| 11521 | OPT="-I/usr/local/v6/include $OPT" |
| 11522 | fi |
| 11523 | rm -f conftest* |
| 11524 | |
| 11525 | ;; |
| 11526 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11527 | cat >conftest.$ac_ext <<_ACEOF |
| 11528 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11529 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11530 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11531 | #include <sys/param.h> |
| 11532 | #ifdef _ZETA_MINAMI_INET6 |
| 11533 | yes |
| 11534 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11536 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11537 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11538 | ipv6type=$i; |
| 11539 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11540 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11541 | fi |
| 11542 | rm -f conftest* |
| 11543 | |
| 11544 | ;; |
| 11545 | esac |
| 11546 | if test "$ipv6type" != "unknown"; then |
| 11547 | break |
| 11548 | fi |
| 11549 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11551 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11552 | fi |
| 11553 | |
| 11554 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11555 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11556 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11557 | echo "using lib$ipv6lib" |
| 11558 | else |
| 11559 | if test $ipv6trylibc = "yes"; then |
| 11560 | echo "using libc" |
| 11561 | else |
| 11562 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11563 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11564 | echo 'ipv6 kit and compile beforehand.' |
| 11565 | exit 1 |
| 11566 | fi |
| 11567 | fi |
| 11568 | fi |
| 11569 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11570 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11571 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11572 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11573 | |
| 11574 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11575 | if test "${with_universal_newlines+set}" = set; then |
| 11576 | withval="$with_universal_newlines" |
| 11577 | |
| 11578 | fi; |
| 11579 | |
| 11580 | if test -z "$with_universal_newlines" |
| 11581 | then with_universal_newlines="yes" |
| 11582 | fi |
| 11583 | if test "$with_universal_newlines" != "no" |
| 11584 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11585 | |
| 11586 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11587 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11588 | _ACEOF |
| 11589 | |
| 11590 | fi |
| 11591 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11592 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11593 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11594 | # Check for --with-doc-strings |
| 11595 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11596 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11597 | |
| 11598 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11599 | if test "${with_doc_strings+set}" = set; then |
| 11600 | withval="$with_doc_strings" |
| 11601 | |
| 11602 | fi; |
| 11603 | |
| 11604 | if test -z "$with_doc_strings" |
| 11605 | then with_doc_strings="yes" |
| 11606 | fi |
| 11607 | if test "$with_doc_strings" != "no" |
| 11608 | then |
| 11609 | |
| 11610 | cat >>confdefs.h <<\_ACEOF |
| 11611 | #define WITH_DOC_STRINGS 1 |
| 11612 | _ACEOF |
| 11613 | |
| 11614 | fi |
| 11615 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11616 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11617 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11618 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11619 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11620 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11621 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11622 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11623 | if test "${with_pymalloc+set}" = set; then |
| 11624 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11626 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11627 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11628 | if test -z "$with_pymalloc" |
| 11629 | then with_pymalloc="yes" |
| 11630 | fi |
| 11631 | if test "$with_pymalloc" != "no" |
| 11632 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11633 | |
| 11634 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11635 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11637 | |
| 11638 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11639 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11640 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11641 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11642 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11644 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11645 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11646 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11647 | if test "${with_wctype_functions+set}" = set; then |
| 11648 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11649 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11650 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | then |
| 11652 | |
| 11653 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11654 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11655 | _ACEOF |
| 11656 | |
| 11657 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11658 | echo "${ECHO_T}yes" >&6 |
| 11659 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11660 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11661 | fi |
| 11662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 | echo "$as_me:$LINENO: result: no" >&5 |
| 11664 | echo "${ECHO_T}no" >&6 |
| 11665 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11666 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11667 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11668 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11669 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11671 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11672 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11673 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11674 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11675 | if test "${with_sgi_dl+set}" = set; then |
| 11676 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | |
| 11678 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11679 | echo "${ECHO_T}$withval" >&6 |
| 11680 | |
| 11681 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11682 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11683 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11684 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11685 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11686 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11687 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11688 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11690 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11691 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11692 | fi |
| 11693 | DLINCLDIR=${dldir} |
| 11694 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11696 | echo "$as_me:$LINENO: result: no" >&5 |
| 11697 | echo "${ECHO_T}no" >&6 |
| 11698 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11700 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11701 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11702 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11703 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11704 | if test "${with_dl_dld+set}" = set; then |
| 11705 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11706 | |
| 11707 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11708 | echo "${ECHO_T}$withval" >&6 |
| 11709 | |
| 11710 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11711 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11712 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11713 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11714 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11715 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11716 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11717 | 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] | 11718 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11719 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11720 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11721 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11722 | fi |
| 11723 | DLINCLDIR=${dldir} |
| 11724 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11726 | echo "$as_me:$LINENO: result: no" >&5 |
| 11727 | echo "${ECHO_T}no" >&6 |
| 11728 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11729 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11730 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11731 | # 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] | 11732 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11733 | for ac_func in dlopen |
| 11734 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11735 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11736 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11737 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11738 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11741 | cat >conftest.$ac_ext <<_ACEOF |
| 11742 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11743 | #include "confdefs.h" |
| 11744 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11746 | #include <assert.h> |
| 11747 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11748 | #ifdef __cplusplus |
| 11749 | extern "C" |
| 11750 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11751 | /* 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] | 11752 | builtin and then its argument prototype would still apply. */ |
| 11753 | char $ac_func (); |
| 11754 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 | #ifdef F77_DUMMY_MAIN |
| 11757 | # ifdef __cplusplus |
| 11758 | extern "C" |
| 11759 | # endif |
| 11760 | int F77_DUMMY_MAIN() { return 1; } |
| 11761 | #endif |
| 11762 | int |
| 11763 | main () |
| 11764 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11765 | /* The GNU C library defines this for functions which it implements |
| 11766 | to always fail with ENOSYS. Some functions are actually named |
| 11767 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11768 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11769 | choke me |
| 11770 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11772 | #endif |
| 11773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11774 | ; |
| 11775 | return 0; |
| 11776 | } |
| 11777 | _ACEOF |
| 11778 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11780 | (eval $ac_link) 2>&5 |
| 11781 | ac_status=$? |
| 11782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11783 | (exit $ac_status); } && |
| 11784 | { ac_try='test -s conftest$ac_exeext' |
| 11785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11786 | (eval $ac_try) 2>&5 |
| 11787 | ac_status=$? |
| 11788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11789 | (exit $ac_status); }; }; then |
| 11790 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11792 | echo "$as_me: failed program was:" >&5 |
| 11793 | cat conftest.$ac_ext >&5 |
| 11794 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11796 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11797 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11799 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11800 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11801 | cat >>confdefs.h <<_ACEOF |
| 11802 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11803 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11804 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11805 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11806 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11807 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11808 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11809 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11810 | # loading of modules. |
| 11811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11812 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11813 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11814 | if test -z "$DYNLOADFILE" |
| 11815 | then |
| 11816 | case $ac_sys_system/$ac_sys_release in |
| 11817 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11818 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11819 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11820 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11821 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11822 | *) |
| 11823 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11824 | # out any dynamic loading |
| 11825 | if test "$ac_cv_func_dlopen" = yes |
| 11826 | then DYNLOADFILE="dynload_shlib.o" |
| 11827 | else DYNLOADFILE="dynload_stub.o" |
| 11828 | fi |
| 11829 | ;; |
| 11830 | esac |
| 11831 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11833 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11834 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11835 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11836 | |
| 11837 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11838 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11839 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11840 | |
| 11841 | fi |
| 11842 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11843 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11844 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11846 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11847 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11848 | if test -z "$MACHDEP_OBJS" |
| 11849 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11850 | MACHDEP_OBJS=$extra_machdep_objs |
| 11851 | else |
| 11852 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11853 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11855 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11856 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11857 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | |
| 11859 | |
| 11860 | |
| 11861 | |
| 11862 | |
| 11863 | |
| 11864 | |
| 11865 | |
| 11866 | |
| 11867 | |
| 11868 | |
| 11869 | |
| 11870 | |
| 11871 | |
| 11872 | |
| 11873 | |
| 11874 | |
| 11875 | |
| 11876 | |
| 11877 | |
| 11878 | |
| 11879 | |
| 11880 | |
| 11881 | |
| 11882 | |
| 11883 | |
| 11884 | |
| 11885 | |
| 11886 | |
| 11887 | |
| 11888 | |
| 11889 | |
| 11890 | |
| 11891 | |
| 11892 | |
| 11893 | |
| 11894 | |
| 11895 | |
| 11896 | |
| 11897 | |
| 11898 | |
| 11899 | |
| 11900 | |
| 11901 | |
| 11902 | |
| 11903 | |
| 11904 | |
| 11905 | |
| 11906 | |
| 11907 | |
| 11908 | |
| 11909 | |
| 11910 | |
| 11911 | |
| 11912 | |
| 11913 | |
| 11914 | |
| 11915 | |
| 11916 | |
| 11917 | |
| 11918 | |
| 11919 | |
| 11920 | |
| 11921 | |
| 11922 | |
| 11923 | |
| 11924 | |
| 11925 | |
| 11926 | |
| 11927 | |
| 11928 | |
| 11929 | |
| 11930 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11931 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11932 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 11933 | |
Martin v. Löwis | 0cec0ff | 2002-07-28 16:33:45 +0000 | [diff] [blame] | 11934 | |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 11935 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11936 | 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] | 11937 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11938 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 11939 | hstrerror inet_pton kill killpg lchown link lstat mkfifo mknod mktime \ |
| 11940 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11941 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11942 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11943 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame] | 11944 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11945 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 11946 | truncate uname unsetenv utimes waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11947 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11949 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11950 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11951 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11954 | cat >conftest.$ac_ext <<_ACEOF |
| 11955 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11956 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11957 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11958 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11959 | #include <assert.h> |
| 11960 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | #ifdef __cplusplus |
| 11962 | extern "C" |
| 11963 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11964 | /* 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] | 11965 | builtin and then its argument prototype would still apply. */ |
| 11966 | char $ac_func (); |
| 11967 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11969 | #ifdef F77_DUMMY_MAIN |
| 11970 | # ifdef __cplusplus |
| 11971 | extern "C" |
| 11972 | # endif |
| 11973 | int F77_DUMMY_MAIN() { return 1; } |
| 11974 | #endif |
| 11975 | int |
| 11976 | main () |
| 11977 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11978 | /* The GNU C library defines this for functions which it implements |
| 11979 | to always fail with ENOSYS. Some functions are actually named |
| 11980 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11981 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11982 | choke me |
| 11983 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11984 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11985 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11987 | ; |
| 11988 | return 0; |
| 11989 | } |
| 11990 | _ACEOF |
| 11991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11993 | (eval $ac_link) 2>&5 |
| 11994 | ac_status=$? |
| 11995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11996 | (exit $ac_status); } && |
| 11997 | { ac_try='test -s conftest$ac_exeext' |
| 11998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11999 | (eval $ac_try) 2>&5 |
| 12000 | ac_status=$? |
| 12001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12002 | (exit $ac_status); }; }; then |
| 12003 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | echo "$as_me: failed program was:" >&5 |
| 12006 | cat conftest.$ac_ext >&5 |
| 12007 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12008 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12009 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12010 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12012 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12013 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12014 | cat >>confdefs.h <<_ACEOF |
| 12015 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12016 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12017 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12018 | fi |
| 12019 | done |
| 12020 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12021 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12022 | # check for openpty and forkpty |
| 12023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12025 | for ac_func in openpty |
| 12026 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12028 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12029 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12030 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12033 | cat >conftest.$ac_ext <<_ACEOF |
| 12034 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12035 | #include "confdefs.h" |
| 12036 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12038 | #include <assert.h> |
| 12039 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | #ifdef __cplusplus |
| 12041 | extern "C" |
| 12042 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12043 | /* 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] | 12044 | builtin and then its argument prototype would still apply. */ |
| 12045 | char $ac_func (); |
| 12046 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | #ifdef F77_DUMMY_MAIN |
| 12049 | # ifdef __cplusplus |
| 12050 | extern "C" |
| 12051 | # endif |
| 12052 | int F77_DUMMY_MAIN() { return 1; } |
| 12053 | #endif |
| 12054 | int |
| 12055 | main () |
| 12056 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12057 | /* The GNU C library defines this for functions which it implements |
| 12058 | to always fail with ENOSYS. Some functions are actually named |
| 12059 | something starting with __ and the normal name is an alias. */ |
| 12060 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12061 | choke me |
| 12062 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12063 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12064 | #endif |
| 12065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12066 | ; |
| 12067 | return 0; |
| 12068 | } |
| 12069 | _ACEOF |
| 12070 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12072 | (eval $ac_link) 2>&5 |
| 12073 | ac_status=$? |
| 12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12075 | (exit $ac_status); } && |
| 12076 | { ac_try='test -s conftest$ac_exeext' |
| 12077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12078 | (eval $ac_try) 2>&5 |
| 12079 | ac_status=$? |
| 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12081 | (exit $ac_status); }; }; then |
| 12082 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12084 | echo "$as_me: failed program was:" >&5 |
| 12085 | cat conftest.$ac_ext >&5 |
| 12086 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12088 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12089 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12091 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12092 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12093 | cat >>confdefs.h <<_ACEOF |
| 12094 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12095 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12096 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12098 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12099 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12100 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12104 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12105 | cat >conftest.$ac_ext <<_ACEOF |
| 12106 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12107 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12108 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12109 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12110 | #ifdef __cplusplus |
| 12111 | extern "C" |
| 12112 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12113 | /* 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] | 12114 | builtin and then its argument prototype would still apply. */ |
| 12115 | char openpty (); |
| 12116 | #ifdef F77_DUMMY_MAIN |
| 12117 | # ifdef __cplusplus |
| 12118 | extern "C" |
| 12119 | # endif |
| 12120 | int F77_DUMMY_MAIN() { return 1; } |
| 12121 | #endif |
| 12122 | int |
| 12123 | main () |
| 12124 | { |
| 12125 | openpty (); |
| 12126 | ; |
| 12127 | return 0; |
| 12128 | } |
| 12129 | _ACEOF |
| 12130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12132 | (eval $ac_link) 2>&5 |
| 12133 | ac_status=$? |
| 12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12135 | (exit $ac_status); } && |
| 12136 | { ac_try='test -s conftest$ac_exeext' |
| 12137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12138 | (eval $ac_try) 2>&5 |
| 12139 | ac_status=$? |
| 12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12141 | (exit $ac_status); }; }; then |
| 12142 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12144 | echo "$as_me: failed program was:" >&5 |
| 12145 | cat conftest.$ac_ext >&5 |
| 12146 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12147 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12148 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12149 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12152 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12153 | if test $ac_cv_lib_util_openpty = yes; then |
| 12154 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12155 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12156 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12157 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12158 | fi |
| 12159 | |
| 12160 | fi |
| 12161 | done |
| 12162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12163 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12164 | for ac_func in forkpty |
| 12165 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12166 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12167 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12168 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12169 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12172 | cat >conftest.$ac_ext <<_ACEOF |
| 12173 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12174 | #include "confdefs.h" |
| 12175 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12176 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12177 | #include <assert.h> |
| 12178 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | #ifdef __cplusplus |
| 12180 | extern "C" |
| 12181 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12182 | /* 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] | 12183 | builtin and then its argument prototype would still apply. */ |
| 12184 | char $ac_func (); |
| 12185 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | #ifdef F77_DUMMY_MAIN |
| 12188 | # ifdef __cplusplus |
| 12189 | extern "C" |
| 12190 | # endif |
| 12191 | int F77_DUMMY_MAIN() { return 1; } |
| 12192 | #endif |
| 12193 | int |
| 12194 | main () |
| 12195 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12196 | /* The GNU C library defines this for functions which it implements |
| 12197 | to always fail with ENOSYS. Some functions are actually named |
| 12198 | something starting with __ and the normal name is an alias. */ |
| 12199 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12200 | choke me |
| 12201 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12202 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12203 | #endif |
| 12204 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12205 | ; |
| 12206 | return 0; |
| 12207 | } |
| 12208 | _ACEOF |
| 12209 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12211 | (eval $ac_link) 2>&5 |
| 12212 | ac_status=$? |
| 12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12214 | (exit $ac_status); } && |
| 12215 | { ac_try='test -s conftest$ac_exeext' |
| 12216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12217 | (eval $ac_try) 2>&5 |
| 12218 | ac_status=$? |
| 12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12220 | (exit $ac_status); }; }; then |
| 12221 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12223 | echo "$as_me: failed program was:" >&5 |
| 12224 | cat conftest.$ac_ext >&5 |
| 12225 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12226 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12227 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12231 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12232 | cat >>confdefs.h <<_ACEOF |
| 12233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12234 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12235 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12237 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12238 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12239 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12241 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12242 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12243 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 | cat >conftest.$ac_ext <<_ACEOF |
| 12245 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12246 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12248 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12249 | #ifdef __cplusplus |
| 12250 | extern "C" |
| 12251 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12252 | /* 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] | 12253 | builtin and then its argument prototype would still apply. */ |
| 12254 | char forkpty (); |
| 12255 | #ifdef F77_DUMMY_MAIN |
| 12256 | # ifdef __cplusplus |
| 12257 | extern "C" |
| 12258 | # endif |
| 12259 | int F77_DUMMY_MAIN() { return 1; } |
| 12260 | #endif |
| 12261 | int |
| 12262 | main () |
| 12263 | { |
| 12264 | forkpty (); |
| 12265 | ; |
| 12266 | return 0; |
| 12267 | } |
| 12268 | _ACEOF |
| 12269 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12271 | (eval $ac_link) 2>&5 |
| 12272 | ac_status=$? |
| 12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12274 | (exit $ac_status); } && |
| 12275 | { ac_try='test -s conftest$ac_exeext' |
| 12276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12277 | (eval $ac_try) 2>&5 |
| 12278 | ac_status=$? |
| 12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12280 | (exit $ac_status); }; }; then |
| 12281 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12283 | echo "$as_me: failed program was:" >&5 |
| 12284 | cat conftest.$ac_ext >&5 |
| 12285 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12286 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12287 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12288 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12289 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12290 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12291 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12292 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12293 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12294 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12295 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12296 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12297 | fi |
| 12298 | |
| 12299 | fi |
| 12300 | done |
| 12301 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12302 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12303 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12304 | |
| 12305 | |
| 12306 | |
| 12307 | |
| 12308 | |
| 12309 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12310 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12311 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12313 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12314 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12315 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12318 | cat >conftest.$ac_ext <<_ACEOF |
| 12319 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12320 | #include "confdefs.h" |
| 12321 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12322 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12323 | #include <assert.h> |
| 12324 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12325 | #ifdef __cplusplus |
| 12326 | extern "C" |
| 12327 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12328 | /* 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] | 12329 | builtin and then its argument prototype would still apply. */ |
| 12330 | char $ac_func (); |
| 12331 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12333 | #ifdef F77_DUMMY_MAIN |
| 12334 | # ifdef __cplusplus |
| 12335 | extern "C" |
| 12336 | # endif |
| 12337 | int F77_DUMMY_MAIN() { return 1; } |
| 12338 | #endif |
| 12339 | int |
| 12340 | main () |
| 12341 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12342 | /* The GNU C library defines this for functions which it implements |
| 12343 | to always fail with ENOSYS. Some functions are actually named |
| 12344 | something starting with __ and the normal name is an alias. */ |
| 12345 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12346 | choke me |
| 12347 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12349 | #endif |
| 12350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12351 | ; |
| 12352 | return 0; |
| 12353 | } |
| 12354 | _ACEOF |
| 12355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12357 | (eval $ac_link) 2>&5 |
| 12358 | ac_status=$? |
| 12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12360 | (exit $ac_status); } && |
| 12361 | { ac_try='test -s conftest$ac_exeext' |
| 12362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12363 | (eval $ac_try) 2>&5 |
| 12364 | ac_status=$? |
| 12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12366 | (exit $ac_status); }; }; then |
| 12367 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12369 | echo "$as_me: failed program was:" >&5 |
| 12370 | cat conftest.$ac_ext >&5 |
| 12371 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12372 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12373 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12374 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12376 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12377 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12378 | cat >>confdefs.h <<_ACEOF |
| 12379 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12380 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12381 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12382 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12383 | done |
| 12384 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | |
| 12387 | |
| 12388 | |
| 12389 | |
| 12390 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12391 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12392 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12393 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12394 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12395 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12396 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12399 | cat >conftest.$ac_ext <<_ACEOF |
| 12400 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12401 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12402 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12403 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12404 | #include <assert.h> |
| 12405 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12406 | #ifdef __cplusplus |
| 12407 | extern "C" |
| 12408 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12409 | /* 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] | 12410 | builtin and then its argument prototype would still apply. */ |
| 12411 | char $ac_func (); |
| 12412 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12414 | #ifdef F77_DUMMY_MAIN |
| 12415 | # ifdef __cplusplus |
| 12416 | extern "C" |
| 12417 | # endif |
| 12418 | int F77_DUMMY_MAIN() { return 1; } |
| 12419 | #endif |
| 12420 | int |
| 12421 | main () |
| 12422 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12423 | /* The GNU C library defines this for functions which it implements |
| 12424 | to always fail with ENOSYS. Some functions are actually named |
| 12425 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12426 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12427 | choke me |
| 12428 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12429 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12430 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | ; |
| 12433 | return 0; |
| 12434 | } |
| 12435 | _ACEOF |
| 12436 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12438 | (eval $ac_link) 2>&5 |
| 12439 | ac_status=$? |
| 12440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12441 | (exit $ac_status); } && |
| 12442 | { ac_try='test -s conftest$ac_exeext' |
| 12443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12444 | (eval $ac_try) 2>&5 |
| 12445 | ac_status=$? |
| 12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12447 | (exit $ac_status); }; }; then |
| 12448 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12450 | echo "$as_me: failed program was:" >&5 |
| 12451 | cat conftest.$ac_ext >&5 |
| 12452 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12453 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12454 | 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] | 12455 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12457 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12458 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12459 | cat >>confdefs.h <<_ACEOF |
| 12460 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12461 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12462 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12464 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12465 | fi |
| 12466 | done |
| 12467 | |
| 12468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12469 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12470 | for ac_func in getpgrp |
| 12471 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12472 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12473 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12474 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12475 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12478 | cat >conftest.$ac_ext <<_ACEOF |
| 12479 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12480 | #include "confdefs.h" |
| 12481 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12482 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12483 | #include <assert.h> |
| 12484 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12485 | #ifdef __cplusplus |
| 12486 | extern "C" |
| 12487 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12488 | /* 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] | 12489 | builtin and then its argument prototype would still apply. */ |
| 12490 | char $ac_func (); |
| 12491 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12493 | #ifdef F77_DUMMY_MAIN |
| 12494 | # ifdef __cplusplus |
| 12495 | extern "C" |
| 12496 | # endif |
| 12497 | int F77_DUMMY_MAIN() { return 1; } |
| 12498 | #endif |
| 12499 | int |
| 12500 | main () |
| 12501 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12502 | /* The GNU C library defines this for functions which it implements |
| 12503 | to always fail with ENOSYS. Some functions are actually named |
| 12504 | something starting with __ and the normal name is an alias. */ |
| 12505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12506 | choke me |
| 12507 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12508 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12509 | #endif |
| 12510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12511 | ; |
| 12512 | return 0; |
| 12513 | } |
| 12514 | _ACEOF |
| 12515 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12517 | (eval $ac_link) 2>&5 |
| 12518 | ac_status=$? |
| 12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12520 | (exit $ac_status); } && |
| 12521 | { ac_try='test -s conftest$ac_exeext' |
| 12522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12523 | (eval $ac_try) 2>&5 |
| 12524 | ac_status=$? |
| 12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12526 | (exit $ac_status); }; }; then |
| 12527 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12529 | echo "$as_me: failed program was:" >&5 |
| 12530 | cat conftest.$ac_ext >&5 |
| 12531 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12532 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12533 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12534 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12535 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12536 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12537 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12538 | cat >>confdefs.h <<_ACEOF |
| 12539 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12540 | _ACEOF |
| 12541 | cat >conftest.$ac_ext <<_ACEOF |
| 12542 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12543 | #include "confdefs.h" |
| 12544 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12545 | #ifdef F77_DUMMY_MAIN |
| 12546 | # ifdef __cplusplus |
| 12547 | extern "C" |
| 12548 | # endif |
| 12549 | int F77_DUMMY_MAIN() { return 1; } |
| 12550 | #endif |
| 12551 | int |
| 12552 | main () |
| 12553 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12554 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12555 | ; |
| 12556 | return 0; |
| 12557 | } |
| 12558 | _ACEOF |
| 12559 | rm -f conftest.$ac_objext |
| 12560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12561 | (eval $ac_compile) 2>&5 |
| 12562 | ac_status=$? |
| 12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12564 | (exit $ac_status); } && |
| 12565 | { ac_try='test -s conftest.$ac_objext' |
| 12566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12567 | (eval $ac_try) 2>&5 |
| 12568 | ac_status=$? |
| 12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12570 | (exit $ac_status); }; }; then |
| 12571 | |
| 12572 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12573 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12574 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12576 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | echo "$as_me: failed program was:" >&5 |
| 12579 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12581 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12582 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12583 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12584 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12585 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12586 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12587 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12588 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12590 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12591 | if test "$cross_compiling" = yes; then |
| 12592 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12593 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12594 | { (exit 1); exit 1; }; } |
| 12595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12596 | cat >conftest.$ac_ext <<_ACEOF |
| 12597 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12598 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12599 | #if HAVE_UNISTD_H |
| 12600 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12601 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12603 | #ifdef F77_DUMMY_MAIN |
| 12604 | # ifdef __cplusplus |
| 12605 | extern "C" |
| 12606 | # endif |
| 12607 | int F77_DUMMY_MAIN() { return 1; } |
| 12608 | #endif |
| 12609 | int |
| 12610 | main () |
| 12611 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12612 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12613 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12614 | exit successfully. */ |
| 12615 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12616 | ; |
| 12617 | return 0; |
| 12618 | } |
| 12619 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12620 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12622 | (eval $ac_link) 2>&5 |
| 12623 | ac_status=$? |
| 12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12625 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12627 | (eval $ac_try) 2>&5 |
| 12628 | ac_status=$? |
| 12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12630 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12631 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12632 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12633 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12634 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12635 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12636 | ( exit $ac_status ) |
| 12637 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12638 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12639 | 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] | 12640 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12641 | fi |
| 12642 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12643 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12644 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12645 | |
| 12646 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12647 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12648 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12649 | |
| 12650 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12652 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12653 | for ac_func in gettimeofday |
| 12654 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12655 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12656 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12658 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | cat >conftest.$ac_ext <<_ACEOF |
| 12662 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12663 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12664 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12665 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12666 | #include <assert.h> |
| 12667 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 | #ifdef __cplusplus |
| 12669 | extern "C" |
| 12670 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12671 | /* 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] | 12672 | builtin and then its argument prototype would still apply. */ |
| 12673 | char $ac_func (); |
| 12674 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12676 | #ifdef F77_DUMMY_MAIN |
| 12677 | # ifdef __cplusplus |
| 12678 | extern "C" |
| 12679 | # endif |
| 12680 | int F77_DUMMY_MAIN() { return 1; } |
| 12681 | #endif |
| 12682 | int |
| 12683 | main () |
| 12684 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12685 | /* The GNU C library defines this for functions which it implements |
| 12686 | to always fail with ENOSYS. Some functions are actually named |
| 12687 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12688 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12689 | choke me |
| 12690 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12691 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12692 | #endif |
| 12693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12694 | ; |
| 12695 | return 0; |
| 12696 | } |
| 12697 | _ACEOF |
| 12698 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12700 | (eval $ac_link) 2>&5 |
| 12701 | ac_status=$? |
| 12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12703 | (exit $ac_status); } && |
| 12704 | { ac_try='test -s conftest$ac_exeext' |
| 12705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12706 | (eval $ac_try) 2>&5 |
| 12707 | ac_status=$? |
| 12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12709 | (exit $ac_status); }; }; then |
| 12710 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12712 | echo "$as_me: failed program was:" >&5 |
| 12713 | cat conftest.$ac_ext >&5 |
| 12714 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12715 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12716 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12717 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12719 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12720 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12721 | cat >>confdefs.h <<_ACEOF |
| 12722 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12723 | _ACEOF |
| 12724 | cat >conftest.$ac_ext <<_ACEOF |
| 12725 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12726 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12727 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 | #ifdef F77_DUMMY_MAIN |
| 12729 | # ifdef __cplusplus |
| 12730 | extern "C" |
| 12731 | # endif |
| 12732 | int F77_DUMMY_MAIN() { return 1; } |
| 12733 | #endif |
| 12734 | int |
| 12735 | main () |
| 12736 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12737 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12738 | ; |
| 12739 | return 0; |
| 12740 | } |
| 12741 | _ACEOF |
| 12742 | rm -f conftest.$ac_objext |
| 12743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12744 | (eval $ac_compile) 2>&5 |
| 12745 | ac_status=$? |
| 12746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12747 | (exit $ac_status); } && |
| 12748 | { ac_try='test -s conftest.$ac_objext' |
| 12749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12750 | (eval $ac_try) 2>&5 |
| 12751 | ac_status=$? |
| 12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12753 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12754 | : |
| 12755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12756 | echo "$as_me: failed program was:" >&5 |
| 12757 | cat conftest.$ac_ext >&5 |
| 12758 | |
| 12759 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12760 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12761 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12763 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12764 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12765 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12766 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12767 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12768 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12769 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12770 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12771 | echo "$as_me:$LINENO: checking for major" >&5 |
| 12772 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 12773 | cat >conftest.$ac_ext <<_ACEOF |
| 12774 | #line $LINENO "configure" |
| 12775 | #include "confdefs.h" |
| 12776 | |
| 12777 | #if defined(MAJOR_IN_MKDEV) |
| 12778 | #include <sys/mkdev.h> |
| 12779 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12780 | #include <sys/sysmacros.h> |
| 12781 | #else |
| 12782 | #include <sys/types.h> |
| 12783 | #endif |
| 12784 | |
| 12785 | #ifdef F77_DUMMY_MAIN |
| 12786 | # ifdef __cplusplus |
| 12787 | extern "C" |
| 12788 | # endif |
| 12789 | int F77_DUMMY_MAIN() { return 1; } |
| 12790 | #endif |
| 12791 | int |
| 12792 | main () |
| 12793 | { |
| 12794 | |
| 12795 | makedev(major(0),minor(0)); |
| 12796 | |
| 12797 | ; |
| 12798 | return 0; |
| 12799 | } |
| 12800 | _ACEOF |
| 12801 | rm -f conftest.$ac_objext |
| 12802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12803 | (eval $ac_compile) 2>&5 |
| 12804 | ac_status=$? |
| 12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12806 | (exit $ac_status); } && |
| 12807 | { ac_try='test -s conftest.$ac_objext' |
| 12808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12809 | (eval $ac_try) 2>&5 |
| 12810 | ac_status=$? |
| 12811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12812 | (exit $ac_status); }; }; then |
| 12813 | |
| 12814 | |
| 12815 | cat >>confdefs.h <<\_ACEOF |
| 12816 | #define HAVE_DEVICE_MACROS 1 |
| 12817 | _ACEOF |
| 12818 | |
| 12819 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12820 | echo "${ECHO_T}yes" >&6 |
| 12821 | |
| 12822 | else |
| 12823 | echo "$as_me: failed program was:" >&5 |
| 12824 | cat conftest.$ac_ext >&5 |
| 12825 | |
| 12826 | echo "$as_me:$LINENO: result: no" >&5 |
| 12827 | echo "${ECHO_T}no" >&6 |
| 12828 | |
| 12829 | fi |
| 12830 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12831 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12832 | # 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] | 12833 | # for [no]getaddrinfo in netdb.h. |
| 12834 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12835 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12836 | cat >conftest.$ac_ext <<_ACEOF |
| 12837 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12838 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12839 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12840 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12841 | #include <sys/socket.h> |
| 12842 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12843 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | #ifdef F77_DUMMY_MAIN |
| 12846 | # ifdef __cplusplus |
| 12847 | extern "C" |
| 12848 | # endif |
| 12849 | int F77_DUMMY_MAIN() { return 1; } |
| 12850 | #endif |
| 12851 | int |
| 12852 | main () |
| 12853 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12854 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12855 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | ; |
| 12858 | return 0; |
| 12859 | } |
| 12860 | _ACEOF |
| 12861 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12863 | (eval $ac_link) 2>&5 |
| 12864 | ac_status=$? |
| 12865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12866 | (exit $ac_status); } && |
| 12867 | { ac_try='test -s conftest$ac_exeext' |
| 12868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12869 | (eval $ac_try) 2>&5 |
| 12870 | ac_status=$? |
| 12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12872 | (exit $ac_status); }; }; then |
| 12873 | |
| 12874 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12875 | echo "${ECHO_T}yes" >&6 |
| 12876 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12877 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12878 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12880 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12881 | buggygetaddrinfo=yes |
| 12882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12883 | cat >conftest.$ac_ext <<_ACEOF |
| 12884 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12885 | #include "confdefs.h" |
| 12886 | |
| 12887 | #include <sys/types.h> |
| 12888 | #include <netdb.h> |
| 12889 | #include <string.h> |
| 12890 | #include <sys/socket.h> |
| 12891 | #include <netinet/in.h> |
| 12892 | |
| 12893 | main() |
| 12894 | { |
| 12895 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12896 | struct addrinfo hints, *ai, *aitop; |
| 12897 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12898 | |
| 12899 | for (passive = 0; passive <= 1; passive++) { |
| 12900 | memset(&hints, 0, sizeof(hints)); |
| 12901 | hints.ai_family = AF_UNSPEC; |
| 12902 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12903 | hints.ai_socktype = SOCK_STREAM; |
| 12904 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12905 | (void)gai_strerror(gaierr); |
| 12906 | goto bad; |
| 12907 | } |
| 12908 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12909 | if (ai->ai_addr == NULL || |
| 12910 | ai->ai_addrlen == 0 || |
| 12911 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12912 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12913 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12914 | goto bad; |
| 12915 | } |
| 12916 | switch (ai->ai_family) { |
| 12917 | case AF_INET: |
| 12918 | if (strcmp(strport, "54321") != 0) { |
| 12919 | goto bad; |
| 12920 | } |
| 12921 | if (passive) { |
| 12922 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12923 | goto bad; |
| 12924 | } |
| 12925 | } else { |
| 12926 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12927 | goto bad; |
| 12928 | } |
| 12929 | } |
| 12930 | inet4++; |
| 12931 | break; |
| 12932 | case AF_INET6: |
| 12933 | if (strcmp(strport, "54321") != 0) { |
| 12934 | goto bad; |
| 12935 | } |
| 12936 | if (passive) { |
| 12937 | if (strcmp(straddr, "::") != 0) { |
| 12938 | goto bad; |
| 12939 | } |
| 12940 | } else { |
| 12941 | if (strcmp(straddr, "::1") != 0) { |
| 12942 | goto bad; |
| 12943 | } |
| 12944 | } |
| 12945 | inet6++; |
| 12946 | break; |
| 12947 | case AF_UNSPEC: |
| 12948 | goto bad; |
| 12949 | break; |
| 12950 | default: |
| 12951 | /* another family support? */ |
| 12952 | break; |
| 12953 | } |
| 12954 | } |
| 12955 | } |
| 12956 | |
| 12957 | if (!(inet4 == 0 || inet4 == 2)) |
| 12958 | goto bad; |
| 12959 | if (!(inet6 == 0 || inet6 == 2)) |
| 12960 | goto bad; |
| 12961 | |
| 12962 | if (aitop) |
| 12963 | freeaddrinfo(aitop); |
| 12964 | exit(0); |
| 12965 | |
| 12966 | bad: |
| 12967 | if (aitop) |
| 12968 | freeaddrinfo(aitop); |
| 12969 | exit(1); |
| 12970 | } |
| 12971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | _ACEOF |
| 12973 | rm -f conftest$ac_exeext |
| 12974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12975 | (eval $ac_link) 2>&5 |
| 12976 | ac_status=$? |
| 12977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12980 | (eval $ac_try) 2>&5 |
| 12981 | ac_status=$? |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12983 | (exit $ac_status); }; }; then |
| 12984 | echo "$as_me:$LINENO: result: good" >&5 |
| 12985 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12986 | buggygetaddrinfo=no |
| 12987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12988 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12989 | echo "$as_me: failed program was:" >&5 |
| 12990 | cat conftest.$ac_ext >&5 |
| 12991 | ( exit $ac_status ) |
| 12992 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12993 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12994 | buggygetaddrinfo=yes |
| 12995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | 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] | 12997 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | echo "$as_me: failed program was:" >&5 |
| 13000 | cat conftest.$ac_ext >&5 |
| 13001 | |
| 13002 | echo "$as_me:$LINENO: result: no" >&5 |
| 13003 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13004 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13005 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13006 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | 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] | 13008 | |
| 13009 | if test "$buggygetaddrinfo" = "yes"; then |
| 13010 | if test "$ipv6" = "yes"; then |
| 13011 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13012 | echo ' or you can specify "--disable-ipv6"'. |
| 13013 | exit 1 |
| 13014 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | |
| 13017 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13018 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13019 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13020 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13021 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13023 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13024 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13026 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13027 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13028 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13030 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | cat >conftest.$ac_ext <<_ACEOF |
| 13032 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13033 | #include "confdefs.h" |
| 13034 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13035 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13036 | #include <assert.h> |
| 13037 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | #ifdef __cplusplus |
| 13039 | extern "C" |
| 13040 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13041 | /* 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] | 13042 | builtin and then its argument prototype would still apply. */ |
| 13043 | char $ac_func (); |
| 13044 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13046 | #ifdef F77_DUMMY_MAIN |
| 13047 | # ifdef __cplusplus |
| 13048 | extern "C" |
| 13049 | # endif |
| 13050 | int F77_DUMMY_MAIN() { return 1; } |
| 13051 | #endif |
| 13052 | int |
| 13053 | main () |
| 13054 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13055 | /* The GNU C library defines this for functions which it implements |
| 13056 | to always fail with ENOSYS. Some functions are actually named |
| 13057 | something starting with __ and the normal name is an alias. */ |
| 13058 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13059 | choke me |
| 13060 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13061 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13062 | #endif |
| 13063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | ; |
| 13065 | return 0; |
| 13066 | } |
| 13067 | _ACEOF |
| 13068 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13070 | (eval $ac_link) 2>&5 |
| 13071 | ac_status=$? |
| 13072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13073 | (exit $ac_status); } && |
| 13074 | { ac_try='test -s conftest$ac_exeext' |
| 13075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13076 | (eval $ac_try) 2>&5 |
| 13077 | ac_status=$? |
| 13078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13079 | (exit $ac_status); }; }; then |
| 13080 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13082 | echo "$as_me: failed program was:" >&5 |
| 13083 | cat conftest.$ac_ext >&5 |
| 13084 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13085 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13088 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13089 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13090 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13091 | cat >>confdefs.h <<_ACEOF |
| 13092 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13093 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13094 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13095 | fi |
| 13096 | done |
| 13097 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13098 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13099 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13100 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13101 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13102 | if test "${ac_cv_header_time+set}" = set; then |
| 13103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | cat >conftest.$ac_ext <<_ACEOF |
| 13106 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13107 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13108 | #include <sys/types.h> |
| 13109 | #include <sys/time.h> |
| 13110 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | |
| 13112 | #ifdef F77_DUMMY_MAIN |
| 13113 | # ifdef __cplusplus |
| 13114 | extern "C" |
| 13115 | # endif |
| 13116 | int F77_DUMMY_MAIN() { return 1; } |
| 13117 | #endif |
| 13118 | int |
| 13119 | main () |
| 13120 | { |
| 13121 | if ((struct tm *) 0) |
| 13122 | return 0; |
| 13123 | ; |
| 13124 | return 0; |
| 13125 | } |
| 13126 | _ACEOF |
| 13127 | rm -f conftest.$ac_objext |
| 13128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13129 | (eval $ac_compile) 2>&5 |
| 13130 | ac_status=$? |
| 13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13132 | (exit $ac_status); } && |
| 13133 | { ac_try='test -s conftest.$ac_objext' |
| 13134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13135 | (eval $ac_try) 2>&5 |
| 13136 | ac_status=$? |
| 13137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13138 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13139 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13141 | echo "$as_me: failed program was:" >&5 |
| 13142 | cat conftest.$ac_ext >&5 |
| 13143 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13144 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13145 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13147 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13148 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13149 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13150 | |
| 13151 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13152 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13153 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13154 | |
| 13155 | fi |
| 13156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13157 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13158 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13159 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 | cat >conftest.$ac_ext <<_ACEOF |
| 13163 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13164 | #include "confdefs.h" |
| 13165 | #include <sys/types.h> |
| 13166 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13167 | |
| 13168 | #ifdef F77_DUMMY_MAIN |
| 13169 | # ifdef __cplusplus |
| 13170 | extern "C" |
| 13171 | # endif |
| 13172 | int F77_DUMMY_MAIN() { return 1; } |
| 13173 | #endif |
| 13174 | int |
| 13175 | main () |
| 13176 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13177 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13178 | ; |
| 13179 | return 0; |
| 13180 | } |
| 13181 | _ACEOF |
| 13182 | rm -f conftest.$ac_objext |
| 13183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13184 | (eval $ac_compile) 2>&5 |
| 13185 | ac_status=$? |
| 13186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13187 | (exit $ac_status); } && |
| 13188 | { ac_try='test -s conftest.$ac_objext' |
| 13189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13190 | (eval $ac_try) 2>&5 |
| 13191 | ac_status=$? |
| 13192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13193 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13194 | ac_cv_struct_tm=time.h |
| 13195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | echo "$as_me: failed program was:" >&5 |
| 13197 | cat conftest.$ac_ext >&5 |
| 13198 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13200 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13201 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13202 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13203 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13204 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | |
| 13206 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13207 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13208 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13209 | |
| 13210 | fi |
| 13211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13212 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13213 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13214 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 13215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 | cat >conftest.$ac_ext <<_ACEOF |
| 13218 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13219 | #include "confdefs.h" |
| 13220 | #include <sys/types.h> |
| 13221 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13222 | |
| 13223 | |
| 13224 | #ifdef F77_DUMMY_MAIN |
| 13225 | # ifdef __cplusplus |
| 13226 | extern "C" |
| 13227 | # endif |
| 13228 | int F77_DUMMY_MAIN() { return 1; } |
| 13229 | #endif |
| 13230 | int |
| 13231 | main () |
| 13232 | { |
| 13233 | static struct tm ac_aggr; |
| 13234 | if (ac_aggr.tm_zone) |
| 13235 | return 0; |
| 13236 | ; |
| 13237 | return 0; |
| 13238 | } |
| 13239 | _ACEOF |
| 13240 | rm -f conftest.$ac_objext |
| 13241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13242 | (eval $ac_compile) 2>&5 |
| 13243 | ac_status=$? |
| 13244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13245 | (exit $ac_status); } && |
| 13246 | { ac_try='test -s conftest.$ac_objext' |
| 13247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13248 | (eval $ac_try) 2>&5 |
| 13249 | ac_status=$? |
| 13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13251 | (exit $ac_status); }; }; then |
| 13252 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13253 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13254 | echo "$as_me: failed program was:" >&5 |
| 13255 | cat conftest.$ac_ext >&5 |
| 13256 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13257 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13259 | fi |
| 13260 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13261 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13262 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13263 | |
| 13264 | cat >>confdefs.h <<_ACEOF |
| 13265 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13266 | _ACEOF |
| 13267 | |
| 13268 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13269 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13272 | |
| 13273 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13274 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13275 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13276 | |
| 13277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13278 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13279 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13280 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | cat >conftest.$ac_ext <<_ACEOF |
| 13284 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13285 | #include "confdefs.h" |
| 13286 | #include <time.h> |
| 13287 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13288 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13289 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13290 | |
| 13291 | #ifdef F77_DUMMY_MAIN |
| 13292 | # ifdef __cplusplus |
| 13293 | extern "C" |
| 13294 | # endif |
| 13295 | int F77_DUMMY_MAIN() { return 1; } |
| 13296 | #endif |
| 13297 | int |
| 13298 | main () |
| 13299 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13300 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13301 | ; |
| 13302 | return 0; |
| 13303 | } |
| 13304 | _ACEOF |
| 13305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13307 | (eval $ac_link) 2>&5 |
| 13308 | ac_status=$? |
| 13309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13310 | (exit $ac_status); } && |
| 13311 | { ac_try='test -s conftest$ac_exeext' |
| 13312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13313 | (eval $ac_try) 2>&5 |
| 13314 | ac_status=$? |
| 13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13316 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13317 | ac_cv_var_tzname=yes |
| 13318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | echo "$as_me: failed program was:" >&5 |
| 13320 | cat conftest.$ac_ext >&5 |
| 13321 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13322 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13323 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13324 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13325 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 13326 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13327 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13328 | |
| 13329 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13330 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13331 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13332 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13333 | fi |
| 13334 | fi |
| 13335 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13337 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13338 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13339 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13341 | else |
| 13342 | cat >conftest.$ac_ext <<_ACEOF |
| 13343 | #line $LINENO "configure" |
| 13344 | #include "confdefs.h" |
| 13345 | $ac_includes_default |
| 13346 | #ifdef F77_DUMMY_MAIN |
| 13347 | # ifdef __cplusplus |
| 13348 | extern "C" |
| 13349 | # endif |
| 13350 | int F77_DUMMY_MAIN() { return 1; } |
| 13351 | #endif |
| 13352 | int |
| 13353 | main () |
| 13354 | { |
| 13355 | static struct stat ac_aggr; |
| 13356 | if (ac_aggr.st_rdev) |
| 13357 | return 0; |
| 13358 | ; |
| 13359 | return 0; |
| 13360 | } |
| 13361 | _ACEOF |
| 13362 | rm -f conftest.$ac_objext |
| 13363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13364 | (eval $ac_compile) 2>&5 |
| 13365 | ac_status=$? |
| 13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13367 | (exit $ac_status); } && |
| 13368 | { ac_try='test -s conftest.$ac_objext' |
| 13369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13370 | (eval $ac_try) 2>&5 |
| 13371 | ac_status=$? |
| 13372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13373 | (exit $ac_status); }; }; then |
| 13374 | ac_cv_member_struct_stat_st_rdev=yes |
| 13375 | else |
| 13376 | echo "$as_me: failed program was:" >&5 |
| 13377 | cat conftest.$ac_ext >&5 |
| 13378 | ac_cv_member_struct_stat_st_rdev=no |
| 13379 | fi |
| 13380 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13381 | fi |
| 13382 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13383 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13384 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13385 | |
| 13386 | cat >>confdefs.h <<_ACEOF |
| 13387 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13388 | _ACEOF |
| 13389 | |
| 13390 | |
| 13391 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13392 | #define HAVE_ST_RDEV 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13393 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13394 | |
| 13395 | fi |
| 13396 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | |
| 13398 | |
| 13399 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13400 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13401 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 | cat >conftest.$ac_ext <<_ACEOF |
| 13405 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13406 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | $ac_includes_default |
| 13408 | #ifdef F77_DUMMY_MAIN |
| 13409 | # ifdef __cplusplus |
| 13410 | extern "C" |
| 13411 | # endif |
| 13412 | int F77_DUMMY_MAIN() { return 1; } |
| 13413 | #endif |
| 13414 | int |
| 13415 | main () |
| 13416 | { |
| 13417 | static struct stat ac_aggr; |
| 13418 | if (ac_aggr.st_blksize) |
| 13419 | return 0; |
| 13420 | ; |
| 13421 | return 0; |
| 13422 | } |
| 13423 | _ACEOF |
| 13424 | rm -f conftest.$ac_objext |
| 13425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13426 | (eval $ac_compile) 2>&5 |
| 13427 | ac_status=$? |
| 13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13429 | (exit $ac_status); } && |
| 13430 | { ac_try='test -s conftest.$ac_objext' |
| 13431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13432 | (eval $ac_try) 2>&5 |
| 13433 | ac_status=$? |
| 13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13435 | (exit $ac_status); }; }; then |
| 13436 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13438 | echo "$as_me: failed program was:" >&5 |
| 13439 | cat conftest.$ac_ext >&5 |
| 13440 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13441 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13442 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13445 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13446 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13448 | cat >>confdefs.h <<_ACEOF |
| 13449 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13450 | _ACEOF |
| 13451 | |
| 13452 | |
| 13453 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13454 | #define HAVE_ST_BLKSIZE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13455 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13456 | |
| 13457 | fi |
| 13458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13459 | |
| 13460 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13461 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13462 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | cat >conftest.$ac_ext <<_ACEOF |
| 13466 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13467 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13468 | $ac_includes_default |
| 13469 | #ifdef F77_DUMMY_MAIN |
| 13470 | # ifdef __cplusplus |
| 13471 | extern "C" |
| 13472 | # endif |
| 13473 | int F77_DUMMY_MAIN() { return 1; } |
| 13474 | #endif |
| 13475 | int |
| 13476 | main () |
| 13477 | { |
| 13478 | static struct stat ac_aggr; |
| 13479 | if (ac_aggr.st_blocks) |
| 13480 | return 0; |
| 13481 | ; |
| 13482 | return 0; |
| 13483 | } |
| 13484 | _ACEOF |
| 13485 | rm -f conftest.$ac_objext |
| 13486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13487 | (eval $ac_compile) 2>&5 |
| 13488 | ac_status=$? |
| 13489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13490 | (exit $ac_status); } && |
| 13491 | { ac_try='test -s conftest.$ac_objext' |
| 13492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13493 | (eval $ac_try) 2>&5 |
| 13494 | ac_status=$? |
| 13495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13496 | (exit $ac_status); }; }; then |
| 13497 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13499 | echo "$as_me: failed program was:" >&5 |
| 13500 | cat conftest.$ac_ext >&5 |
| 13501 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13502 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13503 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13504 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13505 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13506 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13507 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13509 | cat >>confdefs.h <<_ACEOF |
| 13510 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13511 | _ACEOF |
| 13512 | |
| 13513 | |
| 13514 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13515 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13516 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13517 | |
| 13518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13519 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13520 | fi |
| 13521 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | |
| 13524 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13525 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13526 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13529 | cat >conftest.$ac_ext <<_ACEOF |
| 13530 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13531 | #include "confdefs.h" |
| 13532 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13533 | #ifdef F77_DUMMY_MAIN |
| 13534 | # ifdef __cplusplus |
| 13535 | extern "C" |
| 13536 | # endif |
| 13537 | int F77_DUMMY_MAIN() { return 1; } |
| 13538 | #endif |
| 13539 | int |
| 13540 | main () |
| 13541 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13542 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13543 | ; |
| 13544 | return 0; |
| 13545 | } |
| 13546 | _ACEOF |
| 13547 | rm -f conftest.$ac_objext |
| 13548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13549 | (eval $ac_compile) 2>&5 |
| 13550 | ac_status=$? |
| 13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13552 | (exit $ac_status); } && |
| 13553 | { ac_try='test -s conftest.$ac_objext' |
| 13554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13555 | (eval $ac_try) 2>&5 |
| 13556 | ac_status=$? |
| 13557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13558 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13559 | ac_cv_header_time_altzone=yes |
| 13560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13561 | echo "$as_me: failed program was:" >&5 |
| 13562 | cat conftest.$ac_ext >&5 |
| 13563 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13564 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13565 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13566 | fi |
| 13567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13568 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13569 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13570 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13571 | |
| 13572 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13573 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13574 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13575 | |
| 13576 | fi |
| 13577 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13578 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13579 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13580 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13581 | cat >conftest.$ac_ext <<_ACEOF |
| 13582 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13583 | #include "confdefs.h" |
| 13584 | |
| 13585 | #include <sys/types.h> |
| 13586 | #include <sys/select.h> |
| 13587 | #include <sys/time.h> |
| 13588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 | #ifdef F77_DUMMY_MAIN |
| 13590 | # ifdef __cplusplus |
| 13591 | extern "C" |
| 13592 | # endif |
| 13593 | int F77_DUMMY_MAIN() { return 1; } |
| 13594 | #endif |
| 13595 | int |
| 13596 | main () |
| 13597 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13598 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13599 | ; |
| 13600 | return 0; |
| 13601 | } |
| 13602 | _ACEOF |
| 13603 | rm -f conftest.$ac_objext |
| 13604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13605 | (eval $ac_compile) 2>&5 |
| 13606 | ac_status=$? |
| 13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13608 | (exit $ac_status); } && |
| 13609 | { ac_try='test -s conftest.$ac_objext' |
| 13610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13611 | (eval $ac_try) 2>&5 |
| 13612 | ac_status=$? |
| 13613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13614 | (exit $ac_status); }; }; then |
| 13615 | |
| 13616 | |
| 13617 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13618 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13619 | _ACEOF |
| 13620 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13621 | was_it_defined=yes |
| 13622 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13624 | echo "$as_me: failed program was:" >&5 |
| 13625 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13626 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13627 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13628 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13629 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13631 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13632 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13633 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13636 | cat >conftest.$ac_ext <<_ACEOF |
| 13637 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13638 | #include "confdefs.h" |
| 13639 | |
| 13640 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13641 | #ifdef F77_DUMMY_MAIN |
| 13642 | # ifdef __cplusplus |
| 13643 | extern "C" |
| 13644 | # endif |
| 13645 | int F77_DUMMY_MAIN() { return 1; } |
| 13646 | #endif |
| 13647 | int |
| 13648 | main () |
| 13649 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13650 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13651 | ; |
| 13652 | return 0; |
| 13653 | } |
| 13654 | _ACEOF |
| 13655 | rm -f conftest.$ac_objext |
| 13656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13657 | (eval $ac_compile) 2>&5 |
| 13658 | ac_status=$? |
| 13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13660 | (exit $ac_status); } && |
| 13661 | { ac_try='test -s conftest.$ac_objext' |
| 13662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13663 | (eval $ac_try) 2>&5 |
| 13664 | ac_status=$? |
| 13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13666 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13667 | ac_cv_struct_addrinfo=yes |
| 13668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13669 | echo "$as_me: failed program was:" >&5 |
| 13670 | cat conftest.$ac_ext >&5 |
| 13671 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13673 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13674 | fi |
| 13675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13676 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13677 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13678 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 | |
| 13680 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13681 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13682 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13683 | |
| 13684 | fi |
| 13685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13686 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13687 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13688 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13690 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | cat >conftest.$ac_ext <<_ACEOF |
| 13692 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13693 | #include "confdefs.h" |
| 13694 | |
| 13695 | # include <sys/types.h> |
| 13696 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13697 | #ifdef F77_DUMMY_MAIN |
| 13698 | # ifdef __cplusplus |
| 13699 | extern "C" |
| 13700 | # endif |
| 13701 | int F77_DUMMY_MAIN() { return 1; } |
| 13702 | #endif |
| 13703 | int |
| 13704 | main () |
| 13705 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13706 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13707 | ; |
| 13708 | return 0; |
| 13709 | } |
| 13710 | _ACEOF |
| 13711 | rm -f conftest.$ac_objext |
| 13712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13713 | (eval $ac_compile) 2>&5 |
| 13714 | ac_status=$? |
| 13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13716 | (exit $ac_status); } && |
| 13717 | { ac_try='test -s conftest.$ac_objext' |
| 13718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13719 | (eval $ac_try) 2>&5 |
| 13720 | ac_status=$? |
| 13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13722 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13723 | ac_cv_struct_sockaddr_storage=yes |
| 13724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13725 | echo "$as_me: failed program was:" >&5 |
| 13726 | cat conftest.$ac_ext >&5 |
| 13727 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13729 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13730 | fi |
| 13731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13732 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13733 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13734 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | |
| 13736 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13737 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13738 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13739 | |
| 13740 | fi |
| 13741 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13742 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13743 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13745 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13746 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13747 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13750 | cat >conftest.$ac_ext <<_ACEOF |
| 13751 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13752 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13753 | $ac_includes_default |
| 13754 | #ifdef F77_DUMMY_MAIN |
| 13755 | # ifdef __cplusplus |
| 13756 | extern "C" |
| 13757 | # endif |
| 13758 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13759 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13760 | int |
| 13761 | main () |
| 13762 | { |
| 13763 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13764 | test_array [0] = 0 |
| 13765 | |
| 13766 | ; |
| 13767 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13768 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13769 | _ACEOF |
| 13770 | rm -f conftest.$ac_objext |
| 13771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13772 | (eval $ac_compile) 2>&5 |
| 13773 | ac_status=$? |
| 13774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13775 | (exit $ac_status); } && |
| 13776 | { ac_try='test -s conftest.$ac_objext' |
| 13777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13778 | (eval $ac_try) 2>&5 |
| 13779 | ac_status=$? |
| 13780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13781 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13782 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13783 | else |
| 13784 | echo "$as_me: failed program was:" >&5 |
| 13785 | cat conftest.$ac_ext >&5 |
| 13786 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13787 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13788 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13789 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13790 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13791 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13792 | 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] | 13793 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13794 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13795 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13796 | |
| 13797 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13799 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13800 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13801 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13804 | ac_cv_prog_cc_stdc=no |
| 13805 | ac_save_CC=$CC |
| 13806 | cat >conftest.$ac_ext <<_ACEOF |
| 13807 | #line $LINENO "configure" |
| 13808 | #include "confdefs.h" |
| 13809 | #include <stdarg.h> |
| 13810 | #include <stdio.h> |
| 13811 | #include <sys/types.h> |
| 13812 | #include <sys/stat.h> |
| 13813 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13814 | struct buf { int x; }; |
| 13815 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13816 | static char *e (p, i) |
| 13817 | char **p; |
| 13818 | int i; |
| 13819 | { |
| 13820 | return p[i]; |
| 13821 | } |
| 13822 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13823 | { |
| 13824 | char *s; |
| 13825 | va_list v; |
| 13826 | va_start (v,p); |
| 13827 | s = g (p, va_arg (v,int)); |
| 13828 | va_end (v); |
| 13829 | return s; |
| 13830 | } |
| 13831 | int test (int i, double x); |
| 13832 | struct s1 {int (*f) (int a);}; |
| 13833 | struct s2 {int (*f) (double a);}; |
| 13834 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13835 | int argc; |
| 13836 | char **argv; |
| 13837 | #ifdef F77_DUMMY_MAIN |
| 13838 | # ifdef __cplusplus |
| 13839 | extern "C" |
| 13840 | # endif |
| 13841 | int F77_DUMMY_MAIN() { return 1; } |
| 13842 | #endif |
| 13843 | int |
| 13844 | main () |
| 13845 | { |
| 13846 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13847 | ; |
| 13848 | return 0; |
| 13849 | } |
| 13850 | _ACEOF |
| 13851 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13852 | # breaks some systems' header files. |
| 13853 | # AIX -qlanglvl=ansi |
| 13854 | # Ultrix and OSF/1 -std1 |
| 13855 | # HP-UX 10.20 and later -Ae |
| 13856 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13857 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13858 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13859 | do |
| 13860 | CC="$ac_save_CC $ac_arg" |
| 13861 | rm -f conftest.$ac_objext |
| 13862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13863 | (eval $ac_compile) 2>&5 |
| 13864 | ac_status=$? |
| 13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13866 | (exit $ac_status); } && |
| 13867 | { ac_try='test -s conftest.$ac_objext' |
| 13868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13869 | (eval $ac_try) 2>&5 |
| 13870 | ac_status=$? |
| 13871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13872 | (exit $ac_status); }; }; then |
| 13873 | ac_cv_prog_cc_stdc=$ac_arg |
| 13874 | break |
| 13875 | else |
| 13876 | echo "$as_me: failed program was:" >&5 |
| 13877 | cat conftest.$ac_ext >&5 |
| 13878 | fi |
| 13879 | rm -f conftest.$ac_objext |
| 13880 | done |
| 13881 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13882 | CC=$ac_save_CC |
| 13883 | |
| 13884 | fi |
| 13885 | |
| 13886 | case "x$ac_cv_prog_cc_stdc" in |
| 13887 | x|xno) |
| 13888 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13889 | echo "${ECHO_T}none needed" >&6 ;; |
| 13890 | *) |
| 13891 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13892 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13893 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13894 | esac |
| 13895 | |
| 13896 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13897 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13898 | if test "${ac_cv_c_const+set}" = set; then |
| 13899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13900 | else |
| 13901 | cat >conftest.$ac_ext <<_ACEOF |
| 13902 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13903 | #include "confdefs.h" |
| 13904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13905 | #ifdef F77_DUMMY_MAIN |
| 13906 | # ifdef __cplusplus |
| 13907 | extern "C" |
| 13908 | # endif |
| 13909 | int F77_DUMMY_MAIN() { return 1; } |
| 13910 | #endif |
| 13911 | int |
| 13912 | main () |
| 13913 | { |
| 13914 | /* FIXME: Include the comments suggested by Paul. */ |
| 13915 | #ifndef __cplusplus |
| 13916 | /* Ultrix mips cc rejects this. */ |
| 13917 | typedef int charset[2]; |
| 13918 | const charset x; |
| 13919 | /* SunOS 4.1.1 cc rejects this. */ |
| 13920 | char const *const *ccp; |
| 13921 | char **p; |
| 13922 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13923 | struct point {int x, y;}; |
| 13924 | static struct point const zero = {0,0}; |
| 13925 | /* AIX XL C 1.02.0.0 rejects this. |
| 13926 | It does not let you subtract one const X* pointer from another in |
| 13927 | an arm of an if-expression whose if-part is not a constant |
| 13928 | expression */ |
| 13929 | const char *g = "string"; |
| 13930 | ccp = &g + (g ? g-g : 0); |
| 13931 | /* HPUX 7.0 cc rejects these. */ |
| 13932 | ++ccp; |
| 13933 | p = (char**) ccp; |
| 13934 | ccp = (char const *const *) p; |
| 13935 | { /* SCO 3.2v4 cc rejects this. */ |
| 13936 | char *t; |
| 13937 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13939 | *t++ = 0; |
| 13940 | } |
| 13941 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13942 | int x[] = {25, 17}; |
| 13943 | const int *foo = &x[0]; |
| 13944 | ++foo; |
| 13945 | } |
| 13946 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13947 | typedef const int *iptr; |
| 13948 | iptr p = 0; |
| 13949 | ++p; |
| 13950 | } |
| 13951 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13952 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13953 | struct s { int j; const int *ap[3]; }; |
| 13954 | struct s *b; b->j = 5; |
| 13955 | } |
| 13956 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13957 | const int foo = 10; |
| 13958 | } |
| 13959 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13961 | ; |
| 13962 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13963 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13964 | _ACEOF |
| 13965 | rm -f conftest.$ac_objext |
| 13966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13967 | (eval $ac_compile) 2>&5 |
| 13968 | ac_status=$? |
| 13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13970 | (exit $ac_status); } && |
| 13971 | { ac_try='test -s conftest.$ac_objext' |
| 13972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13973 | (eval $ac_try) 2>&5 |
| 13974 | ac_status=$? |
| 13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13976 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13977 | ac_cv_c_const=yes |
| 13978 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13979 | echo "$as_me: failed program was:" >&5 |
| 13980 | cat conftest.$ac_ext >&5 |
| 13981 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13982 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13983 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13984 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13985 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13986 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13987 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13988 | |
| 13989 | cat >>confdefs.h <<\_ACEOF |
| 13990 | #define const |
| 13991 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13992 | |
| 13993 | fi |
| 13994 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13995 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13996 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13998 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13999 | cat >conftest.$ac_ext <<_ACEOF |
| 14000 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14001 | #include "confdefs.h" |
| 14002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | #ifdef F77_DUMMY_MAIN |
| 14004 | # ifdef __cplusplus |
| 14005 | extern "C" |
| 14006 | # endif |
| 14007 | int F77_DUMMY_MAIN() { return 1; } |
| 14008 | #endif |
| 14009 | int |
| 14010 | main () |
| 14011 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14012 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | ; |
| 14014 | return 0; |
| 14015 | } |
| 14016 | _ACEOF |
| 14017 | rm -f conftest.$ac_objext |
| 14018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14019 | (eval $ac_compile) 2>&5 |
| 14020 | ac_status=$? |
| 14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14022 | (exit $ac_status); } && |
| 14023 | { ac_try='test -s conftest.$ac_objext' |
| 14024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14025 | (eval $ac_try) 2>&5 |
| 14026 | ac_status=$? |
| 14027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14028 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14029 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14030 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14031 | echo "$as_me: failed program was:" >&5 |
| 14032 | cat conftest.$ac_ext >&5 |
| 14033 | |
| 14034 | cat >>confdefs.h <<\_ACEOF |
| 14035 | #define volatile |
| 14036 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14037 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14038 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14039 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14041 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14042 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14043 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14044 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14045 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14046 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14047 | cat >conftest.$ac_ext <<_ACEOF |
| 14048 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14049 | #include "confdefs.h" |
| 14050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14051 | #ifdef F77_DUMMY_MAIN |
| 14052 | # ifdef __cplusplus |
| 14053 | extern "C" |
| 14054 | # endif |
| 14055 | int F77_DUMMY_MAIN() { return 1; } |
| 14056 | #endif |
| 14057 | int |
| 14058 | main () |
| 14059 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14060 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | ; |
| 14062 | return 0; |
| 14063 | } |
| 14064 | _ACEOF |
| 14065 | rm -f conftest.$ac_objext |
| 14066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14067 | (eval $ac_compile) 2>&5 |
| 14068 | ac_status=$? |
| 14069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14070 | (exit $ac_status); } && |
| 14071 | { ac_try='test -s conftest.$ac_objext' |
| 14072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14073 | (eval $ac_try) 2>&5 |
| 14074 | ac_status=$? |
| 14075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14076 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14077 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14079 | echo "$as_me: failed program was:" >&5 |
| 14080 | cat conftest.$ac_ext >&5 |
| 14081 | |
| 14082 | cat >>confdefs.h <<\_ACEOF |
| 14083 | #define signed |
| 14084 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14085 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14086 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14088 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14089 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14090 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14091 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14092 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14093 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14094 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 14095 | cat >conftest.$ac_ext <<_ACEOF |
| 14096 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14097 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14098 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14099 | #ifdef F77_DUMMY_MAIN |
| 14100 | # ifdef __cplusplus |
| 14101 | extern "C" |
| 14102 | # endif |
| 14103 | int F77_DUMMY_MAIN() { return 1; } |
| 14104 | #endif |
| 14105 | int |
| 14106 | main () |
| 14107 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14108 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14109 | ; |
| 14110 | return 0; |
| 14111 | } |
| 14112 | _ACEOF |
| 14113 | rm -f conftest.$ac_objext |
| 14114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14115 | (eval $ac_compile) 2>&5 |
| 14116 | ac_status=$? |
| 14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14118 | (exit $ac_status); } && |
| 14119 | { ac_try='test -s conftest.$ac_objext' |
| 14120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14121 | (eval $ac_try) 2>&5 |
| 14122 | ac_status=$? |
| 14123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14124 | (exit $ac_status); }; }; then |
| 14125 | |
| 14126 | |
| 14127 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14128 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14129 | _ACEOF |
| 14130 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14131 | have_prototypes=yes |
| 14132 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14134 | echo "$as_me: failed program was:" >&5 |
| 14135 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14137 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14138 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14139 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14140 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14141 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14142 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14143 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14144 | cat >conftest.$ac_ext <<_ACEOF |
| 14145 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14146 | #include "confdefs.h" |
| 14147 | |
| 14148 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14149 | int foo(int x, ...) { |
| 14150 | va_list va; |
| 14151 | va_start(va, x); |
| 14152 | va_arg(va, int); |
| 14153 | va_arg(va, char *); |
| 14154 | va_arg(va, double); |
| 14155 | return 0; |
| 14156 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14158 | #ifdef F77_DUMMY_MAIN |
| 14159 | # ifdef __cplusplus |
| 14160 | extern "C" |
| 14161 | # endif |
| 14162 | int F77_DUMMY_MAIN() { return 1; } |
| 14163 | #endif |
| 14164 | int |
| 14165 | main () |
| 14166 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14167 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | ; |
| 14169 | return 0; |
| 14170 | } |
| 14171 | _ACEOF |
| 14172 | rm -f conftest.$ac_objext |
| 14173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14174 | (eval $ac_compile) 2>&5 |
| 14175 | ac_status=$? |
| 14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14177 | (exit $ac_status); } && |
| 14178 | { ac_try='test -s conftest.$ac_objext' |
| 14179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14180 | (eval $ac_try) 2>&5 |
| 14181 | ac_status=$? |
| 14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14183 | (exit $ac_status); }; }; then |
| 14184 | |
| 14185 | |
| 14186 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14187 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14188 | _ACEOF |
| 14189 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14190 | works=yes |
| 14191 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14193 | echo "$as_me: failed program was:" >&5 |
| 14194 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14195 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14196 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14197 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14198 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14199 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14200 | if test "$have_prototypes" = yes; then |
| 14201 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14202 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14203 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14204 | cat >conftest.$ac_ext <<_ACEOF |
| 14205 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14206 | #include "confdefs.h" |
| 14207 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14208 | #ifdef F77_DUMMY_MAIN |
| 14209 | # ifdef __cplusplus |
| 14210 | extern "C" |
| 14211 | # endif |
| 14212 | int F77_DUMMY_MAIN() { return 1; } |
| 14213 | #endif |
| 14214 | int |
| 14215 | main () |
| 14216 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14217 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14218 | ; |
| 14219 | return 0; |
| 14220 | } |
| 14221 | _ACEOF |
| 14222 | rm -f conftest.$ac_objext |
| 14223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14224 | (eval $ac_compile) 2>&5 |
| 14225 | ac_status=$? |
| 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14227 | (exit $ac_status); } && |
| 14228 | { ac_try='test -s conftest.$ac_objext' |
| 14229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14230 | (eval $ac_try) 2>&5 |
| 14231 | ac_status=$? |
| 14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14233 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14234 | : |
| 14235 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14236 | echo "$as_me: failed program was:" >&5 |
| 14237 | cat conftest.$ac_ext >&5 |
| 14238 | |
| 14239 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14240 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14241 | _ACEOF |
| 14242 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14243 | bad_prototypes=yes |
| 14244 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14246 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14247 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14248 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14249 | fi |
| 14250 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14251 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14252 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14253 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14254 | cat >conftest.$ac_ext <<_ACEOF |
| 14255 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14256 | #include "confdefs.h" |
| 14257 | #include <sys/types.h> |
| 14258 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14259 | #ifdef F77_DUMMY_MAIN |
| 14260 | # ifdef __cplusplus |
| 14261 | extern "C" |
| 14262 | # endif |
| 14263 | int F77_DUMMY_MAIN() { return 1; } |
| 14264 | #endif |
| 14265 | int |
| 14266 | main () |
| 14267 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14268 | struct sockaddr x; |
| 14269 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14270 | ; |
| 14271 | return 0; |
| 14272 | } |
| 14273 | _ACEOF |
| 14274 | rm -f conftest.$ac_objext |
| 14275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14276 | (eval $ac_compile) 2>&5 |
| 14277 | ac_status=$? |
| 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14279 | (exit $ac_status); } && |
| 14280 | { ac_try='test -s conftest.$ac_objext' |
| 14281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14282 | (eval $ac_try) 2>&5 |
| 14283 | ac_status=$? |
| 14284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14285 | (exit $ac_status); }; }; then |
| 14286 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14287 | echo "${ECHO_T}yes" >&6 |
| 14288 | |
| 14289 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14290 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14292 | |
| 14293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14294 | echo "$as_me: failed program was:" >&5 |
| 14295 | cat conftest.$ac_ext >&5 |
| 14296 | echo "$as_me:$LINENO: result: no" >&5 |
| 14297 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14298 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14299 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14300 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14301 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 14303 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 14304 | cat >conftest.$ac_ext <<_ACEOF |
| 14305 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14306 | #include "confdefs.h" |
| 14307 | |
| 14308 | #ifdef HAVE_STDARG_PROTOTYPES |
| 14309 | #include <stdarg.h> |
| 14310 | #else |
| 14311 | #include <varargs.h> |
| 14312 | #endif |
| 14313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | #ifdef F77_DUMMY_MAIN |
| 14315 | # ifdef __cplusplus |
| 14316 | extern "C" |
| 14317 | # endif |
| 14318 | int F77_DUMMY_MAIN() { return 1; } |
| 14319 | #endif |
| 14320 | int |
| 14321 | main () |
| 14322 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14323 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14324 | ; |
| 14325 | return 0; |
| 14326 | } |
| 14327 | _ACEOF |
| 14328 | rm -f conftest.$ac_objext |
| 14329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14330 | (eval $ac_compile) 2>&5 |
| 14331 | ac_status=$? |
| 14332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14333 | (exit $ac_status); } && |
| 14334 | { ac_try='test -s conftest.$ac_objext' |
| 14335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14336 | (eval $ac_try) 2>&5 |
| 14337 | ac_status=$? |
| 14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14339 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14340 | : |
| 14341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14342 | echo "$as_me: failed program was:" >&5 |
| 14343 | cat conftest.$ac_ext >&5 |
| 14344 | |
| 14345 | |
| 14346 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14347 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14348 | _ACEOF |
| 14349 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14350 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14353 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14354 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14355 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14356 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14357 | # 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] | 14358 | |
| 14359 | |
| 14360 | |
| 14361 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14362 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14363 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14366 | cat >conftest.$ac_ext <<_ACEOF |
| 14367 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14368 | #include "confdefs.h" |
| 14369 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14370 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14371 | #include <assert.h> |
| 14372 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14373 | #ifdef __cplusplus |
| 14374 | extern "C" |
| 14375 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14376 | /* 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] | 14377 | builtin and then its argument prototype would still apply. */ |
| 14378 | char gethostbyname_r (); |
| 14379 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14381 | #ifdef F77_DUMMY_MAIN |
| 14382 | # ifdef __cplusplus |
| 14383 | extern "C" |
| 14384 | # endif |
| 14385 | int F77_DUMMY_MAIN() { return 1; } |
| 14386 | #endif |
| 14387 | int |
| 14388 | main () |
| 14389 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14390 | /* The GNU C library defines this for functions which it implements |
| 14391 | to always fail with ENOSYS. Some functions are actually named |
| 14392 | something starting with __ and the normal name is an alias. */ |
| 14393 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14394 | choke me |
| 14395 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14396 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14397 | #endif |
| 14398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | ; |
| 14400 | return 0; |
| 14401 | } |
| 14402 | _ACEOF |
| 14403 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14405 | (eval $ac_link) 2>&5 |
| 14406 | ac_status=$? |
| 14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14408 | (exit $ac_status); } && |
| 14409 | { ac_try='test -s conftest$ac_exeext' |
| 14410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14411 | (eval $ac_try) 2>&5 |
| 14412 | ac_status=$? |
| 14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14414 | (exit $ac_status); }; }; then |
| 14415 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14417 | echo "$as_me: failed program was:" >&5 |
| 14418 | cat conftest.$ac_ext >&5 |
| 14419 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14421 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14423 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14424 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14425 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14427 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14428 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14429 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14432 | 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] | 14433 | OLD_CFLAGS=$CFLAGS |
| 14434 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | cat >conftest.$ac_ext <<_ACEOF |
| 14436 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14437 | #include "confdefs.h" |
| 14438 | |
| 14439 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | |
| 14441 | #ifdef F77_DUMMY_MAIN |
| 14442 | # ifdef __cplusplus |
| 14443 | extern "C" |
| 14444 | # endif |
| 14445 | int F77_DUMMY_MAIN() { return 1; } |
| 14446 | #endif |
| 14447 | int |
| 14448 | main () |
| 14449 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14450 | |
| 14451 | char *name; |
| 14452 | struct hostent *he, *res; |
| 14453 | char buffer[2048]; |
| 14454 | int buflen = 2048; |
| 14455 | int h_errnop; |
| 14456 | |
| 14457 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14458 | |
| 14459 | ; |
| 14460 | return 0; |
| 14461 | } |
| 14462 | _ACEOF |
| 14463 | rm -f conftest.$ac_objext |
| 14464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14465 | (eval $ac_compile) 2>&5 |
| 14466 | ac_status=$? |
| 14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14468 | (exit $ac_status); } && |
| 14469 | { ac_try='test -s conftest.$ac_objext' |
| 14470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14471 | (eval $ac_try) 2>&5 |
| 14472 | ac_status=$? |
| 14473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14474 | (exit $ac_status); }; }; then |
| 14475 | |
| 14476 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14477 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14480 | |
| 14481 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14482 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14485 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14486 | echo "${ECHO_T}yes" >&6 |
| 14487 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14489 | echo "$as_me: failed program was:" >&5 |
| 14490 | cat conftest.$ac_ext >&5 |
| 14491 | |
| 14492 | echo "$as_me:$LINENO: result: no" >&5 |
| 14493 | echo "${ECHO_T}no" >&6 |
| 14494 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14495 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14496 | cat >conftest.$ac_ext <<_ACEOF |
| 14497 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14498 | #include "confdefs.h" |
| 14499 | |
| 14500 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14501 | |
| 14502 | #ifdef F77_DUMMY_MAIN |
| 14503 | # ifdef __cplusplus |
| 14504 | extern "C" |
| 14505 | # endif |
| 14506 | int F77_DUMMY_MAIN() { return 1; } |
| 14507 | #endif |
| 14508 | int |
| 14509 | main () |
| 14510 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14511 | |
| 14512 | char *name; |
| 14513 | struct hostent *he; |
| 14514 | char buffer[2048]; |
| 14515 | int buflen = 2048; |
| 14516 | int h_errnop; |
| 14517 | |
| 14518 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | |
| 14520 | ; |
| 14521 | return 0; |
| 14522 | } |
| 14523 | _ACEOF |
| 14524 | rm -f conftest.$ac_objext |
| 14525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14526 | (eval $ac_compile) 2>&5 |
| 14527 | ac_status=$? |
| 14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14529 | (exit $ac_status); } && |
| 14530 | { ac_try='test -s conftest.$ac_objext' |
| 14531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14532 | (eval $ac_try) 2>&5 |
| 14533 | ac_status=$? |
| 14534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14535 | (exit $ac_status); }; }; then |
| 14536 | |
| 14537 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14538 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14541 | |
| 14542 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14543 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14544 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14546 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14547 | echo "${ECHO_T}yes" >&6 |
| 14548 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14549 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | echo "$as_me: failed program was:" >&5 |
| 14551 | cat conftest.$ac_ext >&5 |
| 14552 | |
| 14553 | echo "$as_me:$LINENO: result: no" >&5 |
| 14554 | echo "${ECHO_T}no" >&6 |
| 14555 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14556 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14557 | cat >conftest.$ac_ext <<_ACEOF |
| 14558 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14559 | #include "confdefs.h" |
| 14560 | |
| 14561 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14562 | |
| 14563 | #ifdef F77_DUMMY_MAIN |
| 14564 | # ifdef __cplusplus |
| 14565 | extern "C" |
| 14566 | # endif |
| 14567 | int F77_DUMMY_MAIN() { return 1; } |
| 14568 | #endif |
| 14569 | int |
| 14570 | main () |
| 14571 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14572 | |
| 14573 | char *name; |
| 14574 | struct hostent *he; |
| 14575 | struct hostent_data data; |
| 14576 | |
| 14577 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14578 | |
| 14579 | ; |
| 14580 | return 0; |
| 14581 | } |
| 14582 | _ACEOF |
| 14583 | rm -f conftest.$ac_objext |
| 14584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14585 | (eval $ac_compile) 2>&5 |
| 14586 | ac_status=$? |
| 14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14588 | (exit $ac_status); } && |
| 14589 | { ac_try='test -s conftest.$ac_objext' |
| 14590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14591 | (eval $ac_try) 2>&5 |
| 14592 | ac_status=$? |
| 14593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14594 | (exit $ac_status); }; }; then |
| 14595 | |
| 14596 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14597 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14598 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14600 | |
| 14601 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14602 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14603 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14605 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14606 | echo "${ECHO_T}yes" >&6 |
| 14607 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14609 | echo "$as_me: failed program was:" >&5 |
| 14610 | cat conftest.$ac_ext >&5 |
| 14611 | |
| 14612 | echo "$as_me:$LINENO: result: no" >&5 |
| 14613 | echo "${ECHO_T}no" >&6 |
| 14614 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14615 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14617 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14618 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14620 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14621 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14622 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14623 | CFLAGS=$OLD_CFLAGS |
| 14624 | |
| 14625 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14627 | |
| 14628 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14629 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14631 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14632 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14633 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14636 | cat >conftest.$ac_ext <<_ACEOF |
| 14637 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14638 | #include "confdefs.h" |
| 14639 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14640 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14641 | #include <assert.h> |
| 14642 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14643 | #ifdef __cplusplus |
| 14644 | extern "C" |
| 14645 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14646 | /* 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] | 14647 | builtin and then its argument prototype would still apply. */ |
| 14648 | char $ac_func (); |
| 14649 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14651 | #ifdef F77_DUMMY_MAIN |
| 14652 | # ifdef __cplusplus |
| 14653 | extern "C" |
| 14654 | # endif |
| 14655 | int F77_DUMMY_MAIN() { return 1; } |
| 14656 | #endif |
| 14657 | int |
| 14658 | main () |
| 14659 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14660 | /* The GNU C library defines this for functions which it implements |
| 14661 | to always fail with ENOSYS. Some functions are actually named |
| 14662 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14663 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14664 | choke me |
| 14665 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14666 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14667 | #endif |
| 14668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14669 | ; |
| 14670 | return 0; |
| 14671 | } |
| 14672 | _ACEOF |
| 14673 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14675 | (eval $ac_link) 2>&5 |
| 14676 | ac_status=$? |
| 14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14678 | (exit $ac_status); } && |
| 14679 | { ac_try='test -s conftest$ac_exeext' |
| 14680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14681 | (eval $ac_try) 2>&5 |
| 14682 | ac_status=$? |
| 14683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14684 | (exit $ac_status); }; }; then |
| 14685 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14687 | echo "$as_me: failed program was:" >&5 |
| 14688 | cat conftest.$ac_ext >&5 |
| 14689 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14690 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14691 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14692 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14694 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14695 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14696 | cat >>confdefs.h <<_ACEOF |
| 14697 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14698 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14699 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14700 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14701 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14702 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14703 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14704 | fi |
| 14705 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14706 | |
| 14707 | |
| 14708 | |
| 14709 | |
| 14710 | |
| 14711 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14712 | # checks for system services |
| 14713 | # (none yet) |
| 14714 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14715 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14716 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14717 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14718 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14721 | cat >conftest.$ac_ext <<_ACEOF |
| 14722 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14723 | #include "confdefs.h" |
| 14724 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14725 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14726 | #include <assert.h> |
| 14727 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | #ifdef __cplusplus |
| 14729 | extern "C" |
| 14730 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14731 | /* 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] | 14732 | builtin and then its argument prototype would still apply. */ |
| 14733 | char __fpu_control (); |
| 14734 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14736 | #ifdef F77_DUMMY_MAIN |
| 14737 | # ifdef __cplusplus |
| 14738 | extern "C" |
| 14739 | # endif |
| 14740 | int F77_DUMMY_MAIN() { return 1; } |
| 14741 | #endif |
| 14742 | int |
| 14743 | main () |
| 14744 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14745 | /* The GNU C library defines this for functions which it implements |
| 14746 | to always fail with ENOSYS. Some functions are actually named |
| 14747 | something starting with __ and the normal name is an alias. */ |
| 14748 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14749 | choke me |
| 14750 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14751 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14752 | #endif |
| 14753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14754 | ; |
| 14755 | return 0; |
| 14756 | } |
| 14757 | _ACEOF |
| 14758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14760 | (eval $ac_link) 2>&5 |
| 14761 | ac_status=$? |
| 14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14763 | (exit $ac_status); } && |
| 14764 | { ac_try='test -s conftest$ac_exeext' |
| 14765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14766 | (eval $ac_try) 2>&5 |
| 14767 | ac_status=$? |
| 14768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14769 | (exit $ac_status); }; }; then |
| 14770 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14771 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14772 | echo "$as_me: failed program was:" >&5 |
| 14773 | cat conftest.$ac_ext >&5 |
| 14774 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14775 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14776 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14778 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14779 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14780 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14781 | : |
| 14782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14783 | |
| 14784 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14785 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14786 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14789 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14790 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14791 | cat >conftest.$ac_ext <<_ACEOF |
| 14792 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14793 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14794 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14795 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14796 | #ifdef __cplusplus |
| 14797 | extern "C" |
| 14798 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14799 | /* 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] | 14800 | builtin and then its argument prototype would still apply. */ |
| 14801 | char __fpu_control (); |
| 14802 | #ifdef F77_DUMMY_MAIN |
| 14803 | # ifdef __cplusplus |
| 14804 | extern "C" |
| 14805 | # endif |
| 14806 | int F77_DUMMY_MAIN() { return 1; } |
| 14807 | #endif |
| 14808 | int |
| 14809 | main () |
| 14810 | { |
| 14811 | __fpu_control (); |
| 14812 | ; |
| 14813 | return 0; |
| 14814 | } |
| 14815 | _ACEOF |
| 14816 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14818 | (eval $ac_link) 2>&5 |
| 14819 | ac_status=$? |
| 14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14821 | (exit $ac_status); } && |
| 14822 | { ac_try='test -s conftest$ac_exeext' |
| 14823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14824 | (eval $ac_try) 2>&5 |
| 14825 | ac_status=$? |
| 14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14827 | (exit $ac_status); }; }; then |
| 14828 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14830 | echo "$as_me: failed program was:" >&5 |
| 14831 | cat conftest.$ac_ext >&5 |
| 14832 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14834 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14835 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14838 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14839 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14840 | cat >>confdefs.h <<_ACEOF |
| 14841 | #define HAVE_LIBIEEE 1 |
| 14842 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14843 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14844 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14845 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14846 | fi |
| 14847 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14848 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14849 | fi |
| 14850 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14851 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14852 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14853 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14854 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14855 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14856 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14857 | if test "${with_fpectl+set}" = set; then |
| 14858 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14859 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14860 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14861 | then |
| 14862 | |
| 14863 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14864 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14865 | _ACEOF |
| 14866 | |
| 14867 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14868 | echo "${ECHO_T}yes" >&6 |
| 14869 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14870 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14871 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14873 | echo "$as_me:$LINENO: result: no" >&5 |
| 14874 | echo "${ECHO_T}no" >&6 |
| 14875 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14876 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14877 | # check for --with-libm=... |
| 14878 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14879 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14880 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14881 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14882 | *) LIBM=-lm |
| 14883 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14884 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14885 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14886 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14887 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14888 | if test "${with_libm+set}" = set; then |
| 14889 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14890 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14891 | if test "$withval" = no |
| 14892 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14893 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14894 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14895 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14896 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14897 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14898 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14899 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14900 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14901 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14902 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14904 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14905 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14906 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14907 | |
| 14908 | # check for --with-libc=... |
| 14909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14911 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14912 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14913 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14914 | if test "${with_libc+set}" = set; then |
| 14915 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14916 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14917 | if test "$withval" = no |
| 14918 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14919 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14920 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14921 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14922 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14924 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14925 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14926 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14927 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14928 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14930 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14931 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14932 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14933 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14934 | # check for hypot() in math library |
| 14935 | LIBS_SAVE=$LIBS |
| 14936 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14937 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14938 | for ac_func in hypot |
| 14939 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14940 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14941 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14942 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14943 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14946 | cat >conftest.$ac_ext <<_ACEOF |
| 14947 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14948 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14949 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14950 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14951 | #include <assert.h> |
| 14952 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 | #ifdef __cplusplus |
| 14954 | extern "C" |
| 14955 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14956 | /* 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] | 14957 | builtin and then its argument prototype would still apply. */ |
| 14958 | char $ac_func (); |
| 14959 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14961 | #ifdef F77_DUMMY_MAIN |
| 14962 | # ifdef __cplusplus |
| 14963 | extern "C" |
| 14964 | # endif |
| 14965 | int F77_DUMMY_MAIN() { return 1; } |
| 14966 | #endif |
| 14967 | int |
| 14968 | main () |
| 14969 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14970 | /* The GNU C library defines this for functions which it implements |
| 14971 | to always fail with ENOSYS. Some functions are actually named |
| 14972 | something starting with __ and the normal name is an alias. */ |
| 14973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14974 | choke me |
| 14975 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14977 | #endif |
| 14978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14979 | ; |
| 14980 | return 0; |
| 14981 | } |
| 14982 | _ACEOF |
| 14983 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14985 | (eval $ac_link) 2>&5 |
| 14986 | ac_status=$? |
| 14987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14988 | (exit $ac_status); } && |
| 14989 | { ac_try='test -s conftest$ac_exeext' |
| 14990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14991 | (eval $ac_try) 2>&5 |
| 14992 | ac_status=$? |
| 14993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14994 | (exit $ac_status); }; }; then |
| 14995 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14997 | echo "$as_me: failed program was:" >&5 |
| 14998 | cat conftest.$ac_ext >&5 |
| 14999 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15000 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15002 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15003 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15004 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15005 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15006 | cat >>confdefs.h <<_ACEOF |
| 15007 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15008 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15009 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15011 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15012 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15013 | done |
| 15014 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15015 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15016 | LIBS=$LIBS_SAVE |
| 15017 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15018 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 15020 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 15021 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 15022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15023 | else |
| 15024 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15025 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | cat >conftest.$ac_ext <<_ACEOF |
| 15028 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15029 | #include "confdefs.h" |
| 15030 | #include <stdio.h> |
| 15031 | #ifdef HAVE_STDLIB |
| 15032 | #include <stdlib.h> |
| 15033 | #else |
| 15034 | char *malloc(), *realloc(); |
| 15035 | int *free(); |
| 15036 | #endif |
| 15037 | main() { |
| 15038 | char *p; |
| 15039 | p = malloc(0); |
| 15040 | if (p == NULL) exit(1); |
| 15041 | p = realloc(p, 0); |
| 15042 | if (p == NULL) exit(1); |
| 15043 | free(p); |
| 15044 | exit(0); |
| 15045 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | _ACEOF |
| 15047 | rm -f conftest$ac_exeext |
| 15048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15049 | (eval $ac_link) 2>&5 |
| 15050 | ac_status=$? |
| 15051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15052 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15054 | (eval $ac_try) 2>&5 |
| 15055 | ac_status=$? |
| 15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15057 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15058 | ac_cv_malloc_zero=nonnull |
| 15059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15060 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15061 | echo "$as_me: failed program was:" >&5 |
| 15062 | cat conftest.$ac_ext >&5 |
| 15063 | ( exit $ac_status ) |
| 15064 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15066 | 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] | 15067 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15068 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15069 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 15071 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15072 | if test "$ac_cv_malloc_zero" = null |
| 15073 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15074 | |
| 15075 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15076 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15077 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15078 | |
| 15079 | fi |
| 15080 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15081 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15083 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15084 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15085 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15087 | fi |
| 15088 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15089 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | # Is the header compilable? |
| 15092 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15093 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15094 | cat >conftest.$ac_ext <<_ACEOF |
| 15095 | #line $LINENO "configure" |
| 15096 | #include "confdefs.h" |
| 15097 | $ac_includes_default |
| 15098 | #include <wchar.h> |
| 15099 | _ACEOF |
| 15100 | rm -f conftest.$ac_objext |
| 15101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15102 | (eval $ac_compile) 2>&5 |
| 15103 | ac_status=$? |
| 15104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15105 | (exit $ac_status); } && |
| 15106 | { ac_try='test -s conftest.$ac_objext' |
| 15107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15108 | (eval $ac_try) 2>&5 |
| 15109 | ac_status=$? |
| 15110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15111 | (exit $ac_status); }; }; then |
| 15112 | ac_header_compiler=yes |
| 15113 | else |
| 15114 | echo "$as_me: failed program was:" >&5 |
| 15115 | cat conftest.$ac_ext >&5 |
| 15116 | ac_header_compiler=no |
| 15117 | fi |
| 15118 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15120 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15121 | |
| 15122 | # Is the header present? |
| 15123 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15124 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15125 | cat >conftest.$ac_ext <<_ACEOF |
| 15126 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15127 | #include "confdefs.h" |
| 15128 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | _ACEOF |
| 15130 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15131 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15132 | ac_status=$? |
| 15133 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 15134 | rm -f conftest.er1 |
| 15135 | cat conftest.err >&5 |
| 15136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15137 | (exit $ac_status); } >/dev/null; then |
| 15138 | if test -s conftest.err; then |
| 15139 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15140 | else |
| 15141 | ac_cpp_err= |
| 15142 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 | ac_cpp_err=yes |
| 15145 | fi |
| 15146 | if test -z "$ac_cpp_err"; then |
| 15147 | ac_header_preproc=yes |
| 15148 | else |
| 15149 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15150 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 | rm -f conftest.err conftest.$ac_ext |
| 15154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15155 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15156 | |
| 15157 | # So? What about this header? |
| 15158 | case $ac_header_compiler:$ac_header_preproc in |
| 15159 | yes:no ) |
| 15160 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15161 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15162 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15163 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15164 | no:yes ) |
| 15165 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15166 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15167 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15168 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15169 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15170 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15171 | esac |
| 15172 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15173 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15174 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15176 | else |
| 15177 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15178 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15179 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15180 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15181 | |
| 15182 | fi |
| 15183 | if test $ac_cv_header_wchar_h = yes; then |
| 15184 | |
| 15185 | |
| 15186 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15187 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | _ACEOF |
| 15189 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15190 | wchar_h="yes" |
| 15191 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15194 | |
| 15195 | fi |
| 15196 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15199 | # determine wchar_t size |
| 15200 | if test "$wchar_h" = yes |
| 15201 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15203 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15204 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15206 | else |
| 15207 | cat >conftest.$ac_ext <<_ACEOF |
| 15208 | #line $LINENO "configure" |
| 15209 | #include "confdefs.h" |
| 15210 | #include <wchar.h> |
| 15211 | |
| 15212 | #ifdef F77_DUMMY_MAIN |
| 15213 | # ifdef __cplusplus |
| 15214 | extern "C" |
| 15215 | # endif |
| 15216 | int F77_DUMMY_MAIN() { return 1; } |
| 15217 | #endif |
| 15218 | int |
| 15219 | main () |
| 15220 | { |
| 15221 | if ((wchar_t *) 0) |
| 15222 | return 0; |
| 15223 | if (sizeof (wchar_t)) |
| 15224 | return 0; |
| 15225 | ; |
| 15226 | return 0; |
| 15227 | } |
| 15228 | _ACEOF |
| 15229 | rm -f conftest.$ac_objext |
| 15230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15231 | (eval $ac_compile) 2>&5 |
| 15232 | ac_status=$? |
| 15233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15234 | (exit $ac_status); } && |
| 15235 | { ac_try='test -s conftest.$ac_objext' |
| 15236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15237 | (eval $ac_try) 2>&5 |
| 15238 | ac_status=$? |
| 15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15240 | (exit $ac_status); }; }; then |
| 15241 | ac_cv_type_wchar_t=yes |
| 15242 | else |
| 15243 | echo "$as_me: failed program was:" >&5 |
| 15244 | cat conftest.$ac_ext >&5 |
| 15245 | ac_cv_type_wchar_t=no |
| 15246 | fi |
| 15247 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15248 | fi |
| 15249 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15250 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15251 | |
| 15252 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15253 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15254 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15256 | else |
| 15257 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15258 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15259 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15260 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15261 | # This bug is HP SR number 8606223364. |
| 15262 | if test "$cross_compiling" = yes; then |
| 15263 | # Depending upon the size, compute the lo and hi bounds. |
| 15264 | cat >conftest.$ac_ext <<_ACEOF |
| 15265 | #line $LINENO "configure" |
| 15266 | #include "confdefs.h" |
| 15267 | #include <wchar.h> |
| 15268 | |
| 15269 | #ifdef F77_DUMMY_MAIN |
| 15270 | # ifdef __cplusplus |
| 15271 | extern "C" |
| 15272 | # endif |
| 15273 | int F77_DUMMY_MAIN() { return 1; } |
| 15274 | #endif |
| 15275 | int |
| 15276 | main () |
| 15277 | { |
| 15278 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 15279 | test_array [0] = 0 |
| 15280 | |
| 15281 | ; |
| 15282 | return 0; |
| 15283 | } |
| 15284 | _ACEOF |
| 15285 | rm -f conftest.$ac_objext |
| 15286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15287 | (eval $ac_compile) 2>&5 |
| 15288 | ac_status=$? |
| 15289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15290 | (exit $ac_status); } && |
| 15291 | { ac_try='test -s conftest.$ac_objext' |
| 15292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15293 | (eval $ac_try) 2>&5 |
| 15294 | ac_status=$? |
| 15295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15296 | (exit $ac_status); }; }; then |
| 15297 | ac_lo=0 ac_mid=0 |
| 15298 | while :; do |
| 15299 | cat >conftest.$ac_ext <<_ACEOF |
| 15300 | #line $LINENO "configure" |
| 15301 | #include "confdefs.h" |
| 15302 | #include <wchar.h> |
| 15303 | |
| 15304 | #ifdef F77_DUMMY_MAIN |
| 15305 | # ifdef __cplusplus |
| 15306 | extern "C" |
| 15307 | # endif |
| 15308 | int F77_DUMMY_MAIN() { return 1; } |
| 15309 | #endif |
| 15310 | int |
| 15311 | main () |
| 15312 | { |
| 15313 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15314 | test_array [0] = 0 |
| 15315 | |
| 15316 | ; |
| 15317 | return 0; |
| 15318 | } |
| 15319 | _ACEOF |
| 15320 | rm -f conftest.$ac_objext |
| 15321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15322 | (eval $ac_compile) 2>&5 |
| 15323 | ac_status=$? |
| 15324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15325 | (exit $ac_status); } && |
| 15326 | { ac_try='test -s conftest.$ac_objext' |
| 15327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15328 | (eval $ac_try) 2>&5 |
| 15329 | ac_status=$? |
| 15330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15331 | (exit $ac_status); }; }; then |
| 15332 | ac_hi=$ac_mid; break |
| 15333 | else |
| 15334 | echo "$as_me: failed program was:" >&5 |
| 15335 | cat conftest.$ac_ext >&5 |
| 15336 | ac_lo=`expr $ac_mid + 1` |
| 15337 | if test $ac_lo -le $ac_mid; then |
| 15338 | ac_lo= ac_hi= |
| 15339 | break |
| 15340 | fi |
| 15341 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 15342 | fi |
| 15343 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15344 | done |
| 15345 | else |
| 15346 | echo "$as_me: failed program was:" >&5 |
| 15347 | cat conftest.$ac_ext >&5 |
| 15348 | cat >conftest.$ac_ext <<_ACEOF |
| 15349 | #line $LINENO "configure" |
| 15350 | #include "confdefs.h" |
| 15351 | #include <wchar.h> |
| 15352 | |
| 15353 | #ifdef F77_DUMMY_MAIN |
| 15354 | # ifdef __cplusplus |
| 15355 | extern "C" |
| 15356 | # endif |
| 15357 | int F77_DUMMY_MAIN() { return 1; } |
| 15358 | #endif |
| 15359 | int |
| 15360 | main () |
| 15361 | { |
| 15362 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 15363 | test_array [0] = 0 |
| 15364 | |
| 15365 | ; |
| 15366 | return 0; |
| 15367 | } |
| 15368 | _ACEOF |
| 15369 | rm -f conftest.$ac_objext |
| 15370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15371 | (eval $ac_compile) 2>&5 |
| 15372 | ac_status=$? |
| 15373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15374 | (exit $ac_status); } && |
| 15375 | { ac_try='test -s conftest.$ac_objext' |
| 15376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15377 | (eval $ac_try) 2>&5 |
| 15378 | ac_status=$? |
| 15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15380 | (exit $ac_status); }; }; then |
| 15381 | ac_hi=-1 ac_mid=-1 |
| 15382 | while :; do |
| 15383 | cat >conftest.$ac_ext <<_ACEOF |
| 15384 | #line $LINENO "configure" |
| 15385 | #include "confdefs.h" |
| 15386 | #include <wchar.h> |
| 15387 | |
| 15388 | #ifdef F77_DUMMY_MAIN |
| 15389 | # ifdef __cplusplus |
| 15390 | extern "C" |
| 15391 | # endif |
| 15392 | int F77_DUMMY_MAIN() { return 1; } |
| 15393 | #endif |
| 15394 | int |
| 15395 | main () |
| 15396 | { |
| 15397 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 15398 | test_array [0] = 0 |
| 15399 | |
| 15400 | ; |
| 15401 | return 0; |
| 15402 | } |
| 15403 | _ACEOF |
| 15404 | rm -f conftest.$ac_objext |
| 15405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15406 | (eval $ac_compile) 2>&5 |
| 15407 | ac_status=$? |
| 15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15409 | (exit $ac_status); } && |
| 15410 | { ac_try='test -s conftest.$ac_objext' |
| 15411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15412 | (eval $ac_try) 2>&5 |
| 15413 | ac_status=$? |
| 15414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15415 | (exit $ac_status); }; }; then |
| 15416 | ac_lo=$ac_mid; break |
| 15417 | else |
| 15418 | echo "$as_me: failed program was:" >&5 |
| 15419 | cat conftest.$ac_ext >&5 |
| 15420 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15421 | if test $ac_mid -le $ac_hi; then |
| 15422 | ac_lo= ac_hi= |
| 15423 | break |
| 15424 | fi |
| 15425 | ac_mid=`expr 2 '*' $ac_mid` |
| 15426 | fi |
| 15427 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15428 | done |
| 15429 | else |
| 15430 | echo "$as_me: failed program was:" >&5 |
| 15431 | cat conftest.$ac_ext >&5 |
| 15432 | ac_lo= ac_hi= |
| 15433 | fi |
| 15434 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15435 | fi |
| 15436 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15437 | # Binary search between lo and hi bounds. |
| 15438 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15439 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15440 | cat >conftest.$ac_ext <<_ACEOF |
| 15441 | #line $LINENO "configure" |
| 15442 | #include "confdefs.h" |
| 15443 | #include <wchar.h> |
| 15444 | |
| 15445 | #ifdef F77_DUMMY_MAIN |
| 15446 | # ifdef __cplusplus |
| 15447 | extern "C" |
| 15448 | # endif |
| 15449 | int F77_DUMMY_MAIN() { return 1; } |
| 15450 | #endif |
| 15451 | int |
| 15452 | main () |
| 15453 | { |
| 15454 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15455 | test_array [0] = 0 |
| 15456 | |
| 15457 | ; |
| 15458 | return 0; |
| 15459 | } |
| 15460 | _ACEOF |
| 15461 | rm -f conftest.$ac_objext |
| 15462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15463 | (eval $ac_compile) 2>&5 |
| 15464 | ac_status=$? |
| 15465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15466 | (exit $ac_status); } && |
| 15467 | { ac_try='test -s conftest.$ac_objext' |
| 15468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15469 | (eval $ac_try) 2>&5 |
| 15470 | ac_status=$? |
| 15471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15472 | (exit $ac_status); }; }; then |
| 15473 | ac_hi=$ac_mid |
| 15474 | else |
| 15475 | echo "$as_me: failed program was:" >&5 |
| 15476 | cat conftest.$ac_ext >&5 |
| 15477 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15478 | fi |
| 15479 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15480 | done |
| 15481 | case $ac_lo in |
| 15482 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15483 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15484 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15485 | { (exit 1); exit 1; }; } ;; |
| 15486 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15487 | else |
| 15488 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15489 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15490 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15491 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15493 | cat >conftest.$ac_ext <<_ACEOF |
| 15494 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15495 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15496 | #include <wchar.h> |
| 15497 | |
| 15498 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15499 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15500 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15501 | #include <stdlib.h> |
| 15502 | #ifdef F77_DUMMY_MAIN |
| 15503 | # ifdef __cplusplus |
| 15504 | extern "C" |
| 15505 | # endif |
| 15506 | int F77_DUMMY_MAIN() { return 1; } |
| 15507 | #endif |
| 15508 | int |
| 15509 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15510 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 | |
| 15512 | FILE *f = fopen ("conftest.val", "w"); |
| 15513 | if (! f) |
| 15514 | exit (1); |
| 15515 | if (((long) (sizeof (wchar_t))) < 0) |
| 15516 | { |
| 15517 | long i = longval (); |
| 15518 | if (i != ((long) (sizeof (wchar_t)))) |
| 15519 | exit (1); |
| 15520 | fprintf (f, "%ld\n", i); |
| 15521 | } |
| 15522 | else |
| 15523 | { |
| 15524 | unsigned long i = ulongval (); |
| 15525 | if (i != ((long) (sizeof (wchar_t)))) |
| 15526 | exit (1); |
| 15527 | fprintf (f, "%lu\n", i); |
| 15528 | } |
| 15529 | exit (ferror (f) || fclose (f) != 0); |
| 15530 | |
| 15531 | ; |
| 15532 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15533 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15534 | _ACEOF |
| 15535 | rm -f conftest$ac_exeext |
| 15536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15537 | (eval $ac_link) 2>&5 |
| 15538 | ac_status=$? |
| 15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15542 | (eval $ac_try) 2>&5 |
| 15543 | ac_status=$? |
| 15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15545 | (exit $ac_status); }; }; then |
| 15546 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15548 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15549 | echo "$as_me: failed program was:" >&5 |
| 15550 | cat conftest.$ac_ext >&5 |
| 15551 | ( exit $ac_status ) |
| 15552 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15553 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15554 | { (exit 1); exit 1; }; } |
| 15555 | fi |
| 15556 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15557 | fi |
| 15558 | fi |
| 15559 | rm -f conftest.val |
| 15560 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15561 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15562 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15565 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15566 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15567 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15568 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15569 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15570 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15571 | fi |
| 15572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15573 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15574 | 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] | 15575 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15576 | if test "${enable_unicode+set}" = set; then |
| 15577 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15578 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15579 | else |
| 15580 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15581 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15582 | |
| 15583 | if test $enable_unicode = yes |
| 15584 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15585 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15586 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15587 | fi |
| 15588 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15589 | |
| 15590 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15591 | case "$enable_unicode" in |
| 15592 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15593 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15594 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15596 | |
| 15597 | ;; |
| 15598 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15600 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15601 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15602 | |
| 15603 | ;; |
| 15604 | esac |
| 15605 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 | |
| 15608 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15609 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15610 | if test "$enable_unicode" = "no" |
| 15611 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15612 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15613 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15614 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15615 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15616 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15617 | |
| 15618 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15619 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15620 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15621 | |
| 15622 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15623 | then |
| 15624 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15626 | cat >>confdefs.h <<\_ACEOF |
| 15627 | #define HAVE_USABLE_WCHAR_T 1 |
| 15628 | _ACEOF |
| 15629 | |
| 15630 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15631 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15632 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15633 | |
| 15634 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15635 | then |
| 15636 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15637 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15638 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15639 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15640 | |
| 15641 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15642 | then |
| 15643 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15644 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15645 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15646 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15647 | |
| 15648 | else |
| 15649 | PY_UNICODE_TYPE="no type found" |
| 15650 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15652 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15653 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15654 | |
| 15655 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15657 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15658 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15661 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15662 | cat >conftest.$ac_ext <<_ACEOF |
| 15663 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15664 | #include "confdefs.h" |
| 15665 | #include <sys/types.h> |
| 15666 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15668 | #ifdef F77_DUMMY_MAIN |
| 15669 | # ifdef __cplusplus |
| 15670 | extern "C" |
| 15671 | # endif |
| 15672 | int F77_DUMMY_MAIN() { return 1; } |
| 15673 | #endif |
| 15674 | int |
| 15675 | main () |
| 15676 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15677 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15678 | bogus endian macros |
| 15679 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15680 | |
| 15681 | ; |
| 15682 | return 0; |
| 15683 | } |
| 15684 | _ACEOF |
| 15685 | rm -f conftest.$ac_objext |
| 15686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15687 | (eval $ac_compile) 2>&5 |
| 15688 | ac_status=$? |
| 15689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15690 | (exit $ac_status); } && |
| 15691 | { ac_try='test -s conftest.$ac_objext' |
| 15692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15693 | (eval $ac_try) 2>&5 |
| 15694 | ac_status=$? |
| 15695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15696 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15697 | # 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] | 15698 | cat >conftest.$ac_ext <<_ACEOF |
| 15699 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15700 | #include "confdefs.h" |
| 15701 | #include <sys/types.h> |
| 15702 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15704 | #ifdef F77_DUMMY_MAIN |
| 15705 | # ifdef __cplusplus |
| 15706 | extern "C" |
| 15707 | # endif |
| 15708 | int F77_DUMMY_MAIN() { return 1; } |
| 15709 | #endif |
| 15710 | int |
| 15711 | main () |
| 15712 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15713 | #if BYTE_ORDER != BIG_ENDIAN |
| 15714 | not big endian |
| 15715 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15716 | |
| 15717 | ; |
| 15718 | return 0; |
| 15719 | } |
| 15720 | _ACEOF |
| 15721 | rm -f conftest.$ac_objext |
| 15722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15723 | (eval $ac_compile) 2>&5 |
| 15724 | ac_status=$? |
| 15725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15726 | (exit $ac_status); } && |
| 15727 | { ac_try='test -s conftest.$ac_objext' |
| 15728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15729 | (eval $ac_try) 2>&5 |
| 15730 | ac_status=$? |
| 15731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15732 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15733 | ac_cv_c_bigendian=yes |
| 15734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | echo "$as_me: failed program was:" >&5 |
| 15736 | cat conftest.$ac_ext >&5 |
| 15737 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15738 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15739 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15741 | echo "$as_me: failed program was:" >&5 |
| 15742 | cat conftest.$ac_ext >&5 |
| 15743 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15744 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15745 | # try to guess the endianess by grep'ing values into an object file |
| 15746 | ac_cv_c_bigendian=unknown |
| 15747 | cat >conftest.$ac_ext <<_ACEOF |
| 15748 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15749 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15751 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15752 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15753 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15754 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15755 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15756 | #ifdef F77_DUMMY_MAIN |
| 15757 | # ifdef __cplusplus |
| 15758 | extern "C" |
| 15759 | # endif |
| 15760 | int F77_DUMMY_MAIN() { return 1; } |
| 15761 | #endif |
| 15762 | int |
| 15763 | main () |
| 15764 | { |
| 15765 | _ascii (); _ebcdic (); |
| 15766 | ; |
| 15767 | return 0; |
| 15768 | } |
| 15769 | _ACEOF |
| 15770 | rm -f conftest.$ac_objext |
| 15771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15772 | (eval $ac_compile) 2>&5 |
| 15773 | ac_status=$? |
| 15774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15775 | (exit $ac_status); } && |
| 15776 | { ac_try='test -s conftest.$ac_objext' |
| 15777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15778 | (eval $ac_try) 2>&5 |
| 15779 | ac_status=$? |
| 15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15781 | (exit $ac_status); }; }; then |
| 15782 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15783 | ac_cv_c_bigendian=yes |
| 15784 | fi |
| 15785 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15786 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15787 | ac_cv_c_bigendian=no |
| 15788 | else |
| 15789 | # finding both strings is unlikely to happen, but who knows? |
| 15790 | ac_cv_c_bigendian=unknown |
| 15791 | fi |
| 15792 | fi |
| 15793 | else |
| 15794 | echo "$as_me: failed program was:" >&5 |
| 15795 | cat conftest.$ac_ext >&5 |
| 15796 | fi |
| 15797 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15798 | else |
| 15799 | cat >conftest.$ac_ext <<_ACEOF |
| 15800 | #line $LINENO "configure" |
| 15801 | #include "confdefs.h" |
| 15802 | int |
| 15803 | main () |
| 15804 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15805 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15806 | union |
| 15807 | { |
| 15808 | long l; |
| 15809 | char c[sizeof (long)]; |
| 15810 | } u; |
| 15811 | u.l = 1; |
| 15812 | exit (u.c[sizeof (long) - 1] == 1); |
| 15813 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15814 | _ACEOF |
| 15815 | rm -f conftest$ac_exeext |
| 15816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15817 | (eval $ac_link) 2>&5 |
| 15818 | ac_status=$? |
| 15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15822 | (eval $ac_try) 2>&5 |
| 15823 | ac_status=$? |
| 15824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15825 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15826 | ac_cv_c_bigendian=no |
| 15827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15829 | echo "$as_me: failed program was:" >&5 |
| 15830 | cat conftest.$ac_ext >&5 |
| 15831 | ( exit $ac_status ) |
| 15832 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15834 | 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] | 15835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 | fi |
| 15837 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15838 | fi |
| 15839 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15840 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15841 | case $ac_cv_c_bigendian in |
| 15842 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15845 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | _ACEOF |
| 15847 | ;; |
| 15848 | no) |
| 15849 | ;; |
| 15850 | *) |
| 15851 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15852 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15853 | echo "$as_me: error: unknown endianess |
| 15854 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15855 | { (exit 1); exit 1; }; } ;; |
| 15856 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15857 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15858 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15859 | # Check whether right shifting a negative integer extends the sign bit |
| 15860 | # 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] | 15861 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15862 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15863 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15866 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15867 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15868 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15870 | cat >conftest.$ac_ext <<_ACEOF |
| 15871 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15872 | #include "confdefs.h" |
| 15873 | |
| 15874 | int main() |
| 15875 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15876 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15877 | } |
| 15878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | _ACEOF |
| 15880 | rm -f conftest$ac_exeext |
| 15881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15882 | (eval $ac_link) 2>&5 |
| 15883 | ac_status=$? |
| 15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15885 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15887 | (eval $ac_try) 2>&5 |
| 15888 | ac_status=$? |
| 15889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15890 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15891 | ac_cv_rshift_extends_sign=yes |
| 15892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15894 | echo "$as_me: failed program was:" >&5 |
| 15895 | cat conftest.$ac_ext >&5 |
| 15896 | ( exit $ac_status ) |
| 15897 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15898 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15899 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15900 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15901 | fi |
| 15902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15903 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15904 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15905 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15906 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15907 | |
| 15908 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15909 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15910 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15911 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15912 | fi |
| 15913 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15914 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15916 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15917 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | |
| 15921 | cat >conftest.$ac_ext <<_ACEOF |
| 15922 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15923 | #include "confdefs.h" |
| 15924 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15925 | #ifdef F77_DUMMY_MAIN |
| 15926 | # ifdef __cplusplus |
| 15927 | extern "C" |
| 15928 | # endif |
| 15929 | int F77_DUMMY_MAIN() { return 1; } |
| 15930 | #endif |
| 15931 | int |
| 15932 | main () |
| 15933 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15934 | |
| 15935 | FILE *f = fopen("/dev/null", "r"); |
| 15936 | flockfile(f); |
| 15937 | getc_unlocked(f); |
| 15938 | funlockfile(f); |
| 15939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | ; |
| 15941 | return 0; |
| 15942 | } |
| 15943 | _ACEOF |
| 15944 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15946 | (eval $ac_link) 2>&5 |
| 15947 | ac_status=$? |
| 15948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15949 | (exit $ac_status); } && |
| 15950 | { ac_try='test -s conftest$ac_exeext' |
| 15951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15952 | (eval $ac_try) 2>&5 |
| 15953 | ac_status=$? |
| 15954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15955 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15956 | ac_cv_have_getc_unlocked=yes |
| 15957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15958 | echo "$as_me: failed program was:" >&5 |
| 15959 | cat conftest.$ac_ext >&5 |
| 15960 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15961 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15962 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15963 | fi |
| 15964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15965 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15966 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15967 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15968 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | |
| 15970 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15971 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15972 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15973 | |
| 15974 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15975 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15976 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15977 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15978 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15979 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15982 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15983 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15984 | cat >conftest.$ac_ext <<_ACEOF |
| 15985 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15986 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15987 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15988 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15989 | #ifdef __cplusplus |
| 15990 | extern "C" |
| 15991 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15992 | /* 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] | 15993 | builtin and then its argument prototype would still apply. */ |
| 15994 | char rl_pre_input_hook (); |
| 15995 | #ifdef F77_DUMMY_MAIN |
| 15996 | # ifdef __cplusplus |
| 15997 | extern "C" |
| 15998 | # endif |
| 15999 | int F77_DUMMY_MAIN() { return 1; } |
| 16000 | #endif |
| 16001 | int |
| 16002 | main () |
| 16003 | { |
| 16004 | rl_pre_input_hook (); |
| 16005 | ; |
| 16006 | return 0; |
| 16007 | } |
| 16008 | _ACEOF |
| 16009 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16011 | (eval $ac_link) 2>&5 |
| 16012 | ac_status=$? |
| 16013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16014 | (exit $ac_status); } && |
| 16015 | { ac_try='test -s conftest$ac_exeext' |
| 16016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16017 | (eval $ac_try) 2>&5 |
| 16018 | ac_status=$? |
| 16019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16020 | (exit $ac_status); }; }; then |
| 16021 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16023 | echo "$as_me: failed program was:" >&5 |
| 16024 | cat conftest.$ac_ext >&5 |
| 16025 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16026 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16028 | LIBS=$ac_check_lib_save_LIBS |
| 16029 | fi |
| 16030 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16031 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16032 | 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] | 16033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16034 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16035 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16036 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16037 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16038 | fi |
| 16039 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16040 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16041 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16042 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16043 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16044 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16046 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16047 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16048 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16049 | cat >conftest.$ac_ext <<_ACEOF |
| 16050 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16051 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16053 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16054 | #ifdef __cplusplus |
| 16055 | extern "C" |
| 16056 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16057 | /* 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] | 16058 | builtin and then its argument prototype would still apply. */ |
| 16059 | char rl_completion_matches (); |
| 16060 | #ifdef F77_DUMMY_MAIN |
| 16061 | # ifdef __cplusplus |
| 16062 | extern "C" |
| 16063 | # endif |
| 16064 | int F77_DUMMY_MAIN() { return 1; } |
| 16065 | #endif |
| 16066 | int |
| 16067 | main () |
| 16068 | { |
| 16069 | rl_completion_matches (); |
| 16070 | ; |
| 16071 | return 0; |
| 16072 | } |
| 16073 | _ACEOF |
| 16074 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16076 | (eval $ac_link) 2>&5 |
| 16077 | ac_status=$? |
| 16078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16079 | (exit $ac_status); } && |
| 16080 | { ac_try='test -s conftest$ac_exeext' |
| 16081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16082 | (eval $ac_try) 2>&5 |
| 16083 | ac_status=$? |
| 16084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16085 | (exit $ac_status); }; }; then |
| 16086 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16087 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | echo "$as_me: failed program was:" >&5 |
| 16089 | cat conftest.$ac_ext >&5 |
| 16090 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16092 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16093 | LIBS=$ac_check_lib_save_LIBS |
| 16094 | fi |
| 16095 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16096 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16097 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16099 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16100 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16101 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16102 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16103 | fi |
| 16104 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16106 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16107 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16108 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16111 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16112 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16113 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16115 | cat >conftest.$ac_ext <<_ACEOF |
| 16116 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16117 | #include "confdefs.h" |
| 16118 | |
| 16119 | int main() |
| 16120 | { |
| 16121 | int val1 = nice(1); |
| 16122 | if (val1 != -1 && val1 == nice(2)) |
| 16123 | exit(0); |
| 16124 | exit(1); |
| 16125 | } |
| 16126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16127 | _ACEOF |
| 16128 | rm -f conftest$ac_exeext |
| 16129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16130 | (eval $ac_link) 2>&5 |
| 16131 | ac_status=$? |
| 16132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16135 | (eval $ac_try) 2>&5 |
| 16136 | ac_status=$? |
| 16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16138 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16139 | ac_cv_broken_nice=yes |
| 16140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16141 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16142 | echo "$as_me: failed program was:" >&5 |
| 16143 | cat conftest.$ac_ext >&5 |
| 16144 | ( exit $ac_status ) |
| 16145 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16148 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16149 | fi |
| 16150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16152 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16153 | if test "$ac_cv_broken_nice" = yes |
| 16154 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16155 | |
| 16156 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16157 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16159 | |
| 16160 | fi |
| 16161 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16162 | # Look for subsecond timestamps in struct stat |
| 16163 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16164 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16165 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16167 | else |
| 16168 | cat >conftest.$ac_ext <<_ACEOF |
| 16169 | #line $LINENO "configure" |
| 16170 | #include "confdefs.h" |
| 16171 | #include <sys/stat.h> |
| 16172 | #ifdef F77_DUMMY_MAIN |
| 16173 | # ifdef __cplusplus |
| 16174 | extern "C" |
| 16175 | # endif |
| 16176 | int F77_DUMMY_MAIN() { return 1; } |
| 16177 | #endif |
| 16178 | int |
| 16179 | main () |
| 16180 | { |
| 16181 | |
| 16182 | struct stat st; |
| 16183 | st.st_mtim.tv_nsec = 1; |
| 16184 | |
| 16185 | ; |
| 16186 | return 0; |
| 16187 | } |
| 16188 | _ACEOF |
| 16189 | rm -f conftest.$ac_objext |
| 16190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16191 | (eval $ac_compile) 2>&5 |
| 16192 | ac_status=$? |
| 16193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16194 | (exit $ac_status); } && |
| 16195 | { ac_try='test -s conftest.$ac_objext' |
| 16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16197 | (eval $ac_try) 2>&5 |
| 16198 | ac_status=$? |
| 16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16200 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16201 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16202 | else |
| 16203 | echo "$as_me: failed program was:" >&5 |
| 16204 | cat conftest.$ac_ext >&5 |
| 16205 | ac_cv_stat_tv_nsec=no |
| 16206 | fi |
| 16207 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16208 | fi |
| 16209 | |
| 16210 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16211 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16212 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16213 | then |
| 16214 | |
| 16215 | cat >>confdefs.h <<\_ACEOF |
| 16216 | #define HAVE_STAT_TV_NSEC 1 |
| 16217 | _ACEOF |
| 16218 | |
| 16219 | fi |
| 16220 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16221 | # 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] | 16222 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 16223 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 16224 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 16225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16227 | cat >conftest.$ac_ext <<_ACEOF |
| 16228 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16229 | #include "confdefs.h" |
| 16230 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | #ifdef F77_DUMMY_MAIN |
| 16232 | # ifdef __cplusplus |
| 16233 | extern "C" |
| 16234 | # endif |
| 16235 | int F77_DUMMY_MAIN() { return 1; } |
| 16236 | #endif |
| 16237 | int |
| 16238 | main () |
| 16239 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16240 | |
| 16241 | int rtn; |
| 16242 | rtn = mvwdelch(0,0,0); |
| 16243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16244 | ; |
| 16245 | return 0; |
| 16246 | } |
| 16247 | _ACEOF |
| 16248 | rm -f conftest.$ac_objext |
| 16249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16250 | (eval $ac_compile) 2>&5 |
| 16251 | ac_status=$? |
| 16252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16253 | (exit $ac_status); } && |
| 16254 | { ac_try='test -s conftest.$ac_objext' |
| 16255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16256 | (eval $ac_try) 2>&5 |
| 16257 | ac_status=$? |
| 16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16259 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16260 | ac_cv_mvwdelch_is_expression=yes |
| 16261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16262 | echo "$as_me: failed program was:" >&5 |
| 16263 | cat conftest.$ac_ext >&5 |
| 16264 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16265 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16266 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16267 | fi |
| 16268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16269 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 16270 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16271 | |
| 16272 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 16273 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16274 | |
| 16275 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16276 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16277 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16278 | |
| 16279 | fi |
| 16280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 16282 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 16283 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 16284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | cat >conftest.$ac_ext <<_ACEOF |
| 16287 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16288 | #include "confdefs.h" |
| 16289 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | #ifdef F77_DUMMY_MAIN |
| 16291 | # ifdef __cplusplus |
| 16292 | extern "C" |
| 16293 | # endif |
| 16294 | int F77_DUMMY_MAIN() { return 1; } |
| 16295 | #endif |
| 16296 | int |
| 16297 | main () |
| 16298 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16299 | |
| 16300 | WINDOW *w; |
| 16301 | w->_flags = 0; |
| 16302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16303 | ; |
| 16304 | return 0; |
| 16305 | } |
| 16306 | _ACEOF |
| 16307 | rm -f conftest.$ac_objext |
| 16308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16309 | (eval $ac_compile) 2>&5 |
| 16310 | ac_status=$? |
| 16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16312 | (exit $ac_status); } && |
| 16313 | { ac_try='test -s conftest.$ac_objext' |
| 16314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16315 | (eval $ac_try) 2>&5 |
| 16316 | ac_status=$? |
| 16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16318 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16319 | ac_cv_window_has_flags=yes |
| 16320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16321 | echo "$as_me: failed program was:" >&5 |
| 16322 | cat conftest.$ac_ext >&5 |
| 16323 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16324 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16325 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16326 | fi |
| 16327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16328 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 16329 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16330 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16331 | |
| 16332 | if test "$ac_cv_window_has_flags" = yes |
| 16333 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16334 | |
| 16335 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16336 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16337 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16338 | |
| 16339 | fi |
| 16340 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16341 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 16342 | # Add sys/socket.h to confdefs.h |
| 16343 | cat >> confdefs.h <<\EOF |
| 16344 | #ifdef HAVE_SYS_SOCKET_H |
| 16345 | #include <sys/socket.h> |
| 16346 | #endif |
| 16347 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16348 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16349 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16350 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16353 | cat >conftest.$ac_ext <<_ACEOF |
| 16354 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16355 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16356 | $ac_includes_default |
| 16357 | #ifdef F77_DUMMY_MAIN |
| 16358 | # ifdef __cplusplus |
| 16359 | extern "C" |
| 16360 | # endif |
| 16361 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16362 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16363 | int |
| 16364 | main () |
| 16365 | { |
| 16366 | if ((socklen_t *) 0) |
| 16367 | return 0; |
| 16368 | if (sizeof (socklen_t)) |
| 16369 | return 0; |
| 16370 | ; |
| 16371 | return 0; |
| 16372 | } |
| 16373 | _ACEOF |
| 16374 | rm -f conftest.$ac_objext |
| 16375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16376 | (eval $ac_compile) 2>&5 |
| 16377 | ac_status=$? |
| 16378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16379 | (exit $ac_status); } && |
| 16380 | { ac_try='test -s conftest.$ac_objext' |
| 16381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16382 | (eval $ac_try) 2>&5 |
| 16383 | ac_status=$? |
| 16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16385 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16386 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16388 | echo "$as_me: failed program was:" >&5 |
| 16389 | cat conftest.$ac_ext >&5 |
| 16390 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16392 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16393 | fi |
| 16394 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16395 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16396 | if test $ac_cv_type_socklen_t = yes; then |
| 16397 | : |
| 16398 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16401 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16402 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16403 | |
| 16404 | fi |
| 16405 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16406 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16407 | #AC_MSG_CHECKING(for Modules/Setup) |
| 16408 | #if test ! -f Modules/Setup ; then |
| 16409 | # if test ! -d Modules ; then |
| 16410 | # mkdir Modules |
| 16411 | # fi |
| 16412 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 16413 | # AC_MSG_RESULT(creating) |
| 16414 | #else |
| 16415 | # AC_MSG_RESULT(already exists) |
| 16416 | #fi |
| 16417 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16418 | |
| 16419 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16420 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16421 | do |
| 16422 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16423 | done |
| 16424 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16425 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 16426 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16427 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 16428 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16429 | for dir in $SRCDIRS; do |
| 16430 | if test ! -d $dir; then |
| 16431 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16432 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16433 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16434 | echo "$as_me:$LINENO: result: done" >&5 |
| 16435 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16436 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16437 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16438 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 16439 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16440 | # This file is a shell script that caches the results of configure |
| 16441 | # 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] | 16442 | # scripts and configure runs, see configure's option --config-cache. |
| 16443 | # It is not useful on other systems. If it contains results you don't |
| 16444 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16445 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16446 | # config.status only pays attention to the cache file if you give it |
| 16447 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16448 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16449 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 16450 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16451 | # following values. |
| 16452 | |
| 16453 | _ACEOF |
| 16454 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16455 | # The following way of writing the cache mishandles newlines in values, |
| 16456 | # but we know of no workaround that is simple, portable, and efficient. |
| 16457 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16458 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16459 | # 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] | 16460 | { |
| 16461 | (set) 2>&1 | |
| 16462 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16463 | *ac_space=\ *) |
| 16464 | # `set' does not quote correctly, so add quotes (double-quote |
| 16465 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16466 | sed -n \ |
| 16467 | "s/'/'\\\\''/g; |
| 16468 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16469 | ;; |
| 16470 | *) |
| 16471 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16472 | sed -n \ |
| 16473 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16474 | ;; |
| 16475 | esac; |
| 16476 | } | |
| 16477 | sed ' |
| 16478 | t clear |
| 16479 | : clear |
| 16480 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16481 | t end |
| 16482 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16483 | : end' >>confcache |
| 16484 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16485 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16486 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16487 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16488 | else |
| 16489 | echo "not updating unwritable cache $cache_file" |
| 16490 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16491 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16492 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16493 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16494 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16495 | # Let make expand exec_prefix. |
| 16496 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16498 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16499 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16500 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16501 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16502 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16503 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16504 | s/:*\$(srcdir):*/:/; |
| 16505 | s/:*\${srcdir}:*/:/; |
| 16506 | s/:*@srcdir@:*/:/; |
| 16507 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16508 | s/:*$//; |
| 16509 | s/^[^=]*=[ ]*$//; |
| 16510 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16511 | fi |
| 16512 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16513 | DEFS=-DHAVE_CONFIG_H |
| 16514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16515 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16516 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16517 | ac_clean_files_save=$ac_clean_files |
| 16518 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16519 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16520 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16521 | cat >$CONFIG_STATUS <<_ACEOF |
| 16522 | #! $SHELL |
| 16523 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16524 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16525 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16526 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16527 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16528 | debug=false |
| 16529 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16530 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | ## --------------------- ## |
| 16535 | ## M4sh Initialization. ## |
| 16536 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16538 | # Be Bourne compatible |
| 16539 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16540 | emulate sh |
| 16541 | NULLCMD=: |
| 16542 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16543 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16544 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16546 | # NLS nuisances. |
| 16547 | # Support unset when possible. |
| 16548 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16549 | as_unset=unset |
| 16550 | else |
| 16551 | as_unset=false |
| 16552 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16554 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16555 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16556 | { LANG=C; export LANG; } |
| 16557 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16558 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16559 | { LC_ALL=C; export LC_ALL; } |
| 16560 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16561 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16562 | { LC_TIME=C; export LC_TIME; } |
| 16563 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16564 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16565 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16566 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16567 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16568 | { LANGUAGE=C; export LANGUAGE; } |
| 16569 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16570 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16571 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16572 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16573 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16574 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16575 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16576 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16577 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16578 | |
| 16579 | |
| 16580 | # Name of the executable. |
| 16581 | as_me=`(basename "$0") 2>/dev/null || |
| 16582 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16583 | X"$0" : 'X\(//\)$' \| \ |
| 16584 | X"$0" : 'X\(/\)$' \| \ |
| 16585 | . : '\(.\)' 2>/dev/null || |
| 16586 | echo X/"$0" | |
| 16587 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16588 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16589 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16590 | s/.*/./; q'` |
| 16591 | |
| 16592 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16593 | # Avoid depending upon Character Ranges. |
| 16594 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16595 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16596 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16597 | as_cr_digits='0123456789' |
| 16598 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16599 | |
| 16600 | # The user is always right. |
| 16601 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16602 | echo "#! /bin/sh" >conftest.sh |
| 16603 | echo "exit 0" >>conftest.sh |
| 16604 | chmod +x conftest.sh |
| 16605 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16606 | PATH_SEPARATOR=';' |
| 16607 | else |
| 16608 | PATH_SEPARATOR=: |
| 16609 | fi |
| 16610 | rm -f conftest.sh |
| 16611 | fi |
| 16612 | |
| 16613 | |
| 16614 | as_lineno_1=$LINENO |
| 16615 | as_lineno_2=$LINENO |
| 16616 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16617 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16618 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16619 | # Find who we are. Look in the path if we contain no path at all |
| 16620 | # relative or not. |
| 16621 | case $0 in |
| 16622 | *[\\/]* ) as_myself=$0 ;; |
| 16623 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16624 | for as_dir in $PATH |
| 16625 | do |
| 16626 | IFS=$as_save_IFS |
| 16627 | test -z "$as_dir" && as_dir=. |
| 16628 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16629 | done |
| 16630 | |
| 16631 | ;; |
| 16632 | esac |
| 16633 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16634 | # in which case we are not to be found in the path. |
| 16635 | if test "x$as_myself" = x; then |
| 16636 | as_myself=$0 |
| 16637 | fi |
| 16638 | if test ! -f "$as_myself"; then |
| 16639 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16640 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16641 | { (exit 1); exit 1; }; } |
| 16642 | fi |
| 16643 | case $CONFIG_SHELL in |
| 16644 | '') |
| 16645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16646 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16647 | do |
| 16648 | IFS=$as_save_IFS |
| 16649 | test -z "$as_dir" && as_dir=. |
| 16650 | for as_base in sh bash ksh sh5; do |
| 16651 | case $as_dir in |
| 16652 | /*) |
| 16653 | if ("$as_dir/$as_base" -c ' |
| 16654 | as_lineno_1=$LINENO |
| 16655 | as_lineno_2=$LINENO |
| 16656 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16657 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16658 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16659 | CONFIG_SHELL=$as_dir/$as_base |
| 16660 | export CONFIG_SHELL |
| 16661 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16662 | fi;; |
| 16663 | esac |
| 16664 | done |
| 16665 | done |
| 16666 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16667 | esac |
| 16668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16669 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16670 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16671 | # line-number line before each line; the second 'sed' does the real |
| 16672 | # work. The second script uses 'N' to pair each line-number line |
| 16673 | # with the numbered line, and appends trailing '-' during |
| 16674 | # substitution so that $LINENO is not a special case at line end. |
| 16675 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16676 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16677 | sed '=' <$as_myself | |
| 16678 | sed ' |
| 16679 | N |
| 16680 | s,$,-, |
| 16681 | : loop |
| 16682 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16683 | t loop |
| 16684 | s,-$,, |
| 16685 | s,^['$as_cr_digits']*\n,, |
| 16686 | ' >$as_me.lineno && |
| 16687 | chmod +x $as_me.lineno || |
| 16688 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16689 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16690 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16692 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16693 | # (the dirname of $[0] is not the place where we might find the |
| 16694 | # original and so on. Autoconf is especially sensible to this). |
| 16695 | . ./$as_me.lineno |
| 16696 | # Exit status is that of the last command. |
| 16697 | exit |
| 16698 | } |
| 16699 | |
| 16700 | |
| 16701 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16702 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16703 | ' ECHO_T=' ' ;; |
| 16704 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16705 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16706 | esac |
| 16707 | |
| 16708 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16709 | as_expr=expr |
| 16710 | else |
| 16711 | as_expr=false |
| 16712 | fi |
| 16713 | |
| 16714 | rm -f conf$$ conf$$.exe conf$$.file |
| 16715 | echo >conf$$.file |
| 16716 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16717 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16718 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16719 | if test -f conf$$.exe; then |
| 16720 | # Don't use ln at all; we don't have any links |
| 16721 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16723 | as_ln_s='ln -s' |
| 16724 | fi |
| 16725 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16726 | as_ln_s=ln |
| 16727 | else |
| 16728 | as_ln_s='cp -p' |
| 16729 | fi |
| 16730 | rm -f conf$$ conf$$.exe conf$$.file |
| 16731 | |
| 16732 | as_executable_p="test -f" |
| 16733 | |
| 16734 | # Sed expression to map a string onto a valid CPP name. |
| 16735 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16736 | |
| 16737 | # Sed expression to map a string onto a valid variable name. |
| 16738 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16739 | |
| 16740 | |
| 16741 | # IFS |
| 16742 | # We need space, tab and new line, in precisely that order. |
| 16743 | as_nl=' |
| 16744 | ' |
| 16745 | IFS=" $as_nl" |
| 16746 | |
| 16747 | # CDPATH. |
| 16748 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16749 | |
| 16750 | exec 6>&1 |
| 16751 | |
| 16752 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16753 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16754 | # values after options handling. Logging --version etc. is OK. |
| 16755 | exec 5>>config.log |
| 16756 | { |
| 16757 | echo |
| 16758 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16759 | ## Running $as_me. ## |
| 16760 | _ASBOX |
| 16761 | } >&5 |
| 16762 | cat >&5 <<_CSEOF |
| 16763 | |
| 16764 | This file was extended by $as_me, which was |
| 16765 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16766 | |
| 16767 | CONFIG_FILES = $CONFIG_FILES |
| 16768 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16769 | CONFIG_LINKS = $CONFIG_LINKS |
| 16770 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16771 | $ $0 $@ |
| 16772 | |
| 16773 | _CSEOF |
| 16774 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16775 | echo >&5 |
| 16776 | _ACEOF |
| 16777 | |
| 16778 | # Files that config.status was made for. |
| 16779 | if test -n "$ac_config_files"; then |
| 16780 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16781 | fi |
| 16782 | |
| 16783 | if test -n "$ac_config_headers"; then |
| 16784 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16785 | fi |
| 16786 | |
| 16787 | if test -n "$ac_config_links"; then |
| 16788 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16789 | fi |
| 16790 | |
| 16791 | if test -n "$ac_config_commands"; then |
| 16792 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16793 | fi |
| 16794 | |
| 16795 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16796 | |
| 16797 | ac_cs_usage="\ |
| 16798 | \`$as_me' instantiates files from templates according to the |
| 16799 | current configuration. |
| 16800 | |
| 16801 | Usage: $0 [OPTIONS] [FILE]... |
| 16802 | |
| 16803 | -h, --help print this help, then exit |
| 16804 | -V, --version print version number, then exit |
| 16805 | -d, --debug don't remove temporary files |
| 16806 | --recheck update $as_me by reconfiguring in the same conditions |
| 16807 | --file=FILE[:TEMPLATE] |
| 16808 | instantiate the configuration file FILE |
| 16809 | --header=FILE[:TEMPLATE] |
| 16810 | instantiate the configuration header FILE |
| 16811 | |
| 16812 | Configuration files: |
| 16813 | $config_files |
| 16814 | |
| 16815 | Configuration headers: |
| 16816 | $config_headers |
| 16817 | |
| 16818 | Report bugs to <bug-autoconf@gnu.org>." |
| 16819 | _ACEOF |
| 16820 | |
| 16821 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16822 | ac_cs_version="\\ |
| 16823 | config.status |
| 16824 | configured by $0, generated by GNU Autoconf 2.53, |
| 16825 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16826 | |
| 16827 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16828 | Free Software Foundation, Inc. |
| 16829 | This config.status script is free software; the Free Software Foundation |
| 16830 | gives unlimited permission to copy, distribute and modify it." |
| 16831 | srcdir=$srcdir |
| 16832 | INSTALL="$INSTALL" |
| 16833 | _ACEOF |
| 16834 | |
| 16835 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16836 | # If no file are specified by the user, then we need to provide default |
| 16837 | # value. By we need to know if files were specified by the user. |
| 16838 | ac_need_defaults=: |
| 16839 | while test $# != 0 |
| 16840 | do |
| 16841 | case $1 in |
| 16842 | --*=*) |
| 16843 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16844 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16845 | shift |
| 16846 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16847 | shift |
| 16848 | ;; |
| 16849 | -*);; |
| 16850 | *) # This is not an option, so the user has probably given explicit |
| 16851 | # arguments. |
| 16852 | ac_need_defaults=false;; |
| 16853 | esac |
| 16854 | |
| 16855 | case $1 in |
| 16856 | # Handling of the options. |
| 16857 | _ACEOF |
| 16858 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16859 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16860 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16861 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16862 | _ACEOF |
| 16863 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16864 | --version | --vers* | -V ) |
| 16865 | echo "$ac_cs_version"; exit 0 ;; |
| 16866 | --he | --h) |
| 16867 | # Conflict between --help and --header |
| 16868 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16869 | Try \`$0 --help' for more information." >&5 |
| 16870 | echo "$as_me: error: ambiguous option: $1 |
| 16871 | Try \`$0 --help' for more information." >&2;} |
| 16872 | { (exit 1); exit 1; }; };; |
| 16873 | --help | --hel | -h ) |
| 16874 | echo "$ac_cs_usage"; exit 0 ;; |
| 16875 | --debug | --d* | -d ) |
| 16876 | debug=: ;; |
| 16877 | --file | --fil | --fi | --f ) |
| 16878 | shift |
| 16879 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16880 | ac_need_defaults=false;; |
| 16881 | --header | --heade | --head | --hea ) |
| 16882 | shift |
| 16883 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16884 | ac_need_defaults=false;; |
| 16885 | |
| 16886 | # This is an error. |
| 16887 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16888 | Try \`$0 --help' for more information." >&5 |
| 16889 | echo "$as_me: error: unrecognized option: $1 |
| 16890 | Try \`$0 --help' for more information." >&2;} |
| 16891 | { (exit 1); exit 1; }; } ;; |
| 16892 | |
| 16893 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16894 | |
| 16895 | esac |
| 16896 | shift |
| 16897 | done |
| 16898 | |
| 16899 | _ACEOF |
| 16900 | |
| 16901 | |
| 16902 | |
| 16903 | |
| 16904 | |
| 16905 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16906 | for ac_config_target in $ac_config_targets |
| 16907 | do |
| 16908 | case "$ac_config_target" in |
| 16909 | # Handling of arguments. |
| 16910 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16911 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16912 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16913 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16914 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16915 | { (exit 1); exit 1; }; };; |
| 16916 | esac |
| 16917 | done |
| 16918 | |
| 16919 | # If the user did not use the arguments to specify the items to instantiate, |
| 16920 | # then the envvar interface is used. Set only those that are not. |
| 16921 | # We use the long form for the default assignment because of an extremely |
| 16922 | # bizarre bug on SunOS 4.1.3. |
| 16923 | if $ac_need_defaults; then |
| 16924 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16925 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16926 | fi |
| 16927 | |
| 16928 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16929 | $debug || |
| 16930 | { |
| 16931 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16932 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16933 | } |
| 16934 | |
| 16935 | # Create a (secure) tmp directory for tmp files. |
| 16936 | : ${TMPDIR=/tmp} |
| 16937 | { |
| 16938 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16939 | test -n "$tmp" && test -d "$tmp" |
| 16940 | } || |
| 16941 | { |
| 16942 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16943 | (umask 077 && mkdir $tmp) |
| 16944 | } || |
| 16945 | { |
| 16946 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16947 | { (exit 1); exit 1; } |
| 16948 | } |
| 16949 | |
| 16950 | _ACEOF |
| 16951 | |
| 16952 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16953 | |
| 16954 | # |
| 16955 | # CONFIG_FILES section. |
| 16956 | # |
| 16957 | |
| 16958 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16959 | # This happens for instance when ./config.status config.h |
| 16960 | if test -n "\$CONFIG_FILES"; then |
| 16961 | # Protect against being on the right side of a sed subst in config.status. |
| 16962 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16963 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16964 | s,@SHELL@,$SHELL,;t t |
| 16965 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16966 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16967 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16968 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16969 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16970 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16971 | s,@exec_prefix@,$exec_prefix,;t t |
| 16972 | s,@prefix@,$prefix,;t t |
| 16973 | s,@program_transform_name@,$program_transform_name,;t t |
| 16974 | s,@bindir@,$bindir,;t t |
| 16975 | s,@sbindir@,$sbindir,;t t |
| 16976 | s,@libexecdir@,$libexecdir,;t t |
| 16977 | s,@datadir@,$datadir,;t t |
| 16978 | s,@sysconfdir@,$sysconfdir,;t t |
| 16979 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16980 | s,@localstatedir@,$localstatedir,;t t |
| 16981 | s,@libdir@,$libdir,;t t |
| 16982 | s,@includedir@,$includedir,;t t |
| 16983 | s,@oldincludedir@,$oldincludedir,;t t |
| 16984 | s,@infodir@,$infodir,;t t |
| 16985 | s,@mandir@,$mandir,;t t |
| 16986 | s,@build_alias@,$build_alias,;t t |
| 16987 | s,@host_alias@,$host_alias,;t t |
| 16988 | s,@target_alias@,$target_alias,;t t |
| 16989 | s,@DEFS@,$DEFS,;t t |
| 16990 | s,@ECHO_C@,$ECHO_C,;t t |
| 16991 | s,@ECHO_N@,$ECHO_N,;t t |
| 16992 | s,@ECHO_T@,$ECHO_T,;t t |
| 16993 | s,@LIBS@,$LIBS,;t t |
| 16994 | s,@VERSION@,$VERSION,;t t |
| 16995 | s,@SOVERSION@,$SOVERSION,;t t |
| 16996 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16997 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16998 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16999 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17000 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17001 | s,@MACHDEP@,$MACHDEP,;t t |
| 17002 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 17003 | s,@CXX@,$CXX,;t t |
| 17004 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17005 | s,@EXEEXT@,$EXEEXT,;t t |
| 17006 | s,@CC@,$CC,;t t |
| 17007 | s,@CFLAGS@,$CFLAGS,;t t |
| 17008 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17009 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17010 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17011 | s,@OBJEXT@,$OBJEXT,;t t |
| 17012 | s,@CPP@,$CPP,;t t |
| 17013 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17014 | s,@LIBRARY@,$LIBRARY,;t t |
| 17015 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17016 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17017 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17018 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17019 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17020 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17021 | s,@LINKCC@,$LINKCC,;t t |
| 17022 | s,@RANLIB@,$RANLIB,;t t |
| 17023 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17024 | s,@AR@,$AR,;t t |
| 17025 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17026 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17027 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17028 | s,@LN@,$LN,;t t |
| 17029 | s,@OPT@,$OPT,;t t |
| 17030 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17031 | s,@SO@,$SO,;t t |
| 17032 | s,@LDSHARED@,$LDSHARED,;t t |
| 17033 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17034 | s,@CCSHARED@,$CCSHARED,;t t |
| 17035 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17036 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17037 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17038 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17039 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17040 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17041 | s,@LDLAST@,$LDLAST,;t t |
| 17042 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17043 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17044 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17045 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17046 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17047 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17048 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17049 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17050 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17051 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17052 | s,@LIBM@,$LIBM,;t t |
| 17053 | s,@LIBC@,$LIBC,;t t |
| 17054 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17055 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17056 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17057 | CEOF |
| 17058 | |
| 17059 | _ACEOF |
| 17060 | |
| 17061 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17062 | # Split the substitutions into bite-sized pieces for seds with |
| 17063 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17064 | ac_max_sed_lines=48 |
| 17065 | ac_sed_frag=1 # Number of current file. |
| 17066 | ac_beg=1 # First line for current file. |
| 17067 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17068 | ac_more_lines=: |
| 17069 | ac_sed_cmds= |
| 17070 | while $ac_more_lines; do |
| 17071 | if test $ac_beg -gt 1; then |
| 17072 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17073 | else |
| 17074 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17075 | fi |
| 17076 | if test ! -s $tmp/subs.frag; then |
| 17077 | ac_more_lines=false |
| 17078 | else |
| 17079 | # The purpose of the label and of the branching condition is to |
| 17080 | # speed up the sed processing (if there are no `@' at all, there |
| 17081 | # is no need to browse any of the substitutions). |
| 17082 | # These are the two extra sed commands mentioned above. |
| 17083 | (echo ':t |
| 17084 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17085 | if test -z "$ac_sed_cmds"; then |
| 17086 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17087 | else |
| 17088 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17089 | fi |
| 17090 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17091 | ac_beg=$ac_end |
| 17092 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17093 | fi |
| 17094 | done |
| 17095 | if test -z "$ac_sed_cmds"; then |
| 17096 | ac_sed_cmds=cat |
| 17097 | fi |
| 17098 | fi # test -n "$CONFIG_FILES" |
| 17099 | |
| 17100 | _ACEOF |
| 17101 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17102 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17103 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17104 | case $ac_file in |
| 17105 | - | *:- | *:-:* ) # input from stdin |
| 17106 | cat >$tmp/stdin |
| 17107 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17108 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17109 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17110 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17111 | * ) ac_file_in=$ac_file.in ;; |
| 17112 | esac |
| 17113 | |
| 17114 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17115 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17116 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17117 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17118 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17119 | X"$ac_file" : 'X\(/\)' \| \ |
| 17120 | . : '\(.\)' 2>/dev/null || |
| 17121 | echo X"$ac_file" | |
| 17122 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17123 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17124 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17125 | /^X\(\/\).*/{ s//\1/; q; } |
| 17126 | s/.*/./; q'` |
| 17127 | { case "$ac_dir" in |
| 17128 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17129 | *) as_incr_dir=.;; |
| 17130 | esac |
| 17131 | as_dummy="$ac_dir" |
| 17132 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17133 | case $as_mkdir_dir in |
| 17134 | # Skip DOS drivespec |
| 17135 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17136 | *) |
| 17137 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17138 | test -d "$as_incr_dir" || |
| 17139 | mkdir "$as_incr_dir" || |
| 17140 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17141 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17142 | { (exit 1); exit 1; }; } |
| 17143 | ;; |
| 17144 | esac |
| 17145 | done; } |
| 17146 | |
| 17147 | ac_builddir=. |
| 17148 | |
| 17149 | if test "$ac_dir" != .; then |
| 17150 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17151 | # A "../" for each directory in $ac_dir_suffix. |
| 17152 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17153 | else |
| 17154 | ac_dir_suffix= ac_top_builddir= |
| 17155 | fi |
| 17156 | |
| 17157 | case $srcdir in |
| 17158 | .) # No --srcdir option. We are building in place. |
| 17159 | ac_srcdir=. |
| 17160 | if test -z "$ac_top_builddir"; then |
| 17161 | ac_top_srcdir=. |
| 17162 | else |
| 17163 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17164 | fi ;; |
| 17165 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17166 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17167 | ac_top_srcdir=$srcdir ;; |
| 17168 | *) # Relative path. |
| 17169 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17170 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17171 | esac |
| 17172 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17173 | # absolute. |
| 17174 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 17175 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17176 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17177 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17178 | |
| 17179 | |
| 17180 | case $INSTALL in |
| 17181 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17182 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17183 | esac |
| 17184 | |
| 17185 | if test x"$ac_file" != x-; then |
| 17186 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17187 | echo "$as_me: creating $ac_file" >&6;} |
| 17188 | rm -f "$ac_file" |
| 17189 | fi |
| 17190 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17191 | # use $as_me), people would be surprised to read: |
| 17192 | # /* config.h. Generated by config.status. */ |
| 17193 | if test x"$ac_file" = x-; then |
| 17194 | configure_input= |
| 17195 | else |
| 17196 | configure_input="$ac_file. " |
| 17197 | fi |
| 17198 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17199 | sed 's,.*/,,'` by configure." |
| 17200 | |
| 17201 | # First look for the input files in the build tree, otherwise in the |
| 17202 | # src tree. |
| 17203 | ac_file_inputs=`IFS=: |
| 17204 | for f in $ac_file_in; do |
| 17205 | case $f in |
| 17206 | -) echo $tmp/stdin ;; |
| 17207 | [\\/$]*) |
| 17208 | # Absolute (can't be DOS-style, as IFS=:) |
| 17209 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17210 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17211 | { (exit 1); exit 1; }; } |
| 17212 | echo $f;; |
| 17213 | *) # Relative |
| 17214 | if test -f "$f"; then |
| 17215 | # Build tree |
| 17216 | echo $f |
| 17217 | elif test -f "$srcdir/$f"; then |
| 17218 | # Source tree |
| 17219 | echo $srcdir/$f |
| 17220 | else |
| 17221 | # /dev/null tree |
| 17222 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17223 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17224 | { (exit 1); exit 1; }; } |
| 17225 | fi;; |
| 17226 | esac |
| 17227 | done` || { (exit 1); exit 1; } |
| 17228 | _ACEOF |
| 17229 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17230 | sed "$ac_vpsub |
| 17231 | $extrasub |
| 17232 | _ACEOF |
| 17233 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17234 | :t |
| 17235 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17236 | s,@configure_input@,$configure_input,;t t |
| 17237 | s,@srcdir@,$ac_srcdir,;t t |
| 17238 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17239 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17240 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17241 | s,@builddir@,$ac_builddir,;t t |
| 17242 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17243 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17244 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17245 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17246 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17247 | rm -f $tmp/stdin |
| 17248 | if test x"$ac_file" != x-; then |
| 17249 | mv $tmp/out $ac_file |
| 17250 | else |
| 17251 | cat $tmp/out |
| 17252 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17253 | fi |
| 17254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17255 | done |
| 17256 | _ACEOF |
| 17257 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17259 | # |
| 17260 | # CONFIG_HEADER section. |
| 17261 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17262 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17263 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17264 | # 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] | 17265 | # |
| 17266 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17267 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17268 | ac_dB='[ ].*$,\1#\2' |
| 17269 | ac_dC=' ' |
| 17270 | ac_dD=',;t' |
| 17271 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17272 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17273 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17274 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17275 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | 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] | 17278 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17279 | case $ac_file in |
| 17280 | - | *:- | *:-:* ) # input from stdin |
| 17281 | cat >$tmp/stdin |
| 17282 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17283 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17284 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17285 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17286 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17287 | esac |
| 17288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17289 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17290 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17292 | # First look for the input files in the build tree, otherwise in the |
| 17293 | # src tree. |
| 17294 | ac_file_inputs=`IFS=: |
| 17295 | for f in $ac_file_in; do |
| 17296 | case $f in |
| 17297 | -) echo $tmp/stdin ;; |
| 17298 | [\\/$]*) |
| 17299 | # Absolute (can't be DOS-style, as IFS=:) |
| 17300 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17301 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17302 | { (exit 1); exit 1; }; } |
| 17303 | echo $f;; |
| 17304 | *) # Relative |
| 17305 | if test -f "$f"; then |
| 17306 | # Build tree |
| 17307 | echo $f |
| 17308 | elif test -f "$srcdir/$f"; then |
| 17309 | # Source tree |
| 17310 | echo $srcdir/$f |
| 17311 | else |
| 17312 | # /dev/null tree |
| 17313 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17314 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17315 | { (exit 1); exit 1; }; } |
| 17316 | fi;; |
| 17317 | esac |
| 17318 | done` || { (exit 1); exit 1; } |
| 17319 | # Remove the trailing spaces. |
| 17320 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17322 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17324 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17325 | # `conftest.undefs', that substitutes the proper values into |
| 17326 | # config.h.in to produce config.h. The first handles `#define' |
| 17327 | # templates, and the second `#undef' templates. |
| 17328 | # And first: Protect against being on the right side of a sed subst in |
| 17329 | # config.status. Protect against being in an unquoted here document |
| 17330 | # in config.status. |
| 17331 | rm -f conftest.defines conftest.undefs |
| 17332 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17333 | # Putting comments in sed scripts is not portable. |
| 17334 | # |
| 17335 | # `end' is used to avoid that the second main sed command (meant for |
| 17336 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17337 | # See the Autoconf documentation for `clear'. |
| 17338 | cat >confdef2sed.sed <<\_ACEOF |
| 17339 | s/[\\&,]/\\&/g |
| 17340 | s,[\\$`],\\&,g |
| 17341 | t clear |
| 17342 | : clear |
| 17343 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17344 | t end |
| 17345 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17346 | : end |
| 17347 | _ACEOF |
| 17348 | # If some macros were called several times there might be several times |
| 17349 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17350 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17351 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17352 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17353 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17354 | |
| 17355 | # This sed command replaces #undef with comments. This is necessary, for |
| 17356 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17357 | # 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] | 17358 | cat >>conftest.undefs <<\_ACEOF |
| 17359 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17360 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17362 | # Break up conftest.defines because some shells have a limit on the size |
| 17363 | # of here documents, and old seds have small limits too (100 cmds). |
| 17364 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 17365 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 17366 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17367 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17368 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17369 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17370 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17371 | # Write a limited-size here document to $tmp/defines.sed. |
| 17372 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17373 | # Speed up: don't consider the non `#define' lines. |
| 17374 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17375 | # Work around the forget-to-reset-the-flag bug. |
| 17376 | echo 't clr' >>$CONFIG_STATUS |
| 17377 | echo ': clr' >>$CONFIG_STATUS |
| 17378 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17379 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17380 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17381 | rm -f $tmp/in |
| 17382 | mv $tmp/out $tmp/in |
| 17383 | ' >>$CONFIG_STATUS |
| 17384 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17385 | rm -f conftest.defines |
| 17386 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17387 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17388 | rm -f conftest.defines |
| 17389 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 17390 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17392 | # Break up conftest.undefs because some shells have a limit on the size |
| 17393 | # of here documents, and old seds have small limits too (100 cmds). |
| 17394 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17395 | rm -f conftest.tail |
| 17396 | while grep . conftest.undefs >/dev/null |
| 17397 | do |
| 17398 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17399 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17400 | # Speed up: don't consider the non `#undef' |
| 17401 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17402 | # Work around the forget-to-reset-the-flag bug. |
| 17403 | echo 't clr' >>$CONFIG_STATUS |
| 17404 | echo ': clr' >>$CONFIG_STATUS |
| 17405 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17406 | echo 'CEOF |
| 17407 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17408 | rm -f $tmp/in |
| 17409 | mv $tmp/out $tmp/in |
| 17410 | ' >>$CONFIG_STATUS |
| 17411 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17412 | rm -f conftest.undefs |
| 17413 | mv conftest.tail conftest.undefs |
| 17414 | done |
| 17415 | rm -f conftest.undefs |
| 17416 | |
| 17417 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17418 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17419 | # use $as_me), people would be surprised to read: |
| 17420 | # /* config.h. Generated by config.status. */ |
| 17421 | if test x"$ac_file" = x-; then |
| 17422 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17424 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17425 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17426 | cat $tmp/in >>$tmp/config.h |
| 17427 | rm -f $tmp/in |
| 17428 | if test x"$ac_file" != x-; then |
| 17429 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 17430 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17431 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17432 | else |
| 17433 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17434 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17435 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17436 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17437 | X"$ac_file" : 'X\(/\)' \| \ |
| 17438 | . : '\(.\)' 2>/dev/null || |
| 17439 | echo X"$ac_file" | |
| 17440 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17441 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17442 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17443 | /^X\(\/\).*/{ s//\1/; q; } |
| 17444 | s/.*/./; q'` |
| 17445 | { case "$ac_dir" in |
| 17446 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17447 | *) as_incr_dir=.;; |
| 17448 | esac |
| 17449 | as_dummy="$ac_dir" |
| 17450 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17451 | case $as_mkdir_dir in |
| 17452 | # Skip DOS drivespec |
| 17453 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17454 | *) |
| 17455 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17456 | test -d "$as_incr_dir" || |
| 17457 | mkdir "$as_incr_dir" || |
| 17458 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17459 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17460 | { (exit 1); exit 1; }; } |
| 17461 | ;; |
| 17462 | esac |
| 17463 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17465 | rm -f $ac_file |
| 17466 | mv $tmp/config.h $ac_file |
| 17467 | fi |
| 17468 | else |
| 17469 | cat $tmp/config.h |
| 17470 | rm -f $tmp/config.h |
| 17471 | fi |
| 17472 | done |
| 17473 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17477 | { (exit 0); exit 0; } |
| 17478 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17479 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17480 | ac_clean_files=$ac_clean_files_save |
| 17481 | |
| 17482 | |
| 17483 | # configure is writing to config.log, and then calls config.status. |
| 17484 | # config.status does its own redirection, appending to config.log. |
| 17485 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17486 | # by configure, so config.status won't be able to write to it; its |
| 17487 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17488 | # effectively closing config.log, so it can be properly (re)opened and |
| 17489 | # appended to by config.status. When coming back to configure, we |
| 17490 | # need to make the FD available again. |
| 17491 | if test "$no_create" != yes; then |
| 17492 | ac_cs_success=: |
| 17493 | exec 5>/dev/null |
| 17494 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17495 | exec 5>>config.log |
| 17496 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17497 | # would make configure fail if this is the last instruction. |
| 17498 | $ac_cs_success || { (exit 1); exit 1; } |
| 17499 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17500 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17501 | |
| 17502 | echo "creating Setup" |
| 17503 | if test ! -f Modules/Setup |
| 17504 | then |
| 17505 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17506 | fi |
| 17507 | |
| 17508 | echo "creating Setup.local" |
| 17509 | if test ! -f Modules/Setup.local |
| 17510 | then |
| 17511 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17512 | fi |
| 17513 | |
| 17514 | echo "creating Makefile" |
| 17515 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17516 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17517 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17518 | mv config.c Modules |