Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.366 . |
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 | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.53 for python 2.3. |
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. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 256 | PACKAGE_NAME='python' |
| 257 | PACKAGE_TARNAME='python' |
| 258 | PACKAGE_VERSION='2.3' |
| 259 | PACKAGE_STRING='python 2.3' |
| 260 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 764 | \`configure' configures python 2.3 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 820 | case $ac_init_help in |
| 821 | short | recursive ) echo "Configuration of python 2.3:";; |
| 822 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | cat <<\_ACEOF |
| 824 | |
| 825 | Optional Features: |
| 826 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 827 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 828 | --enable-framework[=INSTALLDIR] |
| 829 | Build (MacOSX|Darwin) framework |
| 830 | --enable-shared disable/enable building shared python library |
| 831 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 832 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 833 | --disable-ipv6 Disable ipv6 support |
| 834 | --enable-unicode[=ucs[24]] |
| 835 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 836 | |
| 837 | Optional Packages: |
| 838 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 839 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 840 | --without-gcc never use gcc |
| 841 | --with-cxx=<compiler> enable C++ support |
| 842 | --with-suffix=.exe set executable suffix |
| 843 | --with-pydebug build with Py_DEBUG defined |
| 844 | --with-libs='lib1 ...' link against additional libs |
| 845 | --with-signal-module disable/enable signal module |
| 846 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 847 | --with(out)-threads[=DIRECTORY] |
| 848 | disable/enable thread support |
| 849 | --with(out)-thread[=DIRECTORY] |
| 850 | deprecated; use --with(out)-threads |
| 851 | --with-pth use GNU pth threading libraries |
| 852 | --with(out)-universal-newlines |
| 853 | disable/enable foreign newlines |
| 854 | --with(out)-doc-strings disable/enable documentation strings |
| 855 | --with(out)-pymalloc disable/enable specialized mallocs |
| 856 | --with-wctype-functions use wctype.h functions |
| 857 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 858 | --with-dl-dld=DL_DIR GNU dynamic linking |
| 859 | --with-fpectl enable SIGFPE catching |
| 860 | --with-libm=STRING math library |
| 861 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | |
| 863 | Some influential environment variables: |
| 864 | CC C compiler command |
| 865 | CFLAGS C compiler flags |
| 866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 867 | nonstandard directory <lib dir> |
| 868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 869 | headers in a nonstandard directory <include dir> |
| 870 | CPP C preprocessor |
| 871 | |
| 872 | Use these variables to override the choices made by `configure' or to help |
| 873 | it to find libraries and programs with nonstandard names/locations. |
| 874 | |
| 875 | _ACEOF |
| 876 | fi |
| 877 | |
| 878 | if test "$ac_init_help" = "recursive"; then |
| 879 | # If there are subdirs, report their specific --help. |
| 880 | ac_popdir=`pwd` |
| 881 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 882 | test -d $ac_dir || continue |
| 883 | ac_builddir=. |
| 884 | |
| 885 | if test "$ac_dir" != .; then |
| 886 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 887 | # A "../" for each directory in $ac_dir_suffix. |
| 888 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 889 | else |
| 890 | ac_dir_suffix= ac_top_builddir= |
| 891 | fi |
| 892 | |
| 893 | case $srcdir in |
| 894 | .) # No --srcdir option. We are building in place. |
| 895 | ac_srcdir=. |
| 896 | if test -z "$ac_top_builddir"; then |
| 897 | ac_top_srcdir=. |
| 898 | else |
| 899 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 900 | fi ;; |
| 901 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 902 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 903 | ac_top_srcdir=$srcdir ;; |
| 904 | *) # Relative path. |
| 905 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 906 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 907 | esac |
| 908 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 909 | # absolute. |
| 910 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 911 | 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] | 912 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 913 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 914 | |
| 915 | cd $ac_dir |
| 916 | # Check for guested configure; otherwise get Cygnus style configure. |
| 917 | if test -f $ac_srcdir/configure.gnu; then |
| 918 | echo |
| 919 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 920 | elif test -f $ac_srcdir/configure; then |
| 921 | echo |
| 922 | $SHELL $ac_srcdir/configure --help=recursive |
| 923 | elif test -f $ac_srcdir/configure.ac || |
| 924 | test -f $ac_srcdir/configure.in; then |
| 925 | echo |
| 926 | $ac_configure --help |
| 927 | else |
| 928 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 929 | fi |
| 930 | cd $ac_popdir |
| 931 | done |
| 932 | fi |
| 933 | |
| 934 | test -n "$ac_init_help" && exit 0 |
| 935 | if $ac_init_version; then |
| 936 | cat <<\_ACEOF |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 937 | python configure 2.3 |
| 938 | generated by GNU Autoconf 2.53 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 939 | |
| 940 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 941 | Free Software Foundation, Inc. |
| 942 | This configure script is free software; the Free Software Foundation |
| 943 | gives unlimited permission to copy, distribute and modify it. |
| 944 | _ACEOF |
| 945 | exit 0 |
| 946 | fi |
| 947 | exec 5>config.log |
| 948 | cat >&5 <<_ACEOF |
| 949 | This file contains any messages produced by compilers while |
| 950 | running configure, to aid debugging if configure makes a mistake. |
| 951 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 952 | It was created by python $as_me 2.3, which was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 | generated by GNU Autoconf 2.53. Invocation command line was |
| 954 | |
| 955 | $ $0 $@ |
| 956 | |
| 957 | _ACEOF |
| 958 | { |
| 959 | cat <<_ASUNAME |
| 960 | ## --------- ## |
| 961 | ## Platform. ## |
| 962 | ## --------- ## |
| 963 | |
| 964 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 965 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 966 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 967 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 968 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 969 | |
| 970 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 971 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 972 | |
| 973 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 974 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 975 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 976 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 977 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 978 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 979 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 980 | |
| 981 | _ASUNAME |
| 982 | |
| 983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 984 | for as_dir in $PATH |
| 985 | do |
| 986 | IFS=$as_save_IFS |
| 987 | test -z "$as_dir" && as_dir=. |
| 988 | echo "PATH: $as_dir" |
| 989 | done |
| 990 | |
| 991 | } >&5 |
| 992 | |
| 993 | cat >&5 <<_ACEOF |
| 994 | |
| 995 | |
| 996 | ## ----------- ## |
| 997 | ## Core tests. ## |
| 998 | ## ----------- ## |
| 999 | |
| 1000 | _ACEOF |
| 1001 | |
| 1002 | |
| 1003 | # Keep a trace of the command line. |
| 1004 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1005 | # Also quote any args containing shell meta-characters. |
| 1006 | ac_configure_args= |
| 1007 | ac_sep= |
| 1008 | for ac_arg |
| 1009 | do |
| 1010 | case $ac_arg in |
| 1011 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1012 | | --no-cr | --no-c | -n ) continue ;; |
| 1013 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1014 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1015 | continue ;; |
| 1016 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1017 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1018 | esac |
| 1019 | case " $ac_configure_args " in |
| 1020 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1021 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1022 | ac_sep=" " ;; |
| 1023 | esac |
| 1024 | # Get rid of the leading space. |
| 1025 | done |
| 1026 | |
| 1027 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1028 | # config.log. We remove comments because anyway the quotes in there |
| 1029 | # would cause problems or look ugly. |
| 1030 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1031 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1032 | trap 'exit_status=$? |
| 1033 | # Save into config.log some information that might help in debugging. |
| 1034 | { |
| 1035 | echo |
| 1036 | cat <<\_ASBOX |
| 1037 | ## ---------------- ## |
| 1038 | ## Cache variables. ## |
| 1039 | ## ---------------- ## |
| 1040 | _ASBOX |
| 1041 | echo |
| 1042 | # The following way of writing the cache mishandles newlines in values, |
| 1043 | { |
| 1044 | (set) 2>&1 | |
| 1045 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1046 | *ac_space=\ *) |
| 1047 | sed -n \ |
| 1048 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1049 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1050 | ;; |
| 1051 | *) |
| 1052 | sed -n \ |
| 1053 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1054 | ;; |
| 1055 | esac; |
| 1056 | } |
| 1057 | echo |
| 1058 | if test -s confdefs.h; then |
| 1059 | cat <<\_ASBOX |
| 1060 | ## ----------- ## |
| 1061 | ## confdefs.h. ## |
| 1062 | ## ----------- ## |
| 1063 | _ASBOX |
| 1064 | echo |
| 1065 | sed "/^$/d" confdefs.h |
| 1066 | echo |
| 1067 | fi |
| 1068 | test "$ac_signal" != 0 && |
| 1069 | echo "$as_me: caught signal $ac_signal" |
| 1070 | echo "$as_me: exit $exit_status" |
| 1071 | } >&5 |
| 1072 | rm -f core core.* *.core && |
| 1073 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1074 | exit $exit_status |
| 1075 | ' 0 |
| 1076 | for ac_signal in 1 2 13 15; do |
| 1077 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1078 | done |
| 1079 | ac_signal=0 |
| 1080 | |
| 1081 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1082 | rm -rf conftest* confdefs.h |
| 1083 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1084 | echo >confdefs.h |
| 1085 | |
| 1086 | # Predefined preprocessor variables. |
| 1087 | |
| 1088 | cat >>confdefs.h <<_ACEOF |
| 1089 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1090 | _ACEOF |
| 1091 | |
| 1092 | |
| 1093 | cat >>confdefs.h <<_ACEOF |
| 1094 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1095 | _ACEOF |
| 1096 | |
| 1097 | |
| 1098 | cat >>confdefs.h <<_ACEOF |
| 1099 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1100 | _ACEOF |
| 1101 | |
| 1102 | |
| 1103 | cat >>confdefs.h <<_ACEOF |
| 1104 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1105 | _ACEOF |
| 1106 | |
| 1107 | |
| 1108 | cat >>confdefs.h <<_ACEOF |
| 1109 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1110 | _ACEOF |
| 1111 | |
| 1112 | |
| 1113 | # 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] | 1114 | # Prefer explicitly selected file to automatically selected ones. |
| 1115 | if test -z "$CONFIG_SITE"; then |
| 1116 | if test "x$prefix" != xNONE; then |
| 1117 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1118 | else |
| 1119 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1120 | fi |
| 1121 | fi |
| 1122 | for ac_site_file in $CONFIG_SITE; do |
| 1123 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1125 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1126 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 | . "$ac_site_file" |
| 1128 | fi |
| 1129 | done |
| 1130 | |
| 1131 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | # Some versions of bash will fail to source /dev/null (special |
| 1133 | # files actually), so we avoid doing that. |
| 1134 | if test -f "$cache_file"; then |
| 1135 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1136 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1137 | case $cache_file in |
| 1138 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1139 | *) . ./$cache_file;; |
| 1140 | esac |
| 1141 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1143 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1144 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1145 | >$cache_file |
| 1146 | fi |
| 1147 | |
| 1148 | # Check that the precious variables saved in the cache have kept the same |
| 1149 | # value. |
| 1150 | ac_cache_corrupted=false |
| 1151 | for ac_var in `(set) 2>&1 | |
| 1152 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1153 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1154 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1155 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1156 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1157 | case $ac_old_set,$ac_new_set in |
| 1158 | set,) |
| 1159 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1160 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1161 | ac_cache_corrupted=: ;; |
| 1162 | ,set) |
| 1163 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1164 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1165 | ac_cache_corrupted=: ;; |
| 1166 | ,);; |
| 1167 | *) |
| 1168 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1169 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1170 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1171 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1172 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1173 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1174 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1175 | ac_cache_corrupted=: |
| 1176 | fi;; |
| 1177 | esac |
| 1178 | # Pass precious variables to config.status. |
| 1179 | if test "$ac_new_set" = set; then |
| 1180 | case $ac_new_val in |
| 1181 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1182 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1183 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1184 | esac |
| 1185 | case " $ac_configure_args " in |
| 1186 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1187 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1188 | esac |
| 1189 | fi |
| 1190 | done |
| 1191 | if $ac_cache_corrupted; then |
| 1192 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1193 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1194 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1195 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1196 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1197 | fi |
| 1198 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1199 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1200 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1205 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1206 | |
| 1207 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | |
| 1219 | |
| 1220 | |
| 1221 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1222 | |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | |
| 1230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1231 | ac_config_headers="$ac_config_headers pyconfig.h" |
| 1232 | |
| 1233 | |
| 1234 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1235 | # Please use pyport.h instead, if possible. |
| 1236 | |
| 1237 | |
| 1238 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1239 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame^] | 1240 | |
| 1241 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1242 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1243 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1244 | |
| 1245 | SOVERSION=1.0 |
| 1246 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1247 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1248 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1249 | |
| 1250 | cat >>confdefs.h <<\_ACEOF |
| 1251 | #define _GNU_SOURCE 1 |
| 1252 | _ACEOF |
| 1253 | |
| 1254 | |
| 1255 | # The definition of _GNU_SOURCE potentially causes a change of the value |
| 1256 | # of _XOPEN_SOURCE. So define it only conditionally. |
| 1257 | |
| 1258 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1259 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1260 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1261 | |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame] | 1262 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires definition |
| 1263 | # of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else several APIs |
| 1264 | # are not declared. Since this is also needed in some cases for HP-UX, |
| 1265 | # we define it globally. |
| 1266 | |
| 1267 | cat >>confdefs.h <<\_ACEOF |
| 1268 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1269 | _ACEOF |
| 1270 | |
| 1271 | |
| 1272 | cat >>confdefs.h <<\_ACEOF |
| 1273 | #define _POSIX_C_SOURCE 199506L |
| 1274 | _ACEOF |
| 1275 | |
| 1276 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1277 | # Arguments passed to configure. |
| 1278 | |
| 1279 | CONFIG_ARGS="$ac_configure_args" |
| 1280 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1281 | # Check whether --enable-framework or --disable-framework was given. |
| 1282 | if test "${enable_framework+set}" = set; then |
| 1283 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1285 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1286 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1287 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1288 | esac |
| 1289 | case $enableval in |
| 1290 | no) |
| 1291 | PYTHONFRAMEWORK= |
| 1292 | PYTHONFRAMEWORKDIR=no-framework |
| 1293 | PYTHONFRAMEWORKPREFIX= |
| 1294 | PYTHONFRAMEWORKINSTALLDIR= |
| 1295 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1296 | ;; |
| 1297 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1298 | PYTHONFRAMEWORK=Python |
| 1299 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1300 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1301 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1302 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1303 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1304 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1307 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1308 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1309 | PYTHONFRAMEWORKPREFIX= |
| 1310 | PYTHONFRAMEWORKINSTALLDIR= |
| 1311 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1313 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1318 | |
| 1319 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1320 | ## AC_HELP_STRING(--with-dyld, |
| 1321 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1322 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1323 | # Set name for machine-dependent library files |
| 1324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1326 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1327 | if test -z "$MACHDEP" |
| 1328 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1329 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1330 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1331 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1332 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1333 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1334 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1335 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1336 | ac_md_system=`echo $ac_sys_system | |
| 1337 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1338 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1339 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1340 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1341 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1342 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1343 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1344 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1345 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1346 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1347 | esac |
| 1348 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1349 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1350 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1351 | # disable features if it is defined, without any means to access these |
| 1352 | # features as extensions. For these systems, we skip the definition of |
| 1353 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1354 | # some feature, make sure there is no alternative way to access this |
| 1355 | # feature. Also, when using wildcards, make sure you have verified the |
| 1356 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1357 | # wildcard, and that the wildcard does not include future systems |
| 1358 | # (which may remove their limitations). |
| 1359 | case $ac_sys_system/$ac_sys_release in |
| 1360 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1361 | # even though select is a POSIX function. Reported by J. Ribbens. |
| 1362 | OpenBSD/2.* | OpenBSD/3.[012]) |
| 1363 | define_xopen_source=no;; |
| 1364 | esac |
| 1365 | |
| 1366 | if test $define_xopen_source = yes |
| 1367 | then |
| 1368 | cat >>confdefs.h <<\_ACEOF |
| 1369 | #define _XOPEN_SOURCE 500 |
| 1370 | _ACEOF |
| 1371 | |
| 1372 | fi |
| 1373 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1374 | # |
| 1375 | # SGI compilers allow the specification of the both the ABI and the |
| 1376 | # ISA on the command line. Depending on the values of these switches, |
| 1377 | # different and often incompatable code will be generated. |
| 1378 | # |
| 1379 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1380 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1381 | # variable is also adjusted. |
| 1382 | # |
| 1383 | |
| 1384 | if test ! -z "$SGI_ABI" |
| 1385 | then |
| 1386 | CC="cc $SGI_ABI" |
| 1387 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1388 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1391 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1392 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1393 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1395 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1396 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1397 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1398 | if test "${with_gcc+set}" = set; then |
| 1399 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1401 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1402 | no) CC=cc |
| 1403 | without_gcc=yes;; |
| 1404 | yes) CC=gcc |
| 1405 | without_gcc=no;; |
| 1406 | *) CC=$withval |
| 1407 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1408 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1410 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1411 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1412 | AIX*) CC=cc_r |
| 1413 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1414 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1415 | case $BE_HOST_CPU in |
| 1416 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1417 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1418 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1419 | OPT="-O -export pragma" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1420 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1421 | ;; |
| 1422 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1423 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1424 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1425 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1426 | ;; |
| 1427 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1428 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1429 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1430 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1431 | ;; |
| 1432 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1433 | AR="\$(srcdir)/Modules/ar_beos" |
| 1434 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1435 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1436 | Monterey*) |
| 1437 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1438 | without_gcc=;; |
| 1439 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1440 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | fi; |
| 1442 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1443 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1444 | |
| 1445 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1446 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1447 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1448 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1449 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1450 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1451 | # Check whether --with-cxx or --without-cxx was given. |
| 1452 | if test "${with_cxx+set}" = set; then |
| 1453 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1454 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1455 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1456 | case $withval in |
| 1457 | no) CXX= |
| 1458 | with_cxx=no;; |
| 1459 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1460 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1461 | with_cxx=$withval;; |
| 1462 | esac |
| 1463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1465 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1466 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1468 | fi; |
| 1469 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1470 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1471 | |
| 1472 | if test "$with_cxx" = "yes" |
| 1473 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1475 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1476 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1477 | fi |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1482 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1483 | then |
| 1484 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1485 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | # 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] | 1487 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1490 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1492 | else |
| 1493 | if test -n "$CXX"; then |
| 1494 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1497 | for as_dir in $PATH |
| 1498 | do |
| 1499 | IFS=$as_save_IFS |
| 1500 | test -z "$as_dir" && as_dir=. |
| 1501 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1502 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1503 | ac_cv_prog_CXX="$ac_prog" |
| 1504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1505 | break 2 |
| 1506 | fi |
| 1507 | done |
| 1508 | done |
| 1509 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1510 | fi |
| 1511 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1513 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1515 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1516 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1517 | echo "$as_me:$LINENO: result: no" >&5 |
| 1518 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1519 | fi |
| 1520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1522 | done |
| 1523 | test -n "$CXX" || CXX="notfound" |
| 1524 | |
| 1525 | if test "$CXX" = "notfound" |
| 1526 | then |
| 1527 | CXX= |
| 1528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1529 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1530 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1531 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1532 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1533 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1534 | cat >conftest.$ac_ext <<_ACEOF |
| 1535 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1536 | #include "confdefs.h" |
| 1537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | #ifdef F77_DUMMY_MAIN |
| 1539 | # ifdef __cplusplus |
| 1540 | extern "C" |
| 1541 | # endif |
| 1542 | int F77_DUMMY_MAIN() { return 1; } |
| 1543 | #endif |
| 1544 | int |
| 1545 | main () |
| 1546 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1548 | ; |
| 1549 | return 0; |
| 1550 | } |
| 1551 | _ACEOF |
| 1552 | ac_clean_files_save=$ac_clean_files |
| 1553 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1554 | # Try to create an executable without -o first, disregard a.out. |
| 1555 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1556 | # of exeext. |
| 1557 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1558 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1559 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1560 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1561 | (eval $ac_link_default) 2>&5 |
| 1562 | ac_status=$? |
| 1563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1564 | (exit $ac_status); }; then |
| 1565 | # Find the output, starting from the most likely. This scheme is |
| 1566 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1567 | # resort. |
| 1568 | |
| 1569 | # Be careful to initialize this variable, since it used to be cached. |
| 1570 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1571 | ac_cv_exeext= |
| 1572 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1573 | ls a.out conftest 2>/dev/null; |
| 1574 | ls a.* conftest.* 2>/dev/null`; do |
| 1575 | case $ac_file in |
| 1576 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1577 | a.out ) # We found the default executable, but exeext='' is most |
| 1578 | # certainly right. |
| 1579 | break;; |
| 1580 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1581 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1582 | export ac_cv_exeext |
| 1583 | break;; |
| 1584 | * ) break;; |
| 1585 | esac |
| 1586 | done |
| 1587 | else |
| 1588 | echo "$as_me: failed program was:" >&5 |
| 1589 | cat conftest.$ac_ext >&5 |
| 1590 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1591 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1592 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1593 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1594 | |
| 1595 | ac_exeext=$ac_cv_exeext |
| 1596 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1597 | echo "${ECHO_T}$ac_file" >&6 |
| 1598 | |
| 1599 | # Check the compiler produces executables we can run. If not, either |
| 1600 | # the compiler is broken, or we cross compile. |
| 1601 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1602 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1603 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1604 | # If not cross compiling, check that we can run a simple program. |
| 1605 | if test "$cross_compiling" != yes; then |
| 1606 | if { ac_try='./$ac_file' |
| 1607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1608 | (eval $ac_try) 2>&5 |
| 1609 | ac_status=$? |
| 1610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1611 | (exit $ac_status); }; }; then |
| 1612 | cross_compiling=no |
| 1613 | else |
| 1614 | if test "$cross_compiling" = maybe; then |
| 1615 | cross_compiling=yes |
| 1616 | else |
| 1617 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1618 | If you meant to cross compile, use \`--host'." >&5 |
| 1619 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1620 | If you meant to cross compile, use \`--host'." >&2;} |
| 1621 | { (exit 1); exit 1; }; } |
| 1622 | fi |
| 1623 | fi |
| 1624 | fi |
| 1625 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1626 | echo "${ECHO_T}yes" >&6 |
| 1627 | |
| 1628 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1629 | ac_clean_files=$ac_clean_files_save |
| 1630 | # Check the compiler produces executables we can run. If not, either |
| 1631 | # the compiler is broken, or we cross compile. |
| 1632 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1633 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1634 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1635 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1636 | |
| 1637 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1638 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1640 | (eval $ac_link) 2>&5 |
| 1641 | ac_status=$? |
| 1642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1643 | (exit $ac_status); }; then |
| 1644 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1645 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1646 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1647 | # `rm'. |
| 1648 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1649 | case $ac_file in |
| 1650 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1651 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1652 | export ac_cv_exeext |
| 1653 | break;; |
| 1654 | * ) break;; |
| 1655 | esac |
| 1656 | done |
| 1657 | else |
| 1658 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1659 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1660 | { (exit 1); exit 1; }; } |
| 1661 | fi |
| 1662 | |
| 1663 | rm -f conftest$ac_cv_exeext |
| 1664 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1665 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1666 | |
| 1667 | rm -f conftest.$ac_ext |
| 1668 | EXEEXT=$ac_cv_exeext |
| 1669 | ac_exeext=$EXEEXT |
| 1670 | |
| 1671 | ac_ext=c |
| 1672 | ac_cpp='$CPP $CPPFLAGS' |
| 1673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1676 | |
| 1677 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1678 | |
| 1679 | fi |
| 1680 | fi |
| 1681 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1682 | # If the user switches compilers, we can't believe the cache |
| 1683 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1684 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1685 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1686 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1687 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1688 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1689 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1690 | fi |
| 1691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1692 | ac_ext=c |
| 1693 | ac_cpp='$CPP $CPPFLAGS' |
| 1694 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1695 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1696 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1697 | if test -n "$ac_tool_prefix"; then |
| 1698 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1699 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1700 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1702 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1704 | else |
| 1705 | if test -n "$CC"; then |
| 1706 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1709 | for as_dir in $PATH |
| 1710 | do |
| 1711 | IFS=$as_save_IFS |
| 1712 | test -z "$as_dir" && as_dir=. |
| 1713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1714 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1715 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1717 | break 2 |
| 1718 | fi |
| 1719 | done |
| 1720 | done |
| 1721 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1722 | fi |
| 1723 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1724 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1725 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1726 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1727 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1728 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1729 | echo "$as_me:$LINENO: result: no" >&5 |
| 1730 | echo "${ECHO_T}no" >&6 |
| 1731 | fi |
| 1732 | |
| 1733 | fi |
| 1734 | if test -z "$ac_cv_prog_CC"; then |
| 1735 | ac_ct_CC=$CC |
| 1736 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1737 | set dummy gcc; ac_word=$2 |
| 1738 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1740 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1742 | else |
| 1743 | if test -n "$ac_ct_CC"; then |
| 1744 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1745 | else |
| 1746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1747 | for as_dir in $PATH |
| 1748 | do |
| 1749 | IFS=$as_save_IFS |
| 1750 | test -z "$as_dir" && as_dir=. |
| 1751 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1752 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1753 | ac_cv_prog_ac_ct_CC="gcc" |
| 1754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1755 | break 2 |
| 1756 | fi |
| 1757 | done |
| 1758 | done |
| 1759 | |
| 1760 | fi |
| 1761 | fi |
| 1762 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1763 | if test -n "$ac_ct_CC"; then |
| 1764 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1765 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1766 | else |
| 1767 | echo "$as_me:$LINENO: result: no" >&5 |
| 1768 | echo "${ECHO_T}no" >&6 |
| 1769 | fi |
| 1770 | |
| 1771 | CC=$ac_ct_CC |
| 1772 | else |
| 1773 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1774 | fi |
| 1775 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1776 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1777 | if test -n "$ac_tool_prefix"; then |
| 1778 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1779 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1780 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1782 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1784 | else |
| 1785 | if test -n "$CC"; then |
| 1786 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1789 | for as_dir in $PATH |
| 1790 | do |
| 1791 | IFS=$as_save_IFS |
| 1792 | test -z "$as_dir" && as_dir=. |
| 1793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1795 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1797 | break 2 |
| 1798 | fi |
| 1799 | done |
| 1800 | done |
| 1801 | |
| 1802 | fi |
| 1803 | fi |
| 1804 | CC=$ac_cv_prog_CC |
| 1805 | if test -n "$CC"; then |
| 1806 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1807 | echo "${ECHO_T}$CC" >&6 |
| 1808 | else |
| 1809 | echo "$as_me:$LINENO: result: no" >&5 |
| 1810 | echo "${ECHO_T}no" >&6 |
| 1811 | fi |
| 1812 | |
| 1813 | fi |
| 1814 | if test -z "$ac_cv_prog_CC"; then |
| 1815 | ac_ct_CC=$CC |
| 1816 | # Extract the first word of "cc", so it can be a program name with args. |
| 1817 | set dummy cc; ac_word=$2 |
| 1818 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1820 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1822 | else |
| 1823 | if test -n "$ac_ct_CC"; then |
| 1824 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1825 | else |
| 1826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1827 | for as_dir in $PATH |
| 1828 | do |
| 1829 | IFS=$as_save_IFS |
| 1830 | test -z "$as_dir" && as_dir=. |
| 1831 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1832 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1833 | ac_cv_prog_ac_ct_CC="cc" |
| 1834 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1835 | break 2 |
| 1836 | fi |
| 1837 | done |
| 1838 | done |
| 1839 | |
| 1840 | fi |
| 1841 | fi |
| 1842 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1843 | if test -n "$ac_ct_CC"; then |
| 1844 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1845 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1846 | else |
| 1847 | echo "$as_me:$LINENO: result: no" >&5 |
| 1848 | echo "${ECHO_T}no" >&6 |
| 1849 | fi |
| 1850 | |
| 1851 | CC=$ac_ct_CC |
| 1852 | else |
| 1853 | CC="$ac_cv_prog_CC" |
| 1854 | fi |
| 1855 | |
| 1856 | fi |
| 1857 | if test -z "$CC"; then |
| 1858 | # Extract the first word of "cc", so it can be a program name with args. |
| 1859 | set dummy cc; ac_word=$2 |
| 1860 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1862 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1864 | else |
| 1865 | if test -n "$CC"; then |
| 1866 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1867 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1868 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1870 | for as_dir in $PATH |
| 1871 | do |
| 1872 | IFS=$as_save_IFS |
| 1873 | test -z "$as_dir" && as_dir=. |
| 1874 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1875 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1876 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1877 | ac_prog_rejected=yes |
| 1878 | continue |
| 1879 | fi |
| 1880 | ac_cv_prog_CC="cc" |
| 1881 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1882 | break 2 |
| 1883 | fi |
| 1884 | done |
| 1885 | done |
| 1886 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1887 | if test $ac_prog_rejected = yes; then |
| 1888 | # We found a bogon in the path, so make sure we never use it. |
| 1889 | set dummy $ac_cv_prog_CC |
| 1890 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1891 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1892 | # We chose a different compiler from the bogus one. |
| 1893 | # However, it has the same basename, so the bogon will be chosen |
| 1894 | # first if we set CC to just the basename; use the full file name. |
| 1895 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1896 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1897 | shift |
| 1898 | ac_cv_prog_CC="$@" |
| 1899 | fi |
| 1900 | fi |
| 1901 | fi |
| 1902 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1903 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1904 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1905 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1906 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1908 | echo "$as_me:$LINENO: result: no" >&5 |
| 1909 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1910 | fi |
| 1911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1912 | fi |
| 1913 | if test -z "$CC"; then |
| 1914 | if test -n "$ac_tool_prefix"; then |
| 1915 | for ac_prog in cl |
| 1916 | do |
| 1917 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1918 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1921 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1923 | else |
| 1924 | if test -n "$CC"; then |
| 1925 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1928 | for as_dir in $PATH |
| 1929 | do |
| 1930 | IFS=$as_save_IFS |
| 1931 | test -z "$as_dir" && as_dir=. |
| 1932 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1933 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1934 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1936 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1937 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1938 | done |
| 1939 | done |
| 1940 | |
| 1941 | fi |
| 1942 | fi |
| 1943 | CC=$ac_cv_prog_CC |
| 1944 | if test -n "$CC"; then |
| 1945 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1946 | echo "${ECHO_T}$CC" >&6 |
| 1947 | else |
| 1948 | echo "$as_me:$LINENO: result: no" >&5 |
| 1949 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1950 | fi |
| 1951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1952 | test -n "$CC" && break |
| 1953 | done |
| 1954 | fi |
| 1955 | if test -z "$CC"; then |
| 1956 | ac_ct_CC=$CC |
| 1957 | for ac_prog in cl |
| 1958 | do |
| 1959 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1960 | set dummy $ac_prog; ac_word=$2 |
| 1961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1963 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1965 | else |
| 1966 | if test -n "$ac_ct_CC"; then |
| 1967 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1968 | else |
| 1969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1970 | for as_dir in $PATH |
| 1971 | do |
| 1972 | IFS=$as_save_IFS |
| 1973 | test -z "$as_dir" && as_dir=. |
| 1974 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1976 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1978 | break 2 |
| 1979 | fi |
| 1980 | done |
| 1981 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1983 | fi |
| 1984 | fi |
| 1985 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1986 | if test -n "$ac_ct_CC"; then |
| 1987 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1988 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1989 | else |
| 1990 | echo "$as_me:$LINENO: result: no" >&5 |
| 1991 | echo "${ECHO_T}no" >&6 |
| 1992 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1994 | test -n "$ac_ct_CC" && break |
| 1995 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1997 | CC=$ac_ct_CC |
| 1998 | fi |
| 1999 | |
| 2000 | fi |
| 2001 | |
| 2002 | |
| 2003 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2004 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2005 | { (exit 1); exit 1; }; } |
| 2006 | |
| 2007 | # Provide some information about the compiler. |
| 2008 | echo "$as_me:$LINENO:" \ |
| 2009 | "checking for C compiler version" >&5 |
| 2010 | ac_compiler=`set X $ac_compile; echo $2` |
| 2011 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2012 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2013 | ac_status=$? |
| 2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2015 | (exit $ac_status); } |
| 2016 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2017 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2018 | ac_status=$? |
| 2019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2020 | (exit $ac_status); } |
| 2021 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2022 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2023 | ac_status=$? |
| 2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2025 | (exit $ac_status); } |
| 2026 | |
| 2027 | cat >conftest.$ac_ext <<_ACEOF |
| 2028 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2029 | #include "confdefs.h" |
| 2030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2031 | #ifdef F77_DUMMY_MAIN |
| 2032 | # ifdef __cplusplus |
| 2033 | extern "C" |
| 2034 | # endif |
| 2035 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2036 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2037 | int |
| 2038 | main () |
| 2039 | { |
| 2040 | |
| 2041 | ; |
| 2042 | return 0; |
| 2043 | } |
| 2044 | _ACEOF |
| 2045 | ac_clean_files_save=$ac_clean_files |
| 2046 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2047 | # Try to create an executable without -o first, disregard a.out. |
| 2048 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2049 | # of exeext. |
| 2050 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2051 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2052 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2053 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2054 | (eval $ac_link_default) 2>&5 |
| 2055 | ac_status=$? |
| 2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2057 | (exit $ac_status); }; then |
| 2058 | # Find the output, starting from the most likely. This scheme is |
| 2059 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2060 | # resort. |
| 2061 | |
| 2062 | # Be careful to initialize this variable, since it used to be cached. |
| 2063 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2064 | ac_cv_exeext= |
| 2065 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2066 | ls a.out conftest 2>/dev/null; |
| 2067 | ls a.* conftest.* 2>/dev/null`; do |
| 2068 | case $ac_file in |
| 2069 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2070 | a.out ) # We found the default executable, but exeext='' is most |
| 2071 | # certainly right. |
| 2072 | break;; |
| 2073 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2074 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2075 | export ac_cv_exeext |
| 2076 | break;; |
| 2077 | * ) break;; |
| 2078 | esac |
| 2079 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2081 | echo "$as_me: failed program was:" >&5 |
| 2082 | cat conftest.$ac_ext >&5 |
| 2083 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2084 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2085 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2086 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2088 | ac_exeext=$ac_cv_exeext |
| 2089 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2090 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2092 | # Check the compiler produces executables we can run. If not, either |
| 2093 | # the compiler is broken, or we cross compile. |
| 2094 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2095 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2096 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2097 | # If not cross compiling, check that we can run a simple program. |
| 2098 | if test "$cross_compiling" != yes; then |
| 2099 | if { ac_try='./$ac_file' |
| 2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2101 | (eval $ac_try) 2>&5 |
| 2102 | ac_status=$? |
| 2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2104 | (exit $ac_status); }; }; then |
| 2105 | cross_compiling=no |
| 2106 | else |
| 2107 | if test "$cross_compiling" = maybe; then |
| 2108 | cross_compiling=yes |
| 2109 | else |
| 2110 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2111 | If you meant to cross compile, use \`--host'." >&5 |
| 2112 | echo "$as_me: error: cannot run C compiled programs. |
| 2113 | If you meant to cross compile, use \`--host'." >&2;} |
| 2114 | { (exit 1); exit 1; }; } |
| 2115 | fi |
| 2116 | fi |
| 2117 | fi |
| 2118 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2119 | echo "${ECHO_T}yes" >&6 |
| 2120 | |
| 2121 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2122 | ac_clean_files=$ac_clean_files_save |
| 2123 | # Check the compiler produces executables we can run. If not, either |
| 2124 | # the compiler is broken, or we cross compile. |
| 2125 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2126 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2127 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2128 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2129 | |
| 2130 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2131 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2133 | (eval $ac_link) 2>&5 |
| 2134 | ac_status=$? |
| 2135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2136 | (exit $ac_status); }; then |
| 2137 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2138 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2139 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2140 | # `rm'. |
| 2141 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2142 | case $ac_file in |
| 2143 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2144 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2145 | export ac_cv_exeext |
| 2146 | break;; |
| 2147 | * ) break;; |
| 2148 | esac |
| 2149 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2151 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2152 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2153 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2154 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2156 | rm -f conftest$ac_cv_exeext |
| 2157 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2158 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2159 | |
| 2160 | rm -f conftest.$ac_ext |
| 2161 | EXEEXT=$ac_cv_exeext |
| 2162 | ac_exeext=$EXEEXT |
| 2163 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2164 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2165 | if test "${ac_cv_objext+set}" = set; then |
| 2166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2168 | cat >conftest.$ac_ext <<_ACEOF |
| 2169 | #line $LINENO "configure" |
| 2170 | #include "confdefs.h" |
| 2171 | |
| 2172 | #ifdef F77_DUMMY_MAIN |
| 2173 | # ifdef __cplusplus |
| 2174 | extern "C" |
| 2175 | # endif |
| 2176 | int F77_DUMMY_MAIN() { return 1; } |
| 2177 | #endif |
| 2178 | int |
| 2179 | main () |
| 2180 | { |
| 2181 | |
| 2182 | ; |
| 2183 | return 0; |
| 2184 | } |
| 2185 | _ACEOF |
| 2186 | rm -f conftest.o conftest.obj |
| 2187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2188 | (eval $ac_compile) 2>&5 |
| 2189 | ac_status=$? |
| 2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2191 | (exit $ac_status); }; then |
| 2192 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2193 | case $ac_file in |
| 2194 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2195 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2196 | break;; |
| 2197 | esac |
| 2198 | done |
| 2199 | else |
| 2200 | echo "$as_me: failed program was:" >&5 |
| 2201 | cat conftest.$ac_ext >&5 |
| 2202 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2203 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2204 | { (exit 1); exit 1; }; } |
| 2205 | fi |
| 2206 | |
| 2207 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2208 | fi |
| 2209 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2210 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2211 | OBJEXT=$ac_cv_objext |
| 2212 | ac_objext=$OBJEXT |
| 2213 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2214 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2215 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2217 | else |
| 2218 | cat >conftest.$ac_ext <<_ACEOF |
| 2219 | #line $LINENO "configure" |
| 2220 | #include "confdefs.h" |
| 2221 | |
| 2222 | #ifdef F77_DUMMY_MAIN |
| 2223 | # ifdef __cplusplus |
| 2224 | extern "C" |
| 2225 | # endif |
| 2226 | int F77_DUMMY_MAIN() { return 1; } |
| 2227 | #endif |
| 2228 | int |
| 2229 | main () |
| 2230 | { |
| 2231 | #ifndef __GNUC__ |
| 2232 | choke me |
| 2233 | #endif |
| 2234 | |
| 2235 | ; |
| 2236 | return 0; |
| 2237 | } |
| 2238 | _ACEOF |
| 2239 | rm -f conftest.$ac_objext |
| 2240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2241 | (eval $ac_compile) 2>&5 |
| 2242 | ac_status=$? |
| 2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2244 | (exit $ac_status); } && |
| 2245 | { ac_try='test -s conftest.$ac_objext' |
| 2246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2247 | (eval $ac_try) 2>&5 |
| 2248 | ac_status=$? |
| 2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2250 | (exit $ac_status); }; }; then |
| 2251 | ac_compiler_gnu=yes |
| 2252 | else |
| 2253 | echo "$as_me: failed program was:" >&5 |
| 2254 | cat conftest.$ac_ext >&5 |
| 2255 | ac_compiler_gnu=no |
| 2256 | fi |
| 2257 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2258 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2259 | |
| 2260 | fi |
| 2261 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2262 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2263 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2264 | ac_test_CFLAGS=${CFLAGS+set} |
| 2265 | ac_save_CFLAGS=$CFLAGS |
| 2266 | CFLAGS="-g" |
| 2267 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2268 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2269 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2271 | else |
| 2272 | cat >conftest.$ac_ext <<_ACEOF |
| 2273 | #line $LINENO "configure" |
| 2274 | #include "confdefs.h" |
| 2275 | |
| 2276 | #ifdef F77_DUMMY_MAIN |
| 2277 | # ifdef __cplusplus |
| 2278 | extern "C" |
| 2279 | # endif |
| 2280 | int F77_DUMMY_MAIN() { return 1; } |
| 2281 | #endif |
| 2282 | int |
| 2283 | main () |
| 2284 | { |
| 2285 | |
| 2286 | ; |
| 2287 | return 0; |
| 2288 | } |
| 2289 | _ACEOF |
| 2290 | rm -f conftest.$ac_objext |
| 2291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2292 | (eval $ac_compile) 2>&5 |
| 2293 | ac_status=$? |
| 2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2295 | (exit $ac_status); } && |
| 2296 | { ac_try='test -s conftest.$ac_objext' |
| 2297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2298 | (eval $ac_try) 2>&5 |
| 2299 | ac_status=$? |
| 2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2301 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2302 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2304 | echo "$as_me: failed program was:" >&5 |
| 2305 | cat conftest.$ac_ext >&5 |
| 2306 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2307 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2308 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2310 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2311 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2312 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2313 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2314 | elif test $ac_cv_prog_cc_g = yes; then |
| 2315 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2316 | CFLAGS="-g -O2" |
| 2317 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2318 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2319 | fi |
| 2320 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2321 | if test "$GCC" = yes; then |
| 2322 | CFLAGS="-O2" |
| 2323 | else |
| 2324 | CFLAGS= |
| 2325 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2327 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2328 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2329 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2330 | # the declaration of exit, since it's the most demanding environment. |
| 2331 | cat >conftest.$ac_ext <<_ACEOF |
| 2332 | #ifndef __cplusplus |
| 2333 | choke me |
| 2334 | #endif |
| 2335 | _ACEOF |
| 2336 | rm -f conftest.$ac_objext |
| 2337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2338 | (eval $ac_compile) 2>&5 |
| 2339 | ac_status=$? |
| 2340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2341 | (exit $ac_status); } && |
| 2342 | { ac_try='test -s conftest.$ac_objext' |
| 2343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2344 | (eval $ac_try) 2>&5 |
| 2345 | ac_status=$? |
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2347 | (exit $ac_status); }; }; then |
| 2348 | for ac_declaration in \ |
| 2349 | ''\ |
| 2350 | '#include <stdlib.h>' \ |
| 2351 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2352 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2353 | 'extern "C" void exit (int) throw ();' \ |
| 2354 | 'extern "C" void exit (int);' \ |
| 2355 | 'void exit (int);' |
| 2356 | do |
| 2357 | cat >conftest.$ac_ext <<_ACEOF |
| 2358 | #line $LINENO "configure" |
| 2359 | #include "confdefs.h" |
| 2360 | #include <stdlib.h> |
| 2361 | $ac_declaration |
| 2362 | #ifdef F77_DUMMY_MAIN |
| 2363 | # ifdef __cplusplus |
| 2364 | extern "C" |
| 2365 | # endif |
| 2366 | int F77_DUMMY_MAIN() { return 1; } |
| 2367 | #endif |
| 2368 | int |
| 2369 | main () |
| 2370 | { |
| 2371 | exit (42); |
| 2372 | ; |
| 2373 | return 0; |
| 2374 | } |
| 2375 | _ACEOF |
| 2376 | rm -f conftest.$ac_objext |
| 2377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2378 | (eval $ac_compile) 2>&5 |
| 2379 | ac_status=$? |
| 2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2381 | (exit $ac_status); } && |
| 2382 | { ac_try='test -s conftest.$ac_objext' |
| 2383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2384 | (eval $ac_try) 2>&5 |
| 2385 | ac_status=$? |
| 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2387 | (exit $ac_status); }; }; then |
| 2388 | : |
| 2389 | else |
| 2390 | echo "$as_me: failed program was:" >&5 |
| 2391 | cat conftest.$ac_ext >&5 |
| 2392 | continue |
| 2393 | fi |
| 2394 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2395 | cat >conftest.$ac_ext <<_ACEOF |
| 2396 | #line $LINENO "configure" |
| 2397 | #include "confdefs.h" |
| 2398 | $ac_declaration |
| 2399 | #ifdef F77_DUMMY_MAIN |
| 2400 | # ifdef __cplusplus |
| 2401 | extern "C" |
| 2402 | # endif |
| 2403 | int F77_DUMMY_MAIN() { return 1; } |
| 2404 | #endif |
| 2405 | int |
| 2406 | main () |
| 2407 | { |
| 2408 | exit (42); |
| 2409 | ; |
| 2410 | return 0; |
| 2411 | } |
| 2412 | _ACEOF |
| 2413 | rm -f conftest.$ac_objext |
| 2414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2415 | (eval $ac_compile) 2>&5 |
| 2416 | ac_status=$? |
| 2417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2418 | (exit $ac_status); } && |
| 2419 | { ac_try='test -s conftest.$ac_objext' |
| 2420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2421 | (eval $ac_try) 2>&5 |
| 2422 | ac_status=$? |
| 2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2424 | (exit $ac_status); }; }; then |
| 2425 | break |
| 2426 | else |
| 2427 | echo "$as_me: failed program was:" >&5 |
| 2428 | cat conftest.$ac_ext >&5 |
| 2429 | fi |
| 2430 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2431 | done |
| 2432 | rm -f conftest* |
| 2433 | if test -n "$ac_declaration"; then |
| 2434 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2435 | echo $ac_declaration >>confdefs.h |
| 2436 | echo '#endif' >>confdefs.h |
| 2437 | fi |
| 2438 | |
| 2439 | else |
| 2440 | echo "$as_me: failed program was:" >&5 |
| 2441 | cat conftest.$ac_ext >&5 |
| 2442 | fi |
| 2443 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2444 | ac_ext=c |
| 2445 | ac_cpp='$CPP $CPPFLAGS' |
| 2446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2449 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2450 | |
| 2451 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2452 | |
| 2453 | ac_ext=c |
| 2454 | ac_cpp='$CPP $CPPFLAGS' |
| 2455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2458 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2459 | 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] | 2460 | # On Suns, sometimes $CPP names a directory. |
| 2461 | if test -n "$CPP" && test -d "$CPP"; then |
| 2462 | CPP= |
| 2463 | fi |
| 2464 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2465 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | # Double quotes because CPP needs to be expanded |
| 2469 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2470 | do |
| 2471 | ac_preproc_ok=false |
| 2472 | for ac_c_preproc_warn_flag in '' yes |
| 2473 | do |
| 2474 | # Use a header file that comes with gcc, so configuring glibc |
| 2475 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2476 | # 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] | 2477 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2478 | cat >conftest.$ac_ext <<_ACEOF |
| 2479 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2480 | #include "confdefs.h" |
| 2481 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2482 | Syntax error |
| 2483 | _ACEOF |
| 2484 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2485 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2486 | ac_status=$? |
| 2487 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2488 | rm -f conftest.er1 |
| 2489 | cat conftest.err >&5 |
| 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2491 | (exit $ac_status); } >/dev/null; then |
| 2492 | if test -s conftest.err; then |
| 2493 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2494 | else |
| 2495 | ac_cpp_err= |
| 2496 | fi |
| 2497 | else |
| 2498 | ac_cpp_err=yes |
| 2499 | fi |
| 2500 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2501 | : |
| 2502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2504 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | # Broken: fails on valid input. |
| 2506 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2507 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | # OK, works on sane cases. Now check whether non-existent headers |
| 2511 | # can be detected and how. |
| 2512 | cat >conftest.$ac_ext <<_ACEOF |
| 2513 | #line $LINENO "configure" |
| 2514 | #include "confdefs.h" |
| 2515 | #include <ac_nonexistent.h> |
| 2516 | _ACEOF |
| 2517 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2518 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2519 | ac_status=$? |
| 2520 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2521 | rm -f conftest.er1 |
| 2522 | cat conftest.err >&5 |
| 2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2524 | (exit $ac_status); } >/dev/null; then |
| 2525 | if test -s conftest.err; then |
| 2526 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2527 | else |
| 2528 | ac_cpp_err= |
| 2529 | fi |
| 2530 | else |
| 2531 | ac_cpp_err=yes |
| 2532 | fi |
| 2533 | if test -z "$ac_cpp_err"; then |
| 2534 | # Broken: success on invalid input. |
| 2535 | continue |
| 2536 | else |
| 2537 | echo "$as_me: failed program was:" >&5 |
| 2538 | cat conftest.$ac_ext >&5 |
| 2539 | # Passes both tests. |
| 2540 | ac_preproc_ok=: |
| 2541 | break |
| 2542 | fi |
| 2543 | rm -f conftest.err conftest.$ac_ext |
| 2544 | |
| 2545 | done |
| 2546 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2547 | rm -f conftest.err conftest.$ac_ext |
| 2548 | if $ac_preproc_ok; then |
| 2549 | break |
| 2550 | fi |
| 2551 | |
| 2552 | done |
| 2553 | ac_cv_prog_CPP=$CPP |
| 2554 | |
| 2555 | fi |
| 2556 | CPP=$ac_cv_prog_CPP |
| 2557 | else |
| 2558 | ac_cv_prog_CPP=$CPP |
| 2559 | fi |
| 2560 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2561 | echo "${ECHO_T}$CPP" >&6 |
| 2562 | ac_preproc_ok=false |
| 2563 | for ac_c_preproc_warn_flag in '' yes |
| 2564 | do |
| 2565 | # Use a header file that comes with gcc, so configuring glibc |
| 2566 | # with a fresh cross-compiler works. |
| 2567 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2568 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2569 | cat >conftest.$ac_ext <<_ACEOF |
| 2570 | #line $LINENO "configure" |
| 2571 | #include "confdefs.h" |
| 2572 | #include <assert.h> |
| 2573 | Syntax error |
| 2574 | _ACEOF |
| 2575 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2576 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2577 | ac_status=$? |
| 2578 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2579 | rm -f conftest.er1 |
| 2580 | cat conftest.err >&5 |
| 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2582 | (exit $ac_status); } >/dev/null; then |
| 2583 | if test -s conftest.err; then |
| 2584 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2585 | else |
| 2586 | ac_cpp_err= |
| 2587 | fi |
| 2588 | else |
| 2589 | ac_cpp_err=yes |
| 2590 | fi |
| 2591 | if test -z "$ac_cpp_err"; then |
| 2592 | : |
| 2593 | else |
| 2594 | echo "$as_me: failed program was:" >&5 |
| 2595 | cat conftest.$ac_ext >&5 |
| 2596 | # Broken: fails on valid input. |
| 2597 | continue |
| 2598 | fi |
| 2599 | rm -f conftest.err conftest.$ac_ext |
| 2600 | |
| 2601 | # OK, works on sane cases. Now check whether non-existent headers |
| 2602 | # can be detected and how. |
| 2603 | cat >conftest.$ac_ext <<_ACEOF |
| 2604 | #line $LINENO "configure" |
| 2605 | #include "confdefs.h" |
| 2606 | #include <ac_nonexistent.h> |
| 2607 | _ACEOF |
| 2608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2610 | ac_status=$? |
| 2611 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2612 | rm -f conftest.er1 |
| 2613 | cat conftest.err >&5 |
| 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2615 | (exit $ac_status); } >/dev/null; then |
| 2616 | if test -s conftest.err; then |
| 2617 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2618 | else |
| 2619 | ac_cpp_err= |
| 2620 | fi |
| 2621 | else |
| 2622 | ac_cpp_err=yes |
| 2623 | fi |
| 2624 | if test -z "$ac_cpp_err"; then |
| 2625 | # Broken: success on invalid input. |
| 2626 | continue |
| 2627 | else |
| 2628 | echo "$as_me: failed program was:" >&5 |
| 2629 | cat conftest.$ac_ext >&5 |
| 2630 | # Passes both tests. |
| 2631 | ac_preproc_ok=: |
| 2632 | break |
| 2633 | fi |
| 2634 | rm -f conftest.err conftest.$ac_ext |
| 2635 | |
| 2636 | done |
| 2637 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2638 | rm -f conftest.err conftest.$ac_ext |
| 2639 | if $ac_preproc_ok; then |
| 2640 | : |
| 2641 | else |
| 2642 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2643 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2644 | { (exit 1); exit 1; }; } |
| 2645 | fi |
| 2646 | |
| 2647 | ac_ext=c |
| 2648 | ac_cpp='$CPP $CPPFLAGS' |
| 2649 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2650 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2651 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2652 | |
| 2653 | |
| 2654 | |
| 2655 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2656 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2657 | cat >conftest.$ac_ext <<_ACEOF |
| 2658 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2659 | #include "confdefs.h" |
| 2660 | #ifdef _AIX |
| 2661 | yes |
| 2662 | #endif |
| 2663 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2664 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2665 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2666 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2667 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2668 | echo "${ECHO_T}yes" >&6 |
| 2669 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2670 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2671 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2672 | |
| 2673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2674 | echo "$as_me:$LINENO: result: no" >&5 |
| 2675 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2676 | fi |
| 2677 | rm -f conftest* |
| 2678 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2680 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2681 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2682 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2684 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2685 | cat >conftest.$ac_ext <<_ACEOF |
| 2686 | #line $LINENO "configure" |
| 2687 | #include "confdefs.h" |
| 2688 | #include <stdlib.h> |
| 2689 | #include <stdarg.h> |
| 2690 | #include <string.h> |
| 2691 | #include <float.h> |
| 2692 | |
| 2693 | _ACEOF |
| 2694 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2695 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2696 | ac_status=$? |
| 2697 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2698 | rm -f conftest.er1 |
| 2699 | cat conftest.err >&5 |
| 2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2701 | (exit $ac_status); } >/dev/null; then |
| 2702 | if test -s conftest.err; then |
| 2703 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2704 | else |
| 2705 | ac_cpp_err= |
| 2706 | fi |
| 2707 | else |
| 2708 | ac_cpp_err=yes |
| 2709 | fi |
| 2710 | if test -z "$ac_cpp_err"; then |
| 2711 | ac_cv_header_stdc=yes |
| 2712 | else |
| 2713 | echo "$as_me: failed program was:" >&5 |
| 2714 | cat conftest.$ac_ext >&5 |
| 2715 | ac_cv_header_stdc=no |
| 2716 | fi |
| 2717 | rm -f conftest.err conftest.$ac_ext |
| 2718 | |
| 2719 | if test $ac_cv_header_stdc = yes; then |
| 2720 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2721 | cat >conftest.$ac_ext <<_ACEOF |
| 2722 | #line $LINENO "configure" |
| 2723 | #include "confdefs.h" |
| 2724 | #include <string.h> |
| 2725 | |
| 2726 | _ACEOF |
| 2727 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2728 | egrep "memchr" >/dev/null 2>&1; then |
| 2729 | : |
| 2730 | else |
| 2731 | ac_cv_header_stdc=no |
| 2732 | fi |
| 2733 | rm -f conftest* |
| 2734 | |
| 2735 | fi |
| 2736 | |
| 2737 | if test $ac_cv_header_stdc = yes; then |
| 2738 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2739 | cat >conftest.$ac_ext <<_ACEOF |
| 2740 | #line $LINENO "configure" |
| 2741 | #include "confdefs.h" |
| 2742 | #include <stdlib.h> |
| 2743 | |
| 2744 | _ACEOF |
| 2745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2746 | egrep "free" >/dev/null 2>&1; then |
| 2747 | : |
| 2748 | else |
| 2749 | ac_cv_header_stdc=no |
| 2750 | fi |
| 2751 | rm -f conftest* |
| 2752 | |
| 2753 | fi |
| 2754 | |
| 2755 | if test $ac_cv_header_stdc = yes; then |
| 2756 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2757 | if test "$cross_compiling" = yes; then |
| 2758 | : |
| 2759 | else |
| 2760 | cat >conftest.$ac_ext <<_ACEOF |
| 2761 | #line $LINENO "configure" |
| 2762 | #include "confdefs.h" |
| 2763 | #include <ctype.h> |
| 2764 | #if ((' ' & 0x0FF) == 0x020) |
| 2765 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2766 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2767 | #else |
| 2768 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2769 | || ('j' <= (c) && (c) <= 'r') \ |
| 2770 | || ('s' <= (c) && (c) <= 'z')) |
| 2771 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2772 | #endif |
| 2773 | |
| 2774 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2775 | int |
| 2776 | main () |
| 2777 | { |
| 2778 | int i; |
| 2779 | for (i = 0; i < 256; i++) |
| 2780 | if (XOR (islower (i), ISLOWER (i)) |
| 2781 | || toupper (i) != TOUPPER (i)) |
| 2782 | exit(2); |
| 2783 | exit (0); |
| 2784 | } |
| 2785 | _ACEOF |
| 2786 | rm -f conftest$ac_exeext |
| 2787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2788 | (eval $ac_link) 2>&5 |
| 2789 | ac_status=$? |
| 2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2791 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2793 | (eval $ac_try) 2>&5 |
| 2794 | ac_status=$? |
| 2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2796 | (exit $ac_status); }; }; then |
| 2797 | : |
| 2798 | else |
| 2799 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2800 | echo "$as_me: failed program was:" >&5 |
| 2801 | cat conftest.$ac_ext >&5 |
| 2802 | ( exit $ac_status ) |
| 2803 | ac_cv_header_stdc=no |
| 2804 | fi |
| 2805 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2806 | fi |
| 2807 | fi |
| 2808 | fi |
| 2809 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2810 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2811 | if test $ac_cv_header_stdc = yes; then |
| 2812 | |
| 2813 | cat >>confdefs.h <<\_ACEOF |
| 2814 | #define STDC_HEADERS 1 |
| 2815 | _ACEOF |
| 2816 | |
| 2817 | fi |
| 2818 | |
| 2819 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2820 | |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | |
| 2828 | |
| 2829 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2830 | inttypes.h stdint.h unistd.h |
| 2831 | do |
| 2832 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2833 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2834 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2835 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2837 | else |
| 2838 | cat >conftest.$ac_ext <<_ACEOF |
| 2839 | #line $LINENO "configure" |
| 2840 | #include "confdefs.h" |
| 2841 | $ac_includes_default |
| 2842 | |
| 2843 | #include <$ac_header> |
| 2844 | _ACEOF |
| 2845 | rm -f conftest.$ac_objext |
| 2846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2847 | (eval $ac_compile) 2>&5 |
| 2848 | ac_status=$? |
| 2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2850 | (exit $ac_status); } && |
| 2851 | { ac_try='test -s conftest.$ac_objext' |
| 2852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2853 | (eval $ac_try) 2>&5 |
| 2854 | ac_status=$? |
| 2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2856 | (exit $ac_status); }; }; then |
| 2857 | eval "$as_ac_Header=yes" |
| 2858 | else |
| 2859 | echo "$as_me: failed program was:" >&5 |
| 2860 | cat conftest.$ac_ext >&5 |
| 2861 | eval "$as_ac_Header=no" |
| 2862 | fi |
| 2863 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2864 | fi |
| 2865 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2866 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2868 | cat >>confdefs.h <<_ACEOF |
| 2869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2870 | _ACEOF |
| 2871 | |
| 2872 | fi |
| 2873 | |
| 2874 | done |
| 2875 | |
| 2876 | |
| 2877 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2878 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2879 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2880 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2882 | fi |
| 2883 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2884 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2885 | else |
| 2886 | # Is the header compilable? |
| 2887 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2888 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2889 | cat >conftest.$ac_ext <<_ACEOF |
| 2890 | #line $LINENO "configure" |
| 2891 | #include "confdefs.h" |
| 2892 | $ac_includes_default |
| 2893 | #include <minix/config.h> |
| 2894 | _ACEOF |
| 2895 | rm -f conftest.$ac_objext |
| 2896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2897 | (eval $ac_compile) 2>&5 |
| 2898 | ac_status=$? |
| 2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2900 | (exit $ac_status); } && |
| 2901 | { ac_try='test -s conftest.$ac_objext' |
| 2902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2903 | (eval $ac_try) 2>&5 |
| 2904 | ac_status=$? |
| 2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2906 | (exit $ac_status); }; }; then |
| 2907 | ac_header_compiler=yes |
| 2908 | else |
| 2909 | echo "$as_me: failed program was:" >&5 |
| 2910 | cat conftest.$ac_ext >&5 |
| 2911 | ac_header_compiler=no |
| 2912 | fi |
| 2913 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2914 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2915 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2916 | |
| 2917 | # Is the header present? |
| 2918 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2919 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2920 | cat >conftest.$ac_ext <<_ACEOF |
| 2921 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2922 | #include "confdefs.h" |
| 2923 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | _ACEOF |
| 2925 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2926 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2927 | ac_status=$? |
| 2928 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2929 | rm -f conftest.er1 |
| 2930 | cat conftest.err >&5 |
| 2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2932 | (exit $ac_status); } >/dev/null; then |
| 2933 | if test -s conftest.err; then |
| 2934 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2935 | else |
| 2936 | ac_cpp_err= |
| 2937 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2939 | ac_cpp_err=yes |
| 2940 | fi |
| 2941 | if test -z "$ac_cpp_err"; then |
| 2942 | ac_header_preproc=yes |
| 2943 | else |
| 2944 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2945 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2946 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2948 | rm -f conftest.err conftest.$ac_ext |
| 2949 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2950 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2951 | |
| 2952 | # So? What about this header? |
| 2953 | case $ac_header_compiler:$ac_header_preproc in |
| 2954 | yes:no ) |
| 2955 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2956 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2957 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2958 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2959 | no:yes ) |
| 2960 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2961 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2962 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2963 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2964 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2965 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2966 | esac |
| 2967 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2968 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2969 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2971 | else |
| 2972 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2973 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2974 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2975 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2976 | |
| 2977 | fi |
| 2978 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2979 | MINIX=yes |
| 2980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2981 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2982 | fi |
| 2983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2984 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2985 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2986 | |
| 2987 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2988 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2989 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2991 | |
| 2992 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2993 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2994 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2996 | |
| 2997 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2998 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3000 | |
| 3001 | fi |
| 3002 | |
| 3003 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3004 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3005 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3006 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3007 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3008 | # Check whether --with-suffix or --without-suffix was given. |
| 3009 | if test "${with_suffix+set}" = set; then |
| 3010 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3012 | case $withval in |
| 3013 | no) EXEEXT=;; |
| 3014 | yes) EXEEXT=.exe;; |
| 3015 | *) EXEEXT=$withval;; |
| 3016 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3017 | fi; |
| 3018 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3019 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3020 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3021 | # Test whether we're running on a non-case-sensitive system, in which |
| 3022 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3024 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3025 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3026 | if test ! -d CaseSensitiveTestDir; then |
| 3027 | mkdir CaseSensitiveTestDir |
| 3028 | fi |
| 3029 | |
| 3030 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3031 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3033 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3034 | BUILDEXEEXT=.exe |
| 3035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3036 | echo "$as_me:$LINENO: result: no" >&5 |
| 3037 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3038 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3039 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3040 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3041 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3042 | case $MACHDEP in |
| 3043 | bsdos*) |
| 3044 | case $CC in |
| 3045 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3046 | esac;; |
| 3047 | esac |
| 3048 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3049 | case $ac_sys_system in |
| 3050 | hp*|HP*) |
| 3051 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3052 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3053 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3054 | Monterey*) |
| 3055 | case $CC in |
| 3056 | cc) CC="$CC -Wl,-Bexport";; |
| 3057 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3058 | SunOS*) |
| 3059 | # 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] | 3060 | |
| 3061 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3062 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3063 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3064 | |
| 3065 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3066 | esac |
| 3067 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3068 | |
| 3069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3070 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3071 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3072 | if test -z "$LIBRARY" |
| 3073 | then |
| 3074 | LIBRARY='libpython$(VERSION).a' |
| 3075 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3076 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3077 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3078 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3079 | # 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] | 3080 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3081 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3082 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3083 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3084 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3085 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3086 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3087 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3088 | # RUNSHARED is used to run shared python without installed libraries |
| 3089 | # |
| 3090 | # INSTSONAME is the name of the shared library that will be use to install |
| 3091 | # on the system - some systems like version suffix, others don't |
| 3092 | |
| 3093 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3094 | |
| 3095 | |
| 3096 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3097 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3098 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3099 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3100 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3101 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3102 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3103 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3104 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3105 | # 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] | 3106 | # If CXX is set, and if it is needed to link a main function that was |
| 3107 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3108 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3109 | # 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] | 3110 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3112 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3113 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3114 | if test -z "$LINKCC" |
| 3115 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3116 | if test -z "$CXX"; then |
| 3117 | LINKCC="\$(PURIFY) \$(CC)" |
| 3118 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3119 | 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] | 3120 | $CXX -c conftest.$ac_ext 2>&5 |
| 3121 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3122 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3123 | then |
| 3124 | LINKCC="\$(PURIFY) \$(CC)" |
| 3125 | else |
| 3126 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3127 | fi |
| 3128 | rm -fr conftest* |
| 3129 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3130 | case $ac_sys_system in |
| 3131 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3132 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3133 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3134 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3135 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3136 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3137 | esac |
| 3138 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3139 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3140 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3142 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3143 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3144 | # Check whether --enable-shared or --disable-shared was given. |
| 3145 | if test "${enable_shared+set}" = set; then |
| 3146 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3148 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3149 | |
| 3150 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3151 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3152 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3153 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3154 | enable_shared="yes";; |
| 3155 | *) |
| 3156 | enable_shared="no";; |
| 3157 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3158 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3159 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3160 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3161 | |
| 3162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3164 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3165 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3166 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3167 | # library that we build, but we do not want to link against it (we |
| 3168 | # will find it with a -framework option). For this reason there is an |
| 3169 | # extra variable BLDLIBRARY against which Python and the extension |
| 3170 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3171 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3172 | if test "$enable_framework" |
| 3173 | then |
| 3174 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3175 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3176 | BLDLIBRARY='' |
| 3177 | else |
| 3178 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3179 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3180 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3181 | # Other platforms follow |
| 3182 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3183 | |
| 3184 | cat >>confdefs.h <<\_ACEOF |
| 3185 | #define Py_ENABLE_SHARED 1 |
| 3186 | _ACEOF |
| 3187 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3188 | case $ac_sys_system in |
| 3189 | BeOS*) |
| 3190 | LDLIBRARY='libpython$(VERSION).so' |
| 3191 | ;; |
| 3192 | CYGWIN*) |
| 3193 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3194 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3195 | ;; |
| 3196 | SunOS*) |
| 3197 | LDLIBRARY='libpython$(VERSION).so' |
| 3198 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3199 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3200 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3201 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3202 | LDLIBRARY='libpython$(VERSION).so' |
| 3203 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3204 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3205 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3206 | ;; |
| 3207 | hp*|HP*) |
| 3208 | LDLIBRARY='libpython$(VERSION).sl' |
| 3209 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3210 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3211 | ;; |
| 3212 | OSF*) |
| 3213 | LDLIBRARY='libpython$(VERSION).so' |
| 3214 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3215 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3216 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3217 | atheos*) |
| 3218 | LDLIBRARY='libpython$(VERSION).so' |
| 3219 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3220 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3221 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3222 | esac |
| 3223 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3224 | case $MACHDEP in |
| 3225 | dguxR4) |
| 3226 | LDLIBRARY='libpython$(VERSION).so' |
| 3227 | OPT="$OPT -pic" |
| 3228 | ;; |
| 3229 | esac |
| 3230 | fi |
| 3231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3232 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3233 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3235 | if test -n "$ac_tool_prefix"; then |
| 3236 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3237 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3240 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3242 | else |
| 3243 | if test -n "$RANLIB"; then |
| 3244 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3247 | for as_dir in $PATH |
| 3248 | do |
| 3249 | IFS=$as_save_IFS |
| 3250 | test -z "$as_dir" && as_dir=. |
| 3251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3253 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3255 | break 2 |
| 3256 | fi |
| 3257 | done |
| 3258 | done |
| 3259 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3260 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3262 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3263 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3264 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3265 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | echo "$as_me:$LINENO: result: no" >&5 |
| 3268 | echo "${ECHO_T}no" >&6 |
| 3269 | fi |
| 3270 | |
| 3271 | fi |
| 3272 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3273 | ac_ct_RANLIB=$RANLIB |
| 3274 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3275 | set dummy ranlib; ac_word=$2 |
| 3276 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3278 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3280 | else |
| 3281 | if test -n "$ac_ct_RANLIB"; then |
| 3282 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3283 | else |
| 3284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3285 | for as_dir in $PATH |
| 3286 | do |
| 3287 | IFS=$as_save_IFS |
| 3288 | test -z "$as_dir" && as_dir=. |
| 3289 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3290 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3291 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3293 | break 2 |
| 3294 | fi |
| 3295 | done |
| 3296 | done |
| 3297 | |
| 3298 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3299 | fi |
| 3300 | fi |
| 3301 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3302 | if test -n "$ac_ct_RANLIB"; then |
| 3303 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3304 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3305 | else |
| 3306 | echo "$as_me:$LINENO: result: no" >&5 |
| 3307 | echo "${ECHO_T}no" >&6 |
| 3308 | fi |
| 3309 | |
| 3310 | RANLIB=$ac_ct_RANLIB |
| 3311 | else |
| 3312 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3313 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3314 | |
| 3315 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3316 | for ac_prog in ar aal |
| 3317 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3318 | # 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] | 3319 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3322 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3324 | else |
| 3325 | if test -n "$AR"; then |
| 3326 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3329 | for as_dir in $PATH |
| 3330 | do |
| 3331 | IFS=$as_save_IFS |
| 3332 | test -z "$as_dir" && as_dir=. |
| 3333 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3334 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3335 | ac_cv_prog_AR="$ac_prog" |
| 3336 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3337 | break 2 |
| 3338 | fi |
| 3339 | done |
| 3340 | done |
| 3341 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3342 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3343 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3344 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3345 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3346 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3347 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3349 | echo "$as_me:$LINENO: result: no" >&5 |
| 3350 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3351 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3353 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3354 | done |
| 3355 | test -n "$AR" || AR="ar" |
| 3356 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3357 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3358 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3359 | bsdos*|hp*|HP*) |
| 3360 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3361 | if test -z "$INSTALL" |
| 3362 | then |
| 3363 | INSTALL="${srcdir}/install-sh -c" |
| 3364 | fi |
| 3365 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3366 | ac_aux_dir= |
| 3367 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3368 | if test -f $ac_dir/install-sh; then |
| 3369 | ac_aux_dir=$ac_dir |
| 3370 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3371 | break |
| 3372 | elif test -f $ac_dir/install.sh; then |
| 3373 | ac_aux_dir=$ac_dir |
| 3374 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3375 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3376 | elif test -f $ac_dir/shtool; then |
| 3377 | ac_aux_dir=$ac_dir |
| 3378 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3379 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3380 | fi |
| 3381 | done |
| 3382 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3383 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3384 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3385 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3386 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3387 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3388 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3389 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3390 | |
| 3391 | # Find a good install program. We prefer a C program (faster), |
| 3392 | # so one script is as good as another. But avoid the broken or |
| 3393 | # incompatible versions: |
| 3394 | # SysV /etc/install, /usr/sbin/install |
| 3395 | # SunOS /usr/etc/install |
| 3396 | # IRIX /sbin/install |
| 3397 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3399 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3400 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3401 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3402 | # ./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] | 3403 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3404 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3405 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3406 | if test "${ac_cv_path_install+set}" = set; then |
| 3407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3410 | for as_dir in $PATH |
| 3411 | do |
| 3412 | IFS=$as_save_IFS |
| 3413 | test -z "$as_dir" && as_dir=. |
| 3414 | # Account for people who put trailing slashes in PATH elements. |
| 3415 | case $as_dir/ in |
| 3416 | ./ | .// | /cC/* | \ |
| 3417 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3418 | /usr/ucb/* ) ;; |
| 3419 | *) |
| 3420 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3421 | # Don't use installbsd from OSF since it installs stuff as root |
| 3422 | # by default. |
| 3423 | for ac_prog in ginstall scoinst install; do |
| 3424 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3425 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3426 | if test $ac_prog = install && |
| 3427 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3428 | # AIX install. It has an incompatible calling convention. |
| 3429 | : |
| 3430 | elif test $ac_prog = install && |
| 3431 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3432 | # program-specific install script used by HP pwplus--don't use. |
| 3433 | : |
| 3434 | else |
| 3435 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3436 | break 3 |
| 3437 | fi |
| 3438 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3439 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3440 | done |
| 3441 | ;; |
| 3442 | esac |
| 3443 | done |
| 3444 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3445 | |
| 3446 | fi |
| 3447 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3448 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3449 | else |
| 3450 | # As a last resort, use the slow shell script. We don't cache a |
| 3451 | # path for INSTALL within a source directory, because that will |
| 3452 | # break other packages using the cache if that directory is |
| 3453 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3454 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3455 | fi |
| 3456 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3457 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3458 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3459 | |
| 3460 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3461 | # It thinks the first close brace ends the variable substitution. |
| 3462 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3464 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3465 | |
| 3466 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3467 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3468 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3469 | # Not every filesystem supports hard links |
| 3470 | |
| 3471 | if test -z "$LN" ; then |
| 3472 | case $ac_sys_system in |
| 3473 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3474 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3475 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3476 | *) LN=ln;; |
| 3477 | esac |
| 3478 | fi |
| 3479 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3480 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3481 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3482 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3483 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3484 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3485 | if test "${with_pydebug+set}" = set; then |
| 3486 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3487 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3488 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3489 | then |
| 3490 | |
| 3491 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3492 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | _ACEOF |
| 3494 | |
| 3495 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3496 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3497 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3498 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3499 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3500 | fi |
| 3501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3502 | echo "$as_me:$LINENO: result: no" >&5 |
| 3503 | echo "${ECHO_T}no" >&6 |
| 3504 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3505 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3506 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3507 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3508 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3509 | then |
Neal Norwitz | d957f39 | 2002-09-25 21:26:19 +0000 | [diff] [blame] | 3510 | case $GCC in |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3511 | yes) |
| 3512 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3513 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3514 | if test "$Py_DEBUG" = 'true' ; then |
| 3515 | # Optimization messes up debuggers, so turn it off for |
| 3516 | # debug builds. |
| 3517 | OPT="-g -Wall -Wstrict-prototypes" |
| 3518 | else |
| 3519 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3520 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3521 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3522 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3523 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3524 | case $ac_sys_system in |
| 3525 | SCO_SV*) OPT="$OPT -m486 -DSCO5";; |
| 3526 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3527 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3528 | *) |
| 3529 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3530 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3531 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3532 | SCO_SV*) |
| 3533 | CFLAGS="$CFLAGS -belf" |
| 3534 | OPT="-belf -O -Ki486 -DSCO5";; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3535 | *) |
| 3536 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3537 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3538 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3539 | case $ac_sys_system in |
| 3540 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3541 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3542 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3543 | fi |
| 3544 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3545 | if test "$Py_DEBUG" = 'true'; then |
| 3546 | : |
| 3547 | else |
| 3548 | OPT="-DNDEBUG $OPT" |
| 3549 | fi |
| 3550 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3551 | # The current (beta) Monterey compiler dies with optimizations |
| 3552 | case $ac_sys_system in |
| 3553 | Monterey*) OPT="";; |
| 3554 | esac |
| 3555 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3556 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3557 | then |
| 3558 | OPT="$OPT $ac_arch_flags" |
| 3559 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3561 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3562 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3563 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3565 | else |
| 3566 | ac_save_cc="$CC" |
| 3567 | CC="$CC -OPT:Olimit=0" |
| 3568 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3569 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | cat >conftest.$ac_ext <<_ACEOF |
| 3572 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3573 | #include "confdefs.h" |
| 3574 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3575 | _ACEOF |
| 3576 | rm -f conftest$ac_exeext |
| 3577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3578 | (eval $ac_link) 2>&5 |
| 3579 | ac_status=$? |
| 3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3581 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3583 | (eval $ac_try) 2>&5 |
| 3584 | ac_status=$? |
| 3585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3586 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3587 | ac_cv_opt_olimit_ok=yes |
| 3588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3589 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3590 | echo "$as_me: failed program was:" >&5 |
| 3591 | cat conftest.$ac_ext >&5 |
| 3592 | ( exit $ac_status ) |
| 3593 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3594 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3595 | 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] | 3596 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3597 | CC="$ac_save_cc" |
| 3598 | fi |
| 3599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3600 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3601 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3602 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3603 | case $ac_sys_system in |
| 3604 | Darwin*) OPT="$OPT" ;; |
| 3605 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3606 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3608 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3609 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3610 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3612 | else |
| 3613 | ac_save_cc="$CC" |
| 3614 | CC="$CC -Olimit 1500" |
| 3615 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3616 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3618 | cat >conftest.$ac_ext <<_ACEOF |
| 3619 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3620 | #include "confdefs.h" |
| 3621 | int main() { return 0; } |
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 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3634 | ac_cv_olimit_ok=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_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +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 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3643 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3644 | CC="$ac_save_cc" |
| 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_olimit_ok" >&5 |
| 3648 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3649 | if test $ac_cv_olimit_ok = yes; then |
| 3650 | OPT="$OPT -Olimit 1500" |
| 3651 | fi |
| 3652 | fi |
| 3653 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3654 | # On some compilers, pthreads are available without further options |
| 3655 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3656 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3657 | # So we have to see first whether pthreads are available without |
| 3658 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3659 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3660 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3661 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3663 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3664 | if test "$cross_compiling" = yes; then |
| 3665 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | cat >conftest.$ac_ext <<_ACEOF |
| 3668 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3669 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3670 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3671 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3672 | |
| 3673 | void* routine(void* p){return NULL;} |
| 3674 | |
| 3675 | int main(){ |
| 3676 | pthread_t p; |
| 3677 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3678 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3679 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3680 | return 0; |
| 3681 | } |
| 3682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | _ACEOF |
| 3684 | rm -f conftest$ac_exeext |
| 3685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3686 | (eval $ac_link) 2>&5 |
| 3687 | ac_status=$? |
| 3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3689 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3691 | (eval $ac_try) 2>&5 |
| 3692 | ac_status=$? |
| 3693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3694 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3695 | ac_cv_pthread_is_default=yes |
| 3696 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3697 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3698 | echo "$as_me: failed program was:" >&5 |
| 3699 | cat conftest.$ac_ext >&5 |
| 3700 | ( exit $ac_status ) |
| 3701 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3702 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3703 | 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] | 3704 | fi |
| 3705 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3706 | fi |
| 3707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3708 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3709 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3710 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3712 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3713 | then |
| 3714 | ac_cv_kpthread=no |
| 3715 | else |
| 3716 | # -Kpthread, if available, provides the right #defines |
| 3717 | # and linker options to make pthread_create available |
| 3718 | # Some compilers won't report that they do not support -Kpthread, |
| 3719 | # so we need to run a program to see whether it really made the |
| 3720 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3721 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3722 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3723 | if test "${ac_cv_kpthread+set}" = set; then |
| 3724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3725 | else |
| 3726 | ac_save_cc="$CC" |
| 3727 | CC="$CC -Kpthread" |
| 3728 | if test "$cross_compiling" = yes; then |
| 3729 | ac_cv_kpthread=no |
| 3730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3731 | cat >conftest.$ac_ext <<_ACEOF |
| 3732 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3733 | #include "confdefs.h" |
| 3734 | |
| 3735 | #include <pthread.h> |
| 3736 | |
| 3737 | void* routine(void* p){return NULL;} |
| 3738 | |
| 3739 | int main(){ |
| 3740 | pthread_t p; |
| 3741 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3742 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3743 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3744 | return 0; |
| 3745 | } |
| 3746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3747 | _ACEOF |
| 3748 | rm -f conftest$ac_exeext |
| 3749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3750 | (eval $ac_link) 2>&5 |
| 3751 | ac_status=$? |
| 3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3753 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3755 | (eval $ac_try) 2>&5 |
| 3756 | ac_status=$? |
| 3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3758 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3759 | ac_cv_kpthread=yes |
| 3760 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3762 | echo "$as_me: failed program was:" >&5 |
| 3763 | cat conftest.$ac_ext >&5 |
| 3764 | ( exit $ac_status ) |
| 3765 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3766 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | 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] | 3768 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3769 | CC="$ac_save_cc" |
| 3770 | fi |
| 3771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3772 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3773 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3774 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3775 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3776 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3777 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3778 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3779 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3780 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3783 | cat >conftest.$ac_ext <<_ACEOF |
| 3784 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3785 | #include "confdefs.h" |
| 3786 | #include <stdlib.h> |
| 3787 | #include <stdarg.h> |
| 3788 | #include <string.h> |
| 3789 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3790 | |
| 3791 | _ACEOF |
| 3792 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3793 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3794 | ac_status=$? |
| 3795 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3796 | rm -f conftest.er1 |
| 3797 | cat conftest.err >&5 |
| 3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3799 | (exit $ac_status); } >/dev/null; then |
| 3800 | if test -s conftest.err; then |
| 3801 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3802 | else |
| 3803 | ac_cpp_err= |
| 3804 | fi |
| 3805 | else |
| 3806 | ac_cpp_err=yes |
| 3807 | fi |
| 3808 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3809 | ac_cv_header_stdc=yes |
| 3810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3811 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3812 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3813 | ac_cv_header_stdc=no |
| 3814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3815 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3816 | |
| 3817 | if test $ac_cv_header_stdc = yes; then |
| 3818 | # 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] | 3819 | cat >conftest.$ac_ext <<_ACEOF |
| 3820 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3821 | #include "confdefs.h" |
| 3822 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3823 | |
| 3824 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3826 | egrep "memchr" >/dev/null 2>&1; then |
| 3827 | : |
| 3828 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3829 | ac_cv_header_stdc=no |
| 3830 | fi |
| 3831 | rm -f conftest* |
| 3832 | |
| 3833 | fi |
| 3834 | |
| 3835 | if test $ac_cv_header_stdc = yes; then |
| 3836 | # 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] | 3837 | cat >conftest.$ac_ext <<_ACEOF |
| 3838 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3839 | #include "confdefs.h" |
| 3840 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3841 | |
| 3842 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3843 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3844 | egrep "free" >/dev/null 2>&1; then |
| 3845 | : |
| 3846 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3847 | ac_cv_header_stdc=no |
| 3848 | fi |
| 3849 | rm -f conftest* |
| 3850 | |
| 3851 | fi |
| 3852 | |
| 3853 | if test $ac_cv_header_stdc = yes; then |
| 3854 | # /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] | 3855 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3856 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3858 | cat >conftest.$ac_ext <<_ACEOF |
| 3859 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3860 | #include "confdefs.h" |
| 3861 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | #if ((' ' & 0x0FF) == 0x020) |
| 3863 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3864 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3865 | #else |
| 3866 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3867 | || ('j' <= (c) && (c) <= 'r') \ |
| 3868 | || ('s' <= (c) && (c) <= 'z')) |
| 3869 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3870 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3872 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3873 | int |
| 3874 | main () |
| 3875 | { |
| 3876 | int i; |
| 3877 | for (i = 0; i < 256; i++) |
| 3878 | if (XOR (islower (i), ISLOWER (i)) |
| 3879 | || toupper (i) != TOUPPER (i)) |
| 3880 | exit(2); |
| 3881 | exit (0); |
| 3882 | } |
| 3883 | _ACEOF |
| 3884 | rm -f conftest$ac_exeext |
| 3885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3886 | (eval $ac_link) 2>&5 |
| 3887 | ac_status=$? |
| 3888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3891 | (eval $ac_try) 2>&5 |
| 3892 | ac_status=$? |
| 3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3894 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3895 | : |
| 3896 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3897 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3898 | echo "$as_me: failed program was:" >&5 |
| 3899 | cat conftest.$ac_ext >&5 |
| 3900 | ( exit $ac_status ) |
| 3901 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3902 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 | 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] | 3904 | fi |
| 3905 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3906 | fi |
| 3907 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3908 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3909 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3910 | |
| 3911 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3912 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3913 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3914 | |
| 3915 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3917 | |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | |
| 3925 | |
| 3926 | |
| 3927 | |
| 3928 | |
| 3929 | |
| 3930 | |
| 3931 | |
| 3932 | |
| 3933 | |
| 3934 | |
| 3935 | |
| 3936 | |
| 3937 | |
| 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | |
| 3952 | |
| 3953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3954 | 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] | 3955 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3956 | 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] | 3957 | 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] | 3958 | 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] | 3959 | 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] | 3960 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3961 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3962 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3964 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3965 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3966 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3968 | fi |
| 3969 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3970 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3972 | # Is the header compilable? |
| 3973 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3974 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3975 | cat >conftest.$ac_ext <<_ACEOF |
| 3976 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3977 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3978 | $ac_includes_default |
| 3979 | #include <$ac_header> |
| 3980 | _ACEOF |
| 3981 | rm -f conftest.$ac_objext |
| 3982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3983 | (eval $ac_compile) 2>&5 |
| 3984 | ac_status=$? |
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3986 | (exit $ac_status); } && |
| 3987 | { ac_try='test -s conftest.$ac_objext' |
| 3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3989 | (eval $ac_try) 2>&5 |
| 3990 | ac_status=$? |
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3992 | (exit $ac_status); }; }; then |
| 3993 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3995 | echo "$as_me: failed program was:" >&5 |
| 3996 | cat conftest.$ac_ext >&5 |
| 3997 | ac_header_compiler=no |
| 3998 | fi |
| 3999 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4000 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4001 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4002 | |
| 4003 | # Is the header present? |
| 4004 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4005 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4006 | cat >conftest.$ac_ext <<_ACEOF |
| 4007 | #line $LINENO "configure" |
| 4008 | #include "confdefs.h" |
| 4009 | #include <$ac_header> |
| 4010 | _ACEOF |
| 4011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4013 | ac_status=$? |
| 4014 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4015 | rm -f conftest.er1 |
| 4016 | cat conftest.err >&5 |
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); } >/dev/null; then |
| 4019 | if test -s conftest.err; then |
| 4020 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4021 | else |
| 4022 | ac_cpp_err= |
| 4023 | fi |
| 4024 | else |
| 4025 | ac_cpp_err=yes |
| 4026 | fi |
| 4027 | if test -z "$ac_cpp_err"; then |
| 4028 | ac_header_preproc=yes |
| 4029 | else |
| 4030 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4031 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4033 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4034 | rm -f conftest.err conftest.$ac_ext |
| 4035 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4036 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4037 | |
| 4038 | # So? What about this header? |
| 4039 | case $ac_header_compiler:$ac_header_preproc in |
| 4040 | yes:no ) |
| 4041 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4042 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4044 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4045 | no:yes ) |
| 4046 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4047 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4048 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4049 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4052 | esac |
| 4053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4058 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4062 | |
| 4063 | fi |
| 4064 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4065 | cat >>confdefs.h <<_ACEOF |
| 4066 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4067 | _ACEOF |
| 4068 | |
| 4069 | fi |
| 4070 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4071 | done |
| 4072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4073 | |
| 4074 | |
| 4075 | |
| 4076 | |
| 4077 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4078 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4080 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4081 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4082 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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" |
| 4089 | #include <sys/types.h> |
| 4090 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4091 | |
| 4092 | #ifdef F77_DUMMY_MAIN |
| 4093 | # ifdef __cplusplus |
| 4094 | extern "C" |
| 4095 | # endif |
| 4096 | int F77_DUMMY_MAIN() { return 1; } |
| 4097 | #endif |
| 4098 | int |
| 4099 | main () |
| 4100 | { |
| 4101 | if ((DIR *) 0) |
| 4102 | return 0; |
| 4103 | ; |
| 4104 | return 0; |
| 4105 | } |
| 4106 | _ACEOF |
| 4107 | rm -f conftest.$ac_objext |
| 4108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4109 | (eval $ac_compile) 2>&5 |
| 4110 | ac_status=$? |
| 4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4112 | (exit $ac_status); } && |
| 4113 | { ac_try='test -s conftest.$ac_objext' |
| 4114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4115 | (eval $ac_try) 2>&5 |
| 4116 | ac_status=$? |
| 4117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4118 | (exit $ac_status); }; }; then |
| 4119 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4121 | echo "$as_me: failed program was:" >&5 |
| 4122 | cat conftest.$ac_ext >&5 |
| 4123 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4125 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4128 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4129 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4130 | cat >>confdefs.h <<_ACEOF |
| 4131 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4132 | _ACEOF |
| 4133 | |
| 4134 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4135 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4136 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4137 | done |
| 4138 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4139 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4140 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4141 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4142 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4145 | ac_func_search_save_LIBS=$LIBS |
| 4146 | ac_cv_search_opendir=no |
| 4147 | cat >conftest.$ac_ext <<_ACEOF |
| 4148 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4149 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4150 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4151 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | #ifdef __cplusplus |
| 4153 | extern "C" |
| 4154 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4155 | /* 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] | 4156 | builtin and then its argument prototype would still apply. */ |
| 4157 | char opendir (); |
| 4158 | #ifdef F77_DUMMY_MAIN |
| 4159 | # ifdef __cplusplus |
| 4160 | extern "C" |
| 4161 | # endif |
| 4162 | int F77_DUMMY_MAIN() { return 1; } |
| 4163 | #endif |
| 4164 | int |
| 4165 | main () |
| 4166 | { |
| 4167 | opendir (); |
| 4168 | ; |
| 4169 | return 0; |
| 4170 | } |
| 4171 | _ACEOF |
| 4172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4174 | (eval $ac_link) 2>&5 |
| 4175 | ac_status=$? |
| 4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4177 | (exit $ac_status); } && |
| 4178 | { ac_try='test -s conftest$ac_exeext' |
| 4179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4180 | (eval $ac_try) 2>&5 |
| 4181 | ac_status=$? |
| 4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4183 | (exit $ac_status); }; }; then |
| 4184 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4186 | echo "$as_me: failed program was:" >&5 |
| 4187 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4189 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4190 | if test "$ac_cv_search_opendir" = no; then |
| 4191 | for ac_lib in dir; do |
| 4192 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4193 | cat >conftest.$ac_ext <<_ACEOF |
| 4194 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4195 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4196 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4197 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | #ifdef __cplusplus |
| 4199 | extern "C" |
| 4200 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4201 | /* 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] | 4202 | builtin and then its argument prototype would still apply. */ |
| 4203 | char opendir (); |
| 4204 | #ifdef F77_DUMMY_MAIN |
| 4205 | # ifdef __cplusplus |
| 4206 | extern "C" |
| 4207 | # endif |
| 4208 | int F77_DUMMY_MAIN() { return 1; } |
| 4209 | #endif |
| 4210 | int |
| 4211 | main () |
| 4212 | { |
| 4213 | opendir (); |
| 4214 | ; |
| 4215 | return 0; |
| 4216 | } |
| 4217 | _ACEOF |
| 4218 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4220 | (eval $ac_link) 2>&5 |
| 4221 | ac_status=$? |
| 4222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4223 | (exit $ac_status); } && |
| 4224 | { ac_try='test -s conftest$ac_exeext' |
| 4225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4226 | (eval $ac_try) 2>&5 |
| 4227 | ac_status=$? |
| 4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4229 | (exit $ac_status); }; }; then |
| 4230 | ac_cv_search_opendir="-l$ac_lib" |
| 4231 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4233 | echo "$as_me: failed program was:" >&5 |
| 4234 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4235 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4236 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4237 | done |
| 4238 | fi |
| 4239 | LIBS=$ac_func_search_save_LIBS |
| 4240 | fi |
| 4241 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4242 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4243 | if test "$ac_cv_search_opendir" != no; then |
| 4244 | 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] | 4245 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4246 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4247 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4249 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4250 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4251 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4253 | else |
| 4254 | ac_func_search_save_LIBS=$LIBS |
| 4255 | ac_cv_search_opendir=no |
| 4256 | cat >conftest.$ac_ext <<_ACEOF |
| 4257 | #line $LINENO "configure" |
| 4258 | #include "confdefs.h" |
| 4259 | |
| 4260 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4261 | #ifdef __cplusplus |
| 4262 | extern "C" |
| 4263 | #endif |
| 4264 | /* We use char because int might match the return type of a gcc2 |
| 4265 | builtin and then its argument prototype would still apply. */ |
| 4266 | char opendir (); |
| 4267 | #ifdef F77_DUMMY_MAIN |
| 4268 | # ifdef __cplusplus |
| 4269 | extern "C" |
| 4270 | # endif |
| 4271 | int F77_DUMMY_MAIN() { return 1; } |
| 4272 | #endif |
| 4273 | int |
| 4274 | main () |
| 4275 | { |
| 4276 | opendir (); |
| 4277 | ; |
| 4278 | return 0; |
| 4279 | } |
| 4280 | _ACEOF |
| 4281 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4283 | (eval $ac_link) 2>&5 |
| 4284 | ac_status=$? |
| 4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4286 | (exit $ac_status); } && |
| 4287 | { ac_try='test -s conftest$ac_exeext' |
| 4288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4289 | (eval $ac_try) 2>&5 |
| 4290 | ac_status=$? |
| 4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4292 | (exit $ac_status); }; }; then |
| 4293 | ac_cv_search_opendir="none required" |
| 4294 | else |
| 4295 | echo "$as_me: failed program was:" >&5 |
| 4296 | cat conftest.$ac_ext >&5 |
| 4297 | fi |
| 4298 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4299 | if test "$ac_cv_search_opendir" = no; then |
| 4300 | for ac_lib in x; do |
| 4301 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4302 | cat >conftest.$ac_ext <<_ACEOF |
| 4303 | #line $LINENO "configure" |
| 4304 | #include "confdefs.h" |
| 4305 | |
| 4306 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4307 | #ifdef __cplusplus |
| 4308 | extern "C" |
| 4309 | #endif |
| 4310 | /* We use char because int might match the return type of a gcc2 |
| 4311 | builtin and then its argument prototype would still apply. */ |
| 4312 | char opendir (); |
| 4313 | #ifdef F77_DUMMY_MAIN |
| 4314 | # ifdef __cplusplus |
| 4315 | extern "C" |
| 4316 | # endif |
| 4317 | int F77_DUMMY_MAIN() { return 1; } |
| 4318 | #endif |
| 4319 | int |
| 4320 | main () |
| 4321 | { |
| 4322 | opendir (); |
| 4323 | ; |
| 4324 | return 0; |
| 4325 | } |
| 4326 | _ACEOF |
| 4327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4329 | (eval $ac_link) 2>&5 |
| 4330 | ac_status=$? |
| 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4332 | (exit $ac_status); } && |
| 4333 | { ac_try='test -s conftest$ac_exeext' |
| 4334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4335 | (eval $ac_try) 2>&5 |
| 4336 | ac_status=$? |
| 4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4338 | (exit $ac_status); }; }; then |
| 4339 | ac_cv_search_opendir="-l$ac_lib" |
| 4340 | break |
| 4341 | else |
| 4342 | echo "$as_me: failed program was:" >&5 |
| 4343 | cat conftest.$ac_ext >&5 |
| 4344 | fi |
| 4345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4346 | done |
| 4347 | fi |
| 4348 | LIBS=$ac_func_search_save_LIBS |
| 4349 | fi |
| 4350 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4351 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4352 | if test "$ac_cv_search_opendir" != no; then |
| 4353 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4354 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4355 | fi |
| 4356 | |
| 4357 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4358 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4359 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4360 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4361 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4363 | else |
| 4364 | cat >conftest.$ac_ext <<_ACEOF |
| 4365 | #line $LINENO "configure" |
| 4366 | #include "confdefs.h" |
| 4367 | #include <sys/types.h> |
| 4368 | #ifdef F77_DUMMY_MAIN |
| 4369 | # ifdef __cplusplus |
| 4370 | extern "C" |
| 4371 | # endif |
| 4372 | int F77_DUMMY_MAIN() { return 1; } |
| 4373 | #endif |
| 4374 | int |
| 4375 | main () |
| 4376 | { |
| 4377 | return makedev(0, 0); |
| 4378 | ; |
| 4379 | return 0; |
| 4380 | } |
| 4381 | _ACEOF |
| 4382 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4384 | (eval $ac_link) 2>&5 |
| 4385 | ac_status=$? |
| 4386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4387 | (exit $ac_status); } && |
| 4388 | { ac_try='test -s conftest$ac_exeext' |
| 4389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4390 | (eval $ac_try) 2>&5 |
| 4391 | ac_status=$? |
| 4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4393 | (exit $ac_status); }; }; then |
| 4394 | ac_cv_header_sys_types_h_makedev=yes |
| 4395 | else |
| 4396 | echo "$as_me: failed program was:" >&5 |
| 4397 | cat conftest.$ac_ext >&5 |
| 4398 | ac_cv_header_sys_types_h_makedev=no |
| 4399 | fi |
| 4400 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4401 | |
| 4402 | fi |
| 4403 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4404 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4405 | |
| 4406 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4407 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4408 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4409 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4410 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4412 | fi |
| 4413 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4414 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4415 | else |
| 4416 | # Is the header compilable? |
| 4417 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4418 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4419 | cat >conftest.$ac_ext <<_ACEOF |
| 4420 | #line $LINENO "configure" |
| 4421 | #include "confdefs.h" |
| 4422 | $ac_includes_default |
| 4423 | #include <sys/mkdev.h> |
| 4424 | _ACEOF |
| 4425 | rm -f conftest.$ac_objext |
| 4426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4427 | (eval $ac_compile) 2>&5 |
| 4428 | ac_status=$? |
| 4429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4430 | (exit $ac_status); } && |
| 4431 | { ac_try='test -s conftest.$ac_objext' |
| 4432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4433 | (eval $ac_try) 2>&5 |
| 4434 | ac_status=$? |
| 4435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4436 | (exit $ac_status); }; }; then |
| 4437 | ac_header_compiler=yes |
| 4438 | else |
| 4439 | echo "$as_me: failed program was:" >&5 |
| 4440 | cat conftest.$ac_ext >&5 |
| 4441 | ac_header_compiler=no |
| 4442 | fi |
| 4443 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4444 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4445 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4446 | |
| 4447 | # Is the header present? |
| 4448 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4449 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4450 | cat >conftest.$ac_ext <<_ACEOF |
| 4451 | #line $LINENO "configure" |
| 4452 | #include "confdefs.h" |
| 4453 | #include <sys/mkdev.h> |
| 4454 | _ACEOF |
| 4455 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4457 | ac_status=$? |
| 4458 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4459 | rm -f conftest.er1 |
| 4460 | cat conftest.err >&5 |
| 4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4462 | (exit $ac_status); } >/dev/null; then |
| 4463 | if test -s conftest.err; then |
| 4464 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4465 | else |
| 4466 | ac_cpp_err= |
| 4467 | fi |
| 4468 | else |
| 4469 | ac_cpp_err=yes |
| 4470 | fi |
| 4471 | if test -z "$ac_cpp_err"; then |
| 4472 | ac_header_preproc=yes |
| 4473 | else |
| 4474 | echo "$as_me: failed program was:" >&5 |
| 4475 | cat conftest.$ac_ext >&5 |
| 4476 | ac_header_preproc=no |
| 4477 | fi |
| 4478 | rm -f conftest.err conftest.$ac_ext |
| 4479 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4480 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4481 | |
| 4482 | # So? What about this header? |
| 4483 | case $ac_header_compiler:$ac_header_preproc in |
| 4484 | yes:no ) |
| 4485 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4486 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4487 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4488 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4489 | no:yes ) |
| 4490 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4491 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4492 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4493 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4494 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4495 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4496 | esac |
| 4497 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4498 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4499 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4501 | else |
| 4502 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4503 | fi |
| 4504 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4505 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4506 | |
| 4507 | fi |
| 4508 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4509 | |
| 4510 | cat >>confdefs.h <<\_ACEOF |
| 4511 | #define MAJOR_IN_MKDEV 1 |
| 4512 | _ACEOF |
| 4513 | |
| 4514 | fi |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4519 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4520 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4521 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4522 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4524 | fi |
| 4525 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4526 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4527 | else |
| 4528 | # Is the header compilable? |
| 4529 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4530 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4531 | cat >conftest.$ac_ext <<_ACEOF |
| 4532 | #line $LINENO "configure" |
| 4533 | #include "confdefs.h" |
| 4534 | $ac_includes_default |
| 4535 | #include <sys/sysmacros.h> |
| 4536 | _ACEOF |
| 4537 | rm -f conftest.$ac_objext |
| 4538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4539 | (eval $ac_compile) 2>&5 |
| 4540 | ac_status=$? |
| 4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4542 | (exit $ac_status); } && |
| 4543 | { ac_try='test -s conftest.$ac_objext' |
| 4544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4545 | (eval $ac_try) 2>&5 |
| 4546 | ac_status=$? |
| 4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4548 | (exit $ac_status); }; }; then |
| 4549 | ac_header_compiler=yes |
| 4550 | else |
| 4551 | echo "$as_me: failed program was:" >&5 |
| 4552 | cat conftest.$ac_ext >&5 |
| 4553 | ac_header_compiler=no |
| 4554 | fi |
| 4555 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4556 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4557 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4558 | |
| 4559 | # Is the header present? |
| 4560 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4561 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4562 | cat >conftest.$ac_ext <<_ACEOF |
| 4563 | #line $LINENO "configure" |
| 4564 | #include "confdefs.h" |
| 4565 | #include <sys/sysmacros.h> |
| 4566 | _ACEOF |
| 4567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4569 | ac_status=$? |
| 4570 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4571 | rm -f conftest.er1 |
| 4572 | cat conftest.err >&5 |
| 4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4574 | (exit $ac_status); } >/dev/null; then |
| 4575 | if test -s conftest.err; then |
| 4576 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4577 | else |
| 4578 | ac_cpp_err= |
| 4579 | fi |
| 4580 | else |
| 4581 | ac_cpp_err=yes |
| 4582 | fi |
| 4583 | if test -z "$ac_cpp_err"; then |
| 4584 | ac_header_preproc=yes |
| 4585 | else |
| 4586 | echo "$as_me: failed program was:" >&5 |
| 4587 | cat conftest.$ac_ext >&5 |
| 4588 | ac_header_preproc=no |
| 4589 | fi |
| 4590 | rm -f conftest.err conftest.$ac_ext |
| 4591 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4592 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4593 | |
| 4594 | # So? What about this header? |
| 4595 | case $ac_header_compiler:$ac_header_preproc in |
| 4596 | yes:no ) |
| 4597 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4598 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4599 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4600 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4601 | no:yes ) |
| 4602 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4603 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4604 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4605 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4606 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4607 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4608 | esac |
| 4609 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4610 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4611 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4613 | else |
| 4614 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4615 | fi |
| 4616 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4617 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4618 | |
| 4619 | fi |
| 4620 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4621 | |
| 4622 | cat >>confdefs.h <<\_ACEOF |
| 4623 | #define MAJOR_IN_SYSMACROS 1 |
| 4624 | _ACEOF |
| 4625 | |
| 4626 | fi |
| 4627 | |
| 4628 | |
| 4629 | fi |
| 4630 | fi |
| 4631 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4632 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4633 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4634 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4635 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4636 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4637 | cat >conftest.$ac_ext <<_ACEOF |
| 4638 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4639 | #include "confdefs.h" |
| 4640 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4641 | |
| 4642 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4644 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4645 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4647 | |
| 4648 | |
| 4649 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4650 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4651 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4652 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4653 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4654 | fi |
| 4655 | rm -f conftest* |
| 4656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4657 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4658 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4659 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4660 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4661 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4662 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4663 | cat >conftest.$ac_ext <<_ACEOF |
| 4664 | #line $LINENO "configure" |
| 4665 | #include "confdefs.h" |
| 4666 | #include <sys/types.h> |
| 4667 | #ifdef F77_DUMMY_MAIN |
| 4668 | # ifdef __cplusplus |
| 4669 | extern "C" |
| 4670 | # endif |
| 4671 | int F77_DUMMY_MAIN() { return 1; } |
| 4672 | #endif |
| 4673 | int |
| 4674 | main () |
| 4675 | { |
| 4676 | makedev(0, 0) |
| 4677 | ; |
| 4678 | return 0; |
| 4679 | } |
| 4680 | _ACEOF |
| 4681 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4683 | (eval $ac_link) 2>&5 |
| 4684 | ac_status=$? |
| 4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4686 | (exit $ac_status); } && |
| 4687 | { ac_try='test -s conftest$ac_exeext' |
| 4688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4689 | (eval $ac_try) 2>&5 |
| 4690 | ac_status=$? |
| 4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4692 | (exit $ac_status); }; }; then |
| 4693 | ac_cv_has_makedev=yes |
| 4694 | else |
| 4695 | echo "$as_me: failed program was:" >&5 |
| 4696 | cat conftest.$ac_ext >&5 |
| 4697 | ac_cv_has_makedev=no |
| 4698 | fi |
| 4699 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4700 | if test "$ac_cv_has_makedev" = "no"; then |
| 4701 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4702 | cat >conftest.$ac_ext <<_ACEOF |
| 4703 | #line $LINENO "configure" |
| 4704 | #include "confdefs.h" |
| 4705 | |
| 4706 | #define _OSF_SOURCE 1 |
| 4707 | #include <sys/types.h> |
| 4708 | |
| 4709 | #ifdef F77_DUMMY_MAIN |
| 4710 | # ifdef __cplusplus |
| 4711 | extern "C" |
| 4712 | # endif |
| 4713 | int F77_DUMMY_MAIN() { return 1; } |
| 4714 | #endif |
| 4715 | int |
| 4716 | main () |
| 4717 | { |
| 4718 | makedev(0, 0) |
| 4719 | ; |
| 4720 | return 0; |
| 4721 | } |
| 4722 | _ACEOF |
| 4723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4725 | (eval $ac_link) 2>&5 |
| 4726 | ac_status=$? |
| 4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4728 | (exit $ac_status); } && |
| 4729 | { ac_try='test -s conftest$ac_exeext' |
| 4730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4731 | (eval $ac_try) 2>&5 |
| 4732 | ac_status=$? |
| 4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4734 | (exit $ac_status); }; }; then |
| 4735 | ac_cv_has_makedev=yes |
| 4736 | else |
| 4737 | echo "$as_me: failed program was:" >&5 |
| 4738 | cat conftest.$ac_ext >&5 |
| 4739 | ac_cv_has_makedev=no |
| 4740 | fi |
| 4741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4742 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4743 | |
| 4744 | cat >>confdefs.h <<\_ACEOF |
| 4745 | #define _OSF_SOURCE 1 |
| 4746 | _ACEOF |
| 4747 | |
| 4748 | fi |
| 4749 | fi |
| 4750 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4751 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4752 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4753 | |
| 4754 | cat >>confdefs.h <<\_ACEOF |
| 4755 | #define HAVE_MAKEDEV 1 |
| 4756 | _ACEOF |
| 4757 | |
| 4758 | fi |
| 4759 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4760 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4761 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4762 | # defined, but the compiler does not support pragma redefine_extname, |
| 4763 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4764 | # structures (such as rlimit64) without declaring them. As a |
| 4765 | # work-around, disable LFS on such configurations |
| 4766 | |
| 4767 | use_lfs=yes |
| 4768 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4769 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4770 | cat >conftest.$ac_ext <<_ACEOF |
| 4771 | #line $LINENO "configure" |
| 4772 | #include "confdefs.h" |
| 4773 | |
| 4774 | #define _LARGEFILE_SOURCE 1 |
| 4775 | #define _FILE_OFFSET_BITS 64 |
| 4776 | #include <sys/resource.h> |
| 4777 | |
| 4778 | #ifdef F77_DUMMY_MAIN |
| 4779 | # ifdef __cplusplus |
| 4780 | extern "C" |
| 4781 | # endif |
| 4782 | int F77_DUMMY_MAIN() { return 1; } |
| 4783 | #endif |
| 4784 | int |
| 4785 | main () |
| 4786 | { |
| 4787 | struct rlimit foo; |
| 4788 | ; |
| 4789 | return 0; |
| 4790 | } |
| 4791 | _ACEOF |
| 4792 | rm -f conftest.$ac_objext |
| 4793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4794 | (eval $ac_compile) 2>&5 |
| 4795 | ac_status=$? |
| 4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4797 | (exit $ac_status); } && |
| 4798 | { ac_try='test -s conftest.$ac_objext' |
| 4799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4800 | (eval $ac_try) 2>&5 |
| 4801 | ac_status=$? |
| 4802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4803 | (exit $ac_status); }; }; then |
| 4804 | sol_lfs_bug=no |
| 4805 | else |
| 4806 | echo "$as_me: failed program was:" >&5 |
| 4807 | cat conftest.$ac_ext >&5 |
| 4808 | sol_lfs_bug=yes |
| 4809 | fi |
| 4810 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4811 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4812 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4813 | if test "$sol_lfs_bug" = "yes"; then |
| 4814 | use_lfs=no |
| 4815 | fi |
| 4816 | |
| 4817 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4818 | # Two defines needed to enable largefile support on various platforms |
| 4819 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4821 | cat >>confdefs.h <<\_ACEOF |
| 4822 | #define _LARGEFILE_SOURCE 1 |
| 4823 | _ACEOF |
| 4824 | |
| 4825 | |
| 4826 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4827 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4828 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4829 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4830 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4831 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4832 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4833 | cat >> confdefs.h <<\EOF |
| 4834 | #if defined(SCO_DS) |
| 4835 | #undef _OFF_T |
| 4836 | #endif |
| 4837 | EOF |
| 4838 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4839 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4840 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4841 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4842 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4845 | cat >conftest.$ac_ext <<_ACEOF |
| 4846 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4847 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4848 | $ac_includes_default |
| 4849 | #ifdef F77_DUMMY_MAIN |
| 4850 | # ifdef __cplusplus |
| 4851 | extern "C" |
| 4852 | # endif |
| 4853 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4854 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4855 | int |
| 4856 | main () |
| 4857 | { |
| 4858 | if ((mode_t *) 0) |
| 4859 | return 0; |
| 4860 | if (sizeof (mode_t)) |
| 4861 | return 0; |
| 4862 | ; |
| 4863 | return 0; |
| 4864 | } |
| 4865 | _ACEOF |
| 4866 | rm -f conftest.$ac_objext |
| 4867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4868 | (eval $ac_compile) 2>&5 |
| 4869 | ac_status=$? |
| 4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4871 | (exit $ac_status); } && |
| 4872 | { ac_try='test -s conftest.$ac_objext' |
| 4873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4874 | (eval $ac_try) 2>&5 |
| 4875 | ac_status=$? |
| 4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4877 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4878 | ac_cv_type_mode_t=yes |
| 4879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4880 | echo "$as_me: failed program was:" >&5 |
| 4881 | cat conftest.$ac_ext >&5 |
| 4882 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4884 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4886 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4887 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4888 | if test $ac_cv_type_mode_t = yes; then |
| 4889 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4891 | |
| 4892 | cat >>confdefs.h <<_ACEOF |
| 4893 | #define mode_t int |
| 4894 | _ACEOF |
| 4895 | |
| 4896 | fi |
| 4897 | |
| 4898 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4899 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4900 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4902 | else |
| 4903 | cat >conftest.$ac_ext <<_ACEOF |
| 4904 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4905 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4906 | $ac_includes_default |
| 4907 | #ifdef F77_DUMMY_MAIN |
| 4908 | # ifdef __cplusplus |
| 4909 | extern "C" |
| 4910 | # endif |
| 4911 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4912 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4913 | int |
| 4914 | main () |
| 4915 | { |
| 4916 | if ((off_t *) 0) |
| 4917 | return 0; |
| 4918 | if (sizeof (off_t)) |
| 4919 | return 0; |
| 4920 | ; |
| 4921 | return 0; |
| 4922 | } |
| 4923 | _ACEOF |
| 4924 | rm -f conftest.$ac_objext |
| 4925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4926 | (eval $ac_compile) 2>&5 |
| 4927 | ac_status=$? |
| 4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4929 | (exit $ac_status); } && |
| 4930 | { ac_try='test -s conftest.$ac_objext' |
| 4931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4932 | (eval $ac_try) 2>&5 |
| 4933 | ac_status=$? |
| 4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4935 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4936 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4938 | echo "$as_me: failed program was:" >&5 |
| 4939 | cat conftest.$ac_ext >&5 |
| 4940 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4941 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4942 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4943 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4944 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4945 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4946 | if test $ac_cv_type_off_t = yes; then |
| 4947 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4949 | |
| 4950 | cat >>confdefs.h <<_ACEOF |
| 4951 | #define off_t long |
| 4952 | _ACEOF |
| 4953 | |
| 4954 | fi |
| 4955 | |
| 4956 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4957 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4958 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4960 | else |
| 4961 | cat >conftest.$ac_ext <<_ACEOF |
| 4962 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4963 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4964 | $ac_includes_default |
| 4965 | #ifdef F77_DUMMY_MAIN |
| 4966 | # ifdef __cplusplus |
| 4967 | extern "C" |
| 4968 | # endif |
| 4969 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4970 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4971 | int |
| 4972 | main () |
| 4973 | { |
| 4974 | if ((pid_t *) 0) |
| 4975 | return 0; |
| 4976 | if (sizeof (pid_t)) |
| 4977 | return 0; |
| 4978 | ; |
| 4979 | return 0; |
| 4980 | } |
| 4981 | _ACEOF |
| 4982 | rm -f conftest.$ac_objext |
| 4983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4984 | (eval $ac_compile) 2>&5 |
| 4985 | ac_status=$? |
| 4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4987 | (exit $ac_status); } && |
| 4988 | { ac_try='test -s conftest.$ac_objext' |
| 4989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4990 | (eval $ac_try) 2>&5 |
| 4991 | ac_status=$? |
| 4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4993 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4994 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4996 | echo "$as_me: failed program was:" >&5 |
| 4997 | cat conftest.$ac_ext >&5 |
| 4998 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5000 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5002 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5003 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5004 | if test $ac_cv_type_pid_t = yes; then |
| 5005 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5007 | |
| 5008 | cat >>confdefs.h <<_ACEOF |
| 5009 | #define pid_t int |
| 5010 | _ACEOF |
| 5011 | |
| 5012 | fi |
| 5013 | |
| 5014 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5015 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5016 | if test "${ac_cv_type_signal+set}" = set; then |
| 5017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5018 | else |
| 5019 | cat >conftest.$ac_ext <<_ACEOF |
| 5020 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5021 | #include "confdefs.h" |
| 5022 | #include <sys/types.h> |
| 5023 | #include <signal.h> |
| 5024 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5025 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5026 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5027 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5028 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5029 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5030 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5031 | #endif |
| 5032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5033 | #ifdef F77_DUMMY_MAIN |
| 5034 | # ifdef __cplusplus |
| 5035 | extern "C" |
| 5036 | # endif |
| 5037 | int F77_DUMMY_MAIN() { return 1; } |
| 5038 | #endif |
| 5039 | int |
| 5040 | main () |
| 5041 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5042 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5043 | ; |
| 5044 | return 0; |
| 5045 | } |
| 5046 | _ACEOF |
| 5047 | rm -f conftest.$ac_objext |
| 5048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5049 | (eval $ac_compile) 2>&5 |
| 5050 | ac_status=$? |
| 5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5052 | (exit $ac_status); } && |
| 5053 | { ac_try='test -s conftest.$ac_objext' |
| 5054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5055 | (eval $ac_try) 2>&5 |
| 5056 | ac_status=$? |
| 5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5058 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5059 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5061 | echo "$as_me: failed program was:" >&5 |
| 5062 | cat conftest.$ac_ext >&5 |
| 5063 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5065 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5066 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5067 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5068 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5070 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5071 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5072 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5073 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5075 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5076 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5077 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5080 | cat >conftest.$ac_ext <<_ACEOF |
| 5081 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5082 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5083 | $ac_includes_default |
| 5084 | #ifdef F77_DUMMY_MAIN |
| 5085 | # ifdef __cplusplus |
| 5086 | extern "C" |
| 5087 | # endif |
| 5088 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5089 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5090 | int |
| 5091 | main () |
| 5092 | { |
| 5093 | if ((size_t *) 0) |
| 5094 | return 0; |
| 5095 | if (sizeof (size_t)) |
| 5096 | return 0; |
| 5097 | ; |
| 5098 | return 0; |
| 5099 | } |
| 5100 | _ACEOF |
| 5101 | rm -f conftest.$ac_objext |
| 5102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5103 | (eval $ac_compile) 2>&5 |
| 5104 | ac_status=$? |
| 5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5106 | (exit $ac_status); } && |
| 5107 | { ac_try='test -s conftest.$ac_objext' |
| 5108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5109 | (eval $ac_try) 2>&5 |
| 5110 | ac_status=$? |
| 5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5112 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5113 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5115 | echo "$as_me: failed program was:" >&5 |
| 5116 | cat conftest.$ac_ext >&5 |
| 5117 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5119 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5120 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5121 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5122 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5123 | if test $ac_cv_type_size_t = yes; then |
| 5124 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5126 | |
| 5127 | cat >>confdefs.h <<_ACEOF |
| 5128 | #define size_t unsigned |
| 5129 | _ACEOF |
| 5130 | |
| 5131 | fi |
| 5132 | |
| 5133 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5134 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5135 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5137 | else |
| 5138 | cat >conftest.$ac_ext <<_ACEOF |
| 5139 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5140 | #include "confdefs.h" |
| 5141 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5142 | |
| 5143 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5145 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5146 | ac_cv_type_uid_t=yes |
| 5147 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5148 | ac_cv_type_uid_t=no |
| 5149 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5150 | rm -f conftest* |
| 5151 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5153 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5154 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5155 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5157 | cat >>confdefs.h <<\_ACEOF |
| 5158 | #define uid_t int |
| 5159 | _ACEOF |
| 5160 | |
| 5161 | |
| 5162 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5163 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5164 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5165 | |
| 5166 | fi |
| 5167 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5168 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5169 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5170 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5171 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5172 | if test "${ac_cv_type_int+set}" = set; then |
| 5173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5174 | else |
| 5175 | cat >conftest.$ac_ext <<_ACEOF |
| 5176 | #line $LINENO "configure" |
| 5177 | #include "confdefs.h" |
| 5178 | $ac_includes_default |
| 5179 | #ifdef F77_DUMMY_MAIN |
| 5180 | # ifdef __cplusplus |
| 5181 | extern "C" |
| 5182 | # endif |
| 5183 | int F77_DUMMY_MAIN() { return 1; } |
| 5184 | #endif |
| 5185 | int |
| 5186 | main () |
| 5187 | { |
| 5188 | if ((int *) 0) |
| 5189 | return 0; |
| 5190 | if (sizeof (int)) |
| 5191 | return 0; |
| 5192 | ; |
| 5193 | return 0; |
| 5194 | } |
| 5195 | _ACEOF |
| 5196 | rm -f conftest.$ac_objext |
| 5197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5198 | (eval $ac_compile) 2>&5 |
| 5199 | ac_status=$? |
| 5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5201 | (exit $ac_status); } && |
| 5202 | { ac_try='test -s conftest.$ac_objext' |
| 5203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5204 | (eval $ac_try) 2>&5 |
| 5205 | ac_status=$? |
| 5206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5207 | (exit $ac_status); }; }; then |
| 5208 | ac_cv_type_int=yes |
| 5209 | else |
| 5210 | echo "$as_me: failed program was:" >&5 |
| 5211 | cat conftest.$ac_ext >&5 |
| 5212 | ac_cv_type_int=no |
| 5213 | fi |
| 5214 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5215 | fi |
| 5216 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5217 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5218 | |
| 5219 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5220 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5221 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5223 | else |
| 5224 | if test "$ac_cv_type_int" = yes; then |
| 5225 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5226 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5227 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5228 | # This bug is HP SR number 8606223364. |
| 5229 | if test "$cross_compiling" = yes; then |
| 5230 | # Depending upon the size, compute the lo and hi bounds. |
| 5231 | cat >conftest.$ac_ext <<_ACEOF |
| 5232 | #line $LINENO "configure" |
| 5233 | #include "confdefs.h" |
| 5234 | $ac_includes_default |
| 5235 | #ifdef F77_DUMMY_MAIN |
| 5236 | # ifdef __cplusplus |
| 5237 | extern "C" |
| 5238 | # endif |
| 5239 | int F77_DUMMY_MAIN() { return 1; } |
| 5240 | #endif |
| 5241 | int |
| 5242 | main () |
| 5243 | { |
| 5244 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5245 | test_array [0] = 0 |
| 5246 | |
| 5247 | ; |
| 5248 | return 0; |
| 5249 | } |
| 5250 | _ACEOF |
| 5251 | rm -f conftest.$ac_objext |
| 5252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5253 | (eval $ac_compile) 2>&5 |
| 5254 | ac_status=$? |
| 5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5256 | (exit $ac_status); } && |
| 5257 | { ac_try='test -s conftest.$ac_objext' |
| 5258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5259 | (eval $ac_try) 2>&5 |
| 5260 | ac_status=$? |
| 5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5262 | (exit $ac_status); }; }; then |
| 5263 | ac_lo=0 ac_mid=0 |
| 5264 | while :; do |
| 5265 | cat >conftest.$ac_ext <<_ACEOF |
| 5266 | #line $LINENO "configure" |
| 5267 | #include "confdefs.h" |
| 5268 | $ac_includes_default |
| 5269 | #ifdef F77_DUMMY_MAIN |
| 5270 | # ifdef __cplusplus |
| 5271 | extern "C" |
| 5272 | # endif |
| 5273 | int F77_DUMMY_MAIN() { return 1; } |
| 5274 | #endif |
| 5275 | int |
| 5276 | main () |
| 5277 | { |
| 5278 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5279 | test_array [0] = 0 |
| 5280 | |
| 5281 | ; |
| 5282 | return 0; |
| 5283 | } |
| 5284 | _ACEOF |
| 5285 | rm -f conftest.$ac_objext |
| 5286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5287 | (eval $ac_compile) 2>&5 |
| 5288 | ac_status=$? |
| 5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5290 | (exit $ac_status); } && |
| 5291 | { ac_try='test -s conftest.$ac_objext' |
| 5292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5293 | (eval $ac_try) 2>&5 |
| 5294 | ac_status=$? |
| 5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5296 | (exit $ac_status); }; }; then |
| 5297 | ac_hi=$ac_mid; break |
| 5298 | else |
| 5299 | echo "$as_me: failed program was:" >&5 |
| 5300 | cat conftest.$ac_ext >&5 |
| 5301 | ac_lo=`expr $ac_mid + 1` |
| 5302 | if test $ac_lo -le $ac_mid; then |
| 5303 | ac_lo= ac_hi= |
| 5304 | break |
| 5305 | fi |
| 5306 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5307 | fi |
| 5308 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5309 | done |
| 5310 | else |
| 5311 | echo "$as_me: failed program was:" >&5 |
| 5312 | cat conftest.$ac_ext >&5 |
| 5313 | cat >conftest.$ac_ext <<_ACEOF |
| 5314 | #line $LINENO "configure" |
| 5315 | #include "confdefs.h" |
| 5316 | $ac_includes_default |
| 5317 | #ifdef F77_DUMMY_MAIN |
| 5318 | # ifdef __cplusplus |
| 5319 | extern "C" |
| 5320 | # endif |
| 5321 | int F77_DUMMY_MAIN() { return 1; } |
| 5322 | #endif |
| 5323 | int |
| 5324 | main () |
| 5325 | { |
| 5326 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5327 | test_array [0] = 0 |
| 5328 | |
| 5329 | ; |
| 5330 | return 0; |
| 5331 | } |
| 5332 | _ACEOF |
| 5333 | rm -f conftest.$ac_objext |
| 5334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5335 | (eval $ac_compile) 2>&5 |
| 5336 | ac_status=$? |
| 5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5338 | (exit $ac_status); } && |
| 5339 | { ac_try='test -s conftest.$ac_objext' |
| 5340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5341 | (eval $ac_try) 2>&5 |
| 5342 | ac_status=$? |
| 5343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5344 | (exit $ac_status); }; }; then |
| 5345 | ac_hi=-1 ac_mid=-1 |
| 5346 | while :; do |
| 5347 | cat >conftest.$ac_ext <<_ACEOF |
| 5348 | #line $LINENO "configure" |
| 5349 | #include "confdefs.h" |
| 5350 | $ac_includes_default |
| 5351 | #ifdef F77_DUMMY_MAIN |
| 5352 | # ifdef __cplusplus |
| 5353 | extern "C" |
| 5354 | # endif |
| 5355 | int F77_DUMMY_MAIN() { return 1; } |
| 5356 | #endif |
| 5357 | int |
| 5358 | main () |
| 5359 | { |
| 5360 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5361 | test_array [0] = 0 |
| 5362 | |
| 5363 | ; |
| 5364 | return 0; |
| 5365 | } |
| 5366 | _ACEOF |
| 5367 | rm -f conftest.$ac_objext |
| 5368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5369 | (eval $ac_compile) 2>&5 |
| 5370 | ac_status=$? |
| 5371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5372 | (exit $ac_status); } && |
| 5373 | { ac_try='test -s conftest.$ac_objext' |
| 5374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5375 | (eval $ac_try) 2>&5 |
| 5376 | ac_status=$? |
| 5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5378 | (exit $ac_status); }; }; then |
| 5379 | ac_lo=$ac_mid; break |
| 5380 | else |
| 5381 | echo "$as_me: failed program was:" >&5 |
| 5382 | cat conftest.$ac_ext >&5 |
| 5383 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5384 | if test $ac_mid -le $ac_hi; then |
| 5385 | ac_lo= ac_hi= |
| 5386 | break |
| 5387 | fi |
| 5388 | ac_mid=`expr 2 '*' $ac_mid` |
| 5389 | fi |
| 5390 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5391 | done |
| 5392 | else |
| 5393 | echo "$as_me: failed program was:" >&5 |
| 5394 | cat conftest.$ac_ext >&5 |
| 5395 | ac_lo= ac_hi= |
| 5396 | fi |
| 5397 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5398 | fi |
| 5399 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5400 | # Binary search between lo and hi bounds. |
| 5401 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5402 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5403 | cat >conftest.$ac_ext <<_ACEOF |
| 5404 | #line $LINENO "configure" |
| 5405 | #include "confdefs.h" |
| 5406 | $ac_includes_default |
| 5407 | #ifdef F77_DUMMY_MAIN |
| 5408 | # ifdef __cplusplus |
| 5409 | extern "C" |
| 5410 | # endif |
| 5411 | int F77_DUMMY_MAIN() { return 1; } |
| 5412 | #endif |
| 5413 | int |
| 5414 | main () |
| 5415 | { |
| 5416 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5417 | test_array [0] = 0 |
| 5418 | |
| 5419 | ; |
| 5420 | return 0; |
| 5421 | } |
| 5422 | _ACEOF |
| 5423 | rm -f conftest.$ac_objext |
| 5424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5425 | (eval $ac_compile) 2>&5 |
| 5426 | ac_status=$? |
| 5427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5428 | (exit $ac_status); } && |
| 5429 | { ac_try='test -s conftest.$ac_objext' |
| 5430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5431 | (eval $ac_try) 2>&5 |
| 5432 | ac_status=$? |
| 5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5434 | (exit $ac_status); }; }; then |
| 5435 | ac_hi=$ac_mid |
| 5436 | else |
| 5437 | echo "$as_me: failed program was:" >&5 |
| 5438 | cat conftest.$ac_ext >&5 |
| 5439 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5440 | fi |
| 5441 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5442 | done |
| 5443 | case $ac_lo in |
| 5444 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5445 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5446 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5447 | { (exit 1); exit 1; }; } ;; |
| 5448 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5449 | else |
| 5450 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5451 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5452 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5453 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5455 | cat >conftest.$ac_ext <<_ACEOF |
| 5456 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5457 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5458 | $ac_includes_default |
| 5459 | long longval () { return (long) (sizeof (int)); } |
| 5460 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5461 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5462 | #include <stdlib.h> |
| 5463 | #ifdef F77_DUMMY_MAIN |
| 5464 | # ifdef __cplusplus |
| 5465 | extern "C" |
| 5466 | # endif |
| 5467 | int F77_DUMMY_MAIN() { return 1; } |
| 5468 | #endif |
| 5469 | int |
| 5470 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5471 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5472 | |
| 5473 | FILE *f = fopen ("conftest.val", "w"); |
| 5474 | if (! f) |
| 5475 | exit (1); |
| 5476 | if (((long) (sizeof (int))) < 0) |
| 5477 | { |
| 5478 | long i = longval (); |
| 5479 | if (i != ((long) (sizeof (int)))) |
| 5480 | exit (1); |
| 5481 | fprintf (f, "%ld\n", i); |
| 5482 | } |
| 5483 | else |
| 5484 | { |
| 5485 | unsigned long i = ulongval (); |
| 5486 | if (i != ((long) (sizeof (int)))) |
| 5487 | exit (1); |
| 5488 | fprintf (f, "%lu\n", i); |
| 5489 | } |
| 5490 | exit (ferror (f) || fclose (f) != 0); |
| 5491 | |
| 5492 | ; |
| 5493 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5494 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5495 | _ACEOF |
| 5496 | rm -f conftest$ac_exeext |
| 5497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5498 | (eval $ac_link) 2>&5 |
| 5499 | ac_status=$? |
| 5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5501 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5503 | (eval $ac_try) 2>&5 |
| 5504 | ac_status=$? |
| 5505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5506 | (exit $ac_status); }; }; then |
| 5507 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5509 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5510 | echo "$as_me: failed program was:" >&5 |
| 5511 | cat conftest.$ac_ext >&5 |
| 5512 | ( exit $ac_status ) |
| 5513 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5514 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5515 | { (exit 1); exit 1; }; } |
| 5516 | fi |
| 5517 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5518 | fi |
| 5519 | fi |
| 5520 | rm -f conftest.val |
| 5521 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5522 | ac_cv_sizeof_int=0 |
| 5523 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5524 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5525 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5526 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5527 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5528 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5529 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5530 | |
| 5531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5532 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5533 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5534 | if test "${ac_cv_type_long+set}" = set; then |
| 5535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5536 | else |
| 5537 | cat >conftest.$ac_ext <<_ACEOF |
| 5538 | #line $LINENO "configure" |
| 5539 | #include "confdefs.h" |
| 5540 | $ac_includes_default |
| 5541 | #ifdef F77_DUMMY_MAIN |
| 5542 | # ifdef __cplusplus |
| 5543 | extern "C" |
| 5544 | # endif |
| 5545 | int F77_DUMMY_MAIN() { return 1; } |
| 5546 | #endif |
| 5547 | int |
| 5548 | main () |
| 5549 | { |
| 5550 | if ((long *) 0) |
| 5551 | return 0; |
| 5552 | if (sizeof (long)) |
| 5553 | return 0; |
| 5554 | ; |
| 5555 | return 0; |
| 5556 | } |
| 5557 | _ACEOF |
| 5558 | rm -f conftest.$ac_objext |
| 5559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5560 | (eval $ac_compile) 2>&5 |
| 5561 | ac_status=$? |
| 5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5563 | (exit $ac_status); } && |
| 5564 | { ac_try='test -s conftest.$ac_objext' |
| 5565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5566 | (eval $ac_try) 2>&5 |
| 5567 | ac_status=$? |
| 5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5569 | (exit $ac_status); }; }; then |
| 5570 | ac_cv_type_long=yes |
| 5571 | else |
| 5572 | echo "$as_me: failed program was:" >&5 |
| 5573 | cat conftest.$ac_ext >&5 |
| 5574 | ac_cv_type_long=no |
| 5575 | fi |
| 5576 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5577 | fi |
| 5578 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5579 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5580 | |
| 5581 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5582 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5583 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5585 | else |
| 5586 | if test "$ac_cv_type_long" = yes; then |
| 5587 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5588 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5589 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5590 | # This bug is HP SR number 8606223364. |
| 5591 | if test "$cross_compiling" = yes; then |
| 5592 | # Depending upon the size, compute the lo and hi bounds. |
| 5593 | cat >conftest.$ac_ext <<_ACEOF |
| 5594 | #line $LINENO "configure" |
| 5595 | #include "confdefs.h" |
| 5596 | $ac_includes_default |
| 5597 | #ifdef F77_DUMMY_MAIN |
| 5598 | # ifdef __cplusplus |
| 5599 | extern "C" |
| 5600 | # endif |
| 5601 | int F77_DUMMY_MAIN() { return 1; } |
| 5602 | #endif |
| 5603 | int |
| 5604 | main () |
| 5605 | { |
| 5606 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5607 | test_array [0] = 0 |
| 5608 | |
| 5609 | ; |
| 5610 | return 0; |
| 5611 | } |
| 5612 | _ACEOF |
| 5613 | rm -f conftest.$ac_objext |
| 5614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5615 | (eval $ac_compile) 2>&5 |
| 5616 | ac_status=$? |
| 5617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5618 | (exit $ac_status); } && |
| 5619 | { ac_try='test -s conftest.$ac_objext' |
| 5620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5621 | (eval $ac_try) 2>&5 |
| 5622 | ac_status=$? |
| 5623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5624 | (exit $ac_status); }; }; then |
| 5625 | ac_lo=0 ac_mid=0 |
| 5626 | while :; do |
| 5627 | cat >conftest.$ac_ext <<_ACEOF |
| 5628 | #line $LINENO "configure" |
| 5629 | #include "confdefs.h" |
| 5630 | $ac_includes_default |
| 5631 | #ifdef F77_DUMMY_MAIN |
| 5632 | # ifdef __cplusplus |
| 5633 | extern "C" |
| 5634 | # endif |
| 5635 | int F77_DUMMY_MAIN() { return 1; } |
| 5636 | #endif |
| 5637 | int |
| 5638 | main () |
| 5639 | { |
| 5640 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5641 | test_array [0] = 0 |
| 5642 | |
| 5643 | ; |
| 5644 | return 0; |
| 5645 | } |
| 5646 | _ACEOF |
| 5647 | rm -f conftest.$ac_objext |
| 5648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5649 | (eval $ac_compile) 2>&5 |
| 5650 | ac_status=$? |
| 5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5652 | (exit $ac_status); } && |
| 5653 | { ac_try='test -s conftest.$ac_objext' |
| 5654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5655 | (eval $ac_try) 2>&5 |
| 5656 | ac_status=$? |
| 5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5658 | (exit $ac_status); }; }; then |
| 5659 | ac_hi=$ac_mid; break |
| 5660 | else |
| 5661 | echo "$as_me: failed program was:" >&5 |
| 5662 | cat conftest.$ac_ext >&5 |
| 5663 | ac_lo=`expr $ac_mid + 1` |
| 5664 | if test $ac_lo -le $ac_mid; then |
| 5665 | ac_lo= ac_hi= |
| 5666 | break |
| 5667 | fi |
| 5668 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5669 | fi |
| 5670 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5671 | done |
| 5672 | else |
| 5673 | echo "$as_me: failed program was:" >&5 |
| 5674 | cat conftest.$ac_ext >&5 |
| 5675 | cat >conftest.$ac_ext <<_ACEOF |
| 5676 | #line $LINENO "configure" |
| 5677 | #include "confdefs.h" |
| 5678 | $ac_includes_default |
| 5679 | #ifdef F77_DUMMY_MAIN |
| 5680 | # ifdef __cplusplus |
| 5681 | extern "C" |
| 5682 | # endif |
| 5683 | int F77_DUMMY_MAIN() { return 1; } |
| 5684 | #endif |
| 5685 | int |
| 5686 | main () |
| 5687 | { |
| 5688 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5689 | test_array [0] = 0 |
| 5690 | |
| 5691 | ; |
| 5692 | return 0; |
| 5693 | } |
| 5694 | _ACEOF |
| 5695 | rm -f conftest.$ac_objext |
| 5696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5697 | (eval $ac_compile) 2>&5 |
| 5698 | ac_status=$? |
| 5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5700 | (exit $ac_status); } && |
| 5701 | { ac_try='test -s conftest.$ac_objext' |
| 5702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5703 | (eval $ac_try) 2>&5 |
| 5704 | ac_status=$? |
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5706 | (exit $ac_status); }; }; then |
| 5707 | ac_hi=-1 ac_mid=-1 |
| 5708 | while :; do |
| 5709 | cat >conftest.$ac_ext <<_ACEOF |
| 5710 | #line $LINENO "configure" |
| 5711 | #include "confdefs.h" |
| 5712 | $ac_includes_default |
| 5713 | #ifdef F77_DUMMY_MAIN |
| 5714 | # ifdef __cplusplus |
| 5715 | extern "C" |
| 5716 | # endif |
| 5717 | int F77_DUMMY_MAIN() { return 1; } |
| 5718 | #endif |
| 5719 | int |
| 5720 | main () |
| 5721 | { |
| 5722 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5723 | test_array [0] = 0 |
| 5724 | |
| 5725 | ; |
| 5726 | return 0; |
| 5727 | } |
| 5728 | _ACEOF |
| 5729 | rm -f conftest.$ac_objext |
| 5730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5731 | (eval $ac_compile) 2>&5 |
| 5732 | ac_status=$? |
| 5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5734 | (exit $ac_status); } && |
| 5735 | { ac_try='test -s conftest.$ac_objext' |
| 5736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5737 | (eval $ac_try) 2>&5 |
| 5738 | ac_status=$? |
| 5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5740 | (exit $ac_status); }; }; then |
| 5741 | ac_lo=$ac_mid; break |
| 5742 | else |
| 5743 | echo "$as_me: failed program was:" >&5 |
| 5744 | cat conftest.$ac_ext >&5 |
| 5745 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5746 | if test $ac_mid -le $ac_hi; then |
| 5747 | ac_lo= ac_hi= |
| 5748 | break |
| 5749 | fi |
| 5750 | ac_mid=`expr 2 '*' $ac_mid` |
| 5751 | fi |
| 5752 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5753 | done |
| 5754 | else |
| 5755 | echo "$as_me: failed program was:" >&5 |
| 5756 | cat conftest.$ac_ext >&5 |
| 5757 | ac_lo= ac_hi= |
| 5758 | fi |
| 5759 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5760 | fi |
| 5761 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5762 | # Binary search between lo and hi bounds. |
| 5763 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5764 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5765 | cat >conftest.$ac_ext <<_ACEOF |
| 5766 | #line $LINENO "configure" |
| 5767 | #include "confdefs.h" |
| 5768 | $ac_includes_default |
| 5769 | #ifdef F77_DUMMY_MAIN |
| 5770 | # ifdef __cplusplus |
| 5771 | extern "C" |
| 5772 | # endif |
| 5773 | int F77_DUMMY_MAIN() { return 1; } |
| 5774 | #endif |
| 5775 | int |
| 5776 | main () |
| 5777 | { |
| 5778 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5779 | test_array [0] = 0 |
| 5780 | |
| 5781 | ; |
| 5782 | return 0; |
| 5783 | } |
| 5784 | _ACEOF |
| 5785 | rm -f conftest.$ac_objext |
| 5786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5787 | (eval $ac_compile) 2>&5 |
| 5788 | ac_status=$? |
| 5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5790 | (exit $ac_status); } && |
| 5791 | { ac_try='test -s conftest.$ac_objext' |
| 5792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5793 | (eval $ac_try) 2>&5 |
| 5794 | ac_status=$? |
| 5795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5796 | (exit $ac_status); }; }; then |
| 5797 | ac_hi=$ac_mid |
| 5798 | else |
| 5799 | echo "$as_me: failed program was:" >&5 |
| 5800 | cat conftest.$ac_ext >&5 |
| 5801 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5802 | fi |
| 5803 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5804 | done |
| 5805 | case $ac_lo in |
| 5806 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5807 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5808 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5809 | { (exit 1); exit 1; }; } ;; |
| 5810 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5811 | else |
| 5812 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5813 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5814 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5815 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5817 | cat >conftest.$ac_ext <<_ACEOF |
| 5818 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5819 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5820 | $ac_includes_default |
| 5821 | long longval () { return (long) (sizeof (long)); } |
| 5822 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5823 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5824 | #include <stdlib.h> |
| 5825 | #ifdef F77_DUMMY_MAIN |
| 5826 | # ifdef __cplusplus |
| 5827 | extern "C" |
| 5828 | # endif |
| 5829 | int F77_DUMMY_MAIN() { return 1; } |
| 5830 | #endif |
| 5831 | int |
| 5832 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5833 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5834 | |
| 5835 | FILE *f = fopen ("conftest.val", "w"); |
| 5836 | if (! f) |
| 5837 | exit (1); |
| 5838 | if (((long) (sizeof (long))) < 0) |
| 5839 | { |
| 5840 | long i = longval (); |
| 5841 | if (i != ((long) (sizeof (long)))) |
| 5842 | exit (1); |
| 5843 | fprintf (f, "%ld\n", i); |
| 5844 | } |
| 5845 | else |
| 5846 | { |
| 5847 | unsigned long i = ulongval (); |
| 5848 | if (i != ((long) (sizeof (long)))) |
| 5849 | exit (1); |
| 5850 | fprintf (f, "%lu\n", i); |
| 5851 | } |
| 5852 | exit (ferror (f) || fclose (f) != 0); |
| 5853 | |
| 5854 | ; |
| 5855 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5856 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5857 | _ACEOF |
| 5858 | rm -f conftest$ac_exeext |
| 5859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5860 | (eval $ac_link) 2>&5 |
| 5861 | ac_status=$? |
| 5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5865 | (eval $ac_try) 2>&5 |
| 5866 | ac_status=$? |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); }; }; then |
| 5869 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5871 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5872 | echo "$as_me: failed program was:" >&5 |
| 5873 | cat conftest.$ac_ext >&5 |
| 5874 | ( exit $ac_status ) |
| 5875 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5876 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5877 | { (exit 1); exit 1; }; } |
| 5878 | fi |
| 5879 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5880 | fi |
| 5881 | fi |
| 5882 | rm -f conftest.val |
| 5883 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5884 | ac_cv_sizeof_long=0 |
| 5885 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5886 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5887 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5888 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5889 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5890 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5891 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5892 | |
| 5893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5894 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5895 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5896 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5898 | else |
| 5899 | cat >conftest.$ac_ext <<_ACEOF |
| 5900 | #line $LINENO "configure" |
| 5901 | #include "confdefs.h" |
| 5902 | $ac_includes_default |
| 5903 | #ifdef F77_DUMMY_MAIN |
| 5904 | # ifdef __cplusplus |
| 5905 | extern "C" |
| 5906 | # endif |
| 5907 | int F77_DUMMY_MAIN() { return 1; } |
| 5908 | #endif |
| 5909 | int |
| 5910 | main () |
| 5911 | { |
| 5912 | if ((void * *) 0) |
| 5913 | return 0; |
| 5914 | if (sizeof (void *)) |
| 5915 | return 0; |
| 5916 | ; |
| 5917 | return 0; |
| 5918 | } |
| 5919 | _ACEOF |
| 5920 | rm -f conftest.$ac_objext |
| 5921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5922 | (eval $ac_compile) 2>&5 |
| 5923 | ac_status=$? |
| 5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5925 | (exit $ac_status); } && |
| 5926 | { ac_try='test -s conftest.$ac_objext' |
| 5927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5928 | (eval $ac_try) 2>&5 |
| 5929 | ac_status=$? |
| 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5931 | (exit $ac_status); }; }; then |
| 5932 | ac_cv_type_void_p=yes |
| 5933 | else |
| 5934 | echo "$as_me: failed program was:" >&5 |
| 5935 | cat conftest.$ac_ext >&5 |
| 5936 | ac_cv_type_void_p=no |
| 5937 | fi |
| 5938 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5939 | fi |
| 5940 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5941 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5942 | |
| 5943 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5944 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5945 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5947 | else |
| 5948 | if test "$ac_cv_type_void_p" = yes; then |
| 5949 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5950 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5951 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5952 | # This bug is HP SR number 8606223364. |
| 5953 | if test "$cross_compiling" = yes; then |
| 5954 | # Depending upon the size, compute the lo and hi bounds. |
| 5955 | cat >conftest.$ac_ext <<_ACEOF |
| 5956 | #line $LINENO "configure" |
| 5957 | #include "confdefs.h" |
| 5958 | $ac_includes_default |
| 5959 | #ifdef F77_DUMMY_MAIN |
| 5960 | # ifdef __cplusplus |
| 5961 | extern "C" |
| 5962 | # endif |
| 5963 | int F77_DUMMY_MAIN() { return 1; } |
| 5964 | #endif |
| 5965 | int |
| 5966 | main () |
| 5967 | { |
| 5968 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5969 | test_array [0] = 0 |
| 5970 | |
| 5971 | ; |
| 5972 | return 0; |
| 5973 | } |
| 5974 | _ACEOF |
| 5975 | rm -f conftest.$ac_objext |
| 5976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5977 | (eval $ac_compile) 2>&5 |
| 5978 | ac_status=$? |
| 5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5980 | (exit $ac_status); } && |
| 5981 | { ac_try='test -s conftest.$ac_objext' |
| 5982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5983 | (eval $ac_try) 2>&5 |
| 5984 | ac_status=$? |
| 5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5986 | (exit $ac_status); }; }; then |
| 5987 | ac_lo=0 ac_mid=0 |
| 5988 | while :; do |
| 5989 | cat >conftest.$ac_ext <<_ACEOF |
| 5990 | #line $LINENO "configure" |
| 5991 | #include "confdefs.h" |
| 5992 | $ac_includes_default |
| 5993 | #ifdef F77_DUMMY_MAIN |
| 5994 | # ifdef __cplusplus |
| 5995 | extern "C" |
| 5996 | # endif |
| 5997 | int F77_DUMMY_MAIN() { return 1; } |
| 5998 | #endif |
| 5999 | int |
| 6000 | main () |
| 6001 | { |
| 6002 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6003 | test_array [0] = 0 |
| 6004 | |
| 6005 | ; |
| 6006 | return 0; |
| 6007 | } |
| 6008 | _ACEOF |
| 6009 | rm -f conftest.$ac_objext |
| 6010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6011 | (eval $ac_compile) 2>&5 |
| 6012 | ac_status=$? |
| 6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6014 | (exit $ac_status); } && |
| 6015 | { ac_try='test -s conftest.$ac_objext' |
| 6016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6017 | (eval $ac_try) 2>&5 |
| 6018 | ac_status=$? |
| 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6020 | (exit $ac_status); }; }; then |
| 6021 | ac_hi=$ac_mid; break |
| 6022 | else |
| 6023 | echo "$as_me: failed program was:" >&5 |
| 6024 | cat conftest.$ac_ext >&5 |
| 6025 | ac_lo=`expr $ac_mid + 1` |
| 6026 | if test $ac_lo -le $ac_mid; then |
| 6027 | ac_lo= ac_hi= |
| 6028 | break |
| 6029 | fi |
| 6030 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6031 | fi |
| 6032 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6033 | done |
| 6034 | else |
| 6035 | echo "$as_me: failed program was:" >&5 |
| 6036 | cat conftest.$ac_ext >&5 |
| 6037 | cat >conftest.$ac_ext <<_ACEOF |
| 6038 | #line $LINENO "configure" |
| 6039 | #include "confdefs.h" |
| 6040 | $ac_includes_default |
| 6041 | #ifdef F77_DUMMY_MAIN |
| 6042 | # ifdef __cplusplus |
| 6043 | extern "C" |
| 6044 | # endif |
| 6045 | int F77_DUMMY_MAIN() { return 1; } |
| 6046 | #endif |
| 6047 | int |
| 6048 | main () |
| 6049 | { |
| 6050 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6051 | test_array [0] = 0 |
| 6052 | |
| 6053 | ; |
| 6054 | return 0; |
| 6055 | } |
| 6056 | _ACEOF |
| 6057 | rm -f conftest.$ac_objext |
| 6058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6059 | (eval $ac_compile) 2>&5 |
| 6060 | ac_status=$? |
| 6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6062 | (exit $ac_status); } && |
| 6063 | { ac_try='test -s conftest.$ac_objext' |
| 6064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6065 | (eval $ac_try) 2>&5 |
| 6066 | ac_status=$? |
| 6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6068 | (exit $ac_status); }; }; then |
| 6069 | ac_hi=-1 ac_mid=-1 |
| 6070 | while :; do |
| 6071 | cat >conftest.$ac_ext <<_ACEOF |
| 6072 | #line $LINENO "configure" |
| 6073 | #include "confdefs.h" |
| 6074 | $ac_includes_default |
| 6075 | #ifdef F77_DUMMY_MAIN |
| 6076 | # ifdef __cplusplus |
| 6077 | extern "C" |
| 6078 | # endif |
| 6079 | int F77_DUMMY_MAIN() { return 1; } |
| 6080 | #endif |
| 6081 | int |
| 6082 | main () |
| 6083 | { |
| 6084 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6085 | test_array [0] = 0 |
| 6086 | |
| 6087 | ; |
| 6088 | return 0; |
| 6089 | } |
| 6090 | _ACEOF |
| 6091 | rm -f conftest.$ac_objext |
| 6092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6093 | (eval $ac_compile) 2>&5 |
| 6094 | ac_status=$? |
| 6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6096 | (exit $ac_status); } && |
| 6097 | { ac_try='test -s conftest.$ac_objext' |
| 6098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6099 | (eval $ac_try) 2>&5 |
| 6100 | ac_status=$? |
| 6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6102 | (exit $ac_status); }; }; then |
| 6103 | ac_lo=$ac_mid; break |
| 6104 | else |
| 6105 | echo "$as_me: failed program was:" >&5 |
| 6106 | cat conftest.$ac_ext >&5 |
| 6107 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6108 | if test $ac_mid -le $ac_hi; then |
| 6109 | ac_lo= ac_hi= |
| 6110 | break |
| 6111 | fi |
| 6112 | ac_mid=`expr 2 '*' $ac_mid` |
| 6113 | fi |
| 6114 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6115 | done |
| 6116 | else |
| 6117 | echo "$as_me: failed program was:" >&5 |
| 6118 | cat conftest.$ac_ext >&5 |
| 6119 | ac_lo= ac_hi= |
| 6120 | fi |
| 6121 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6122 | fi |
| 6123 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6124 | # Binary search between lo and hi bounds. |
| 6125 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6126 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6127 | cat >conftest.$ac_ext <<_ACEOF |
| 6128 | #line $LINENO "configure" |
| 6129 | #include "confdefs.h" |
| 6130 | $ac_includes_default |
| 6131 | #ifdef F77_DUMMY_MAIN |
| 6132 | # ifdef __cplusplus |
| 6133 | extern "C" |
| 6134 | # endif |
| 6135 | int F77_DUMMY_MAIN() { return 1; } |
| 6136 | #endif |
| 6137 | int |
| 6138 | main () |
| 6139 | { |
| 6140 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6141 | test_array [0] = 0 |
| 6142 | |
| 6143 | ; |
| 6144 | return 0; |
| 6145 | } |
| 6146 | _ACEOF |
| 6147 | rm -f conftest.$ac_objext |
| 6148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6149 | (eval $ac_compile) 2>&5 |
| 6150 | ac_status=$? |
| 6151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6152 | (exit $ac_status); } && |
| 6153 | { ac_try='test -s conftest.$ac_objext' |
| 6154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6155 | (eval $ac_try) 2>&5 |
| 6156 | ac_status=$? |
| 6157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6158 | (exit $ac_status); }; }; then |
| 6159 | ac_hi=$ac_mid |
| 6160 | else |
| 6161 | echo "$as_me: failed program was:" >&5 |
| 6162 | cat conftest.$ac_ext >&5 |
| 6163 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6164 | fi |
| 6165 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6166 | done |
| 6167 | case $ac_lo in |
| 6168 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6169 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6170 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6171 | { (exit 1); exit 1; }; } ;; |
| 6172 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6173 | else |
| 6174 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6175 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6176 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6177 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6179 | cat >conftest.$ac_ext <<_ACEOF |
| 6180 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6181 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6182 | $ac_includes_default |
| 6183 | long longval () { return (long) (sizeof (void *)); } |
| 6184 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6185 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6186 | #include <stdlib.h> |
| 6187 | #ifdef F77_DUMMY_MAIN |
| 6188 | # ifdef __cplusplus |
| 6189 | extern "C" |
| 6190 | # endif |
| 6191 | int F77_DUMMY_MAIN() { return 1; } |
| 6192 | #endif |
| 6193 | int |
| 6194 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6195 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6196 | |
| 6197 | FILE *f = fopen ("conftest.val", "w"); |
| 6198 | if (! f) |
| 6199 | exit (1); |
| 6200 | if (((long) (sizeof (void *))) < 0) |
| 6201 | { |
| 6202 | long i = longval (); |
| 6203 | if (i != ((long) (sizeof (void *)))) |
| 6204 | exit (1); |
| 6205 | fprintf (f, "%ld\n", i); |
| 6206 | } |
| 6207 | else |
| 6208 | { |
| 6209 | unsigned long i = ulongval (); |
| 6210 | if (i != ((long) (sizeof (void *)))) |
| 6211 | exit (1); |
| 6212 | fprintf (f, "%lu\n", i); |
| 6213 | } |
| 6214 | exit (ferror (f) || fclose (f) != 0); |
| 6215 | |
| 6216 | ; |
| 6217 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6218 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6219 | _ACEOF |
| 6220 | rm -f conftest$ac_exeext |
| 6221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6222 | (eval $ac_link) 2>&5 |
| 6223 | ac_status=$? |
| 6224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6227 | (eval $ac_try) 2>&5 |
| 6228 | ac_status=$? |
| 6229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6230 | (exit $ac_status); }; }; then |
| 6231 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6233 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6234 | echo "$as_me: failed program was:" >&5 |
| 6235 | cat conftest.$ac_ext >&5 |
| 6236 | ( exit $ac_status ) |
| 6237 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6238 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6239 | { (exit 1); exit 1; }; } |
| 6240 | fi |
| 6241 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6242 | fi |
| 6243 | fi |
| 6244 | rm -f conftest.val |
| 6245 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6246 | ac_cv_sizeof_void_p=0 |
| 6247 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6248 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6249 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6250 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6251 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6252 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6253 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6254 | |
| 6255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6256 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6257 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6258 | if test "${ac_cv_type_char+set}" = set; then |
| 6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6260 | else |
| 6261 | cat >conftest.$ac_ext <<_ACEOF |
| 6262 | #line $LINENO "configure" |
| 6263 | #include "confdefs.h" |
| 6264 | $ac_includes_default |
| 6265 | #ifdef F77_DUMMY_MAIN |
| 6266 | # ifdef __cplusplus |
| 6267 | extern "C" |
| 6268 | # endif |
| 6269 | int F77_DUMMY_MAIN() { return 1; } |
| 6270 | #endif |
| 6271 | int |
| 6272 | main () |
| 6273 | { |
| 6274 | if ((char *) 0) |
| 6275 | return 0; |
| 6276 | if (sizeof (char)) |
| 6277 | return 0; |
| 6278 | ; |
| 6279 | return 0; |
| 6280 | } |
| 6281 | _ACEOF |
| 6282 | rm -f conftest.$ac_objext |
| 6283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6284 | (eval $ac_compile) 2>&5 |
| 6285 | ac_status=$? |
| 6286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6287 | (exit $ac_status); } && |
| 6288 | { ac_try='test -s conftest.$ac_objext' |
| 6289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6290 | (eval $ac_try) 2>&5 |
| 6291 | ac_status=$? |
| 6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6293 | (exit $ac_status); }; }; then |
| 6294 | ac_cv_type_char=yes |
| 6295 | else |
| 6296 | echo "$as_me: failed program was:" >&5 |
| 6297 | cat conftest.$ac_ext >&5 |
| 6298 | ac_cv_type_char=no |
| 6299 | fi |
| 6300 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6301 | fi |
| 6302 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6303 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6304 | |
| 6305 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6306 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6307 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6309 | else |
| 6310 | if test "$ac_cv_type_char" = yes; then |
| 6311 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6312 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6313 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6314 | # This bug is HP SR number 8606223364. |
| 6315 | if test "$cross_compiling" = yes; then |
| 6316 | # Depending upon the size, compute the lo and hi bounds. |
| 6317 | cat >conftest.$ac_ext <<_ACEOF |
| 6318 | #line $LINENO "configure" |
| 6319 | #include "confdefs.h" |
| 6320 | $ac_includes_default |
| 6321 | #ifdef F77_DUMMY_MAIN |
| 6322 | # ifdef __cplusplus |
| 6323 | extern "C" |
| 6324 | # endif |
| 6325 | int F77_DUMMY_MAIN() { return 1; } |
| 6326 | #endif |
| 6327 | int |
| 6328 | main () |
| 6329 | { |
| 6330 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6331 | test_array [0] = 0 |
| 6332 | |
| 6333 | ; |
| 6334 | return 0; |
| 6335 | } |
| 6336 | _ACEOF |
| 6337 | rm -f conftest.$ac_objext |
| 6338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6339 | (eval $ac_compile) 2>&5 |
| 6340 | ac_status=$? |
| 6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6342 | (exit $ac_status); } && |
| 6343 | { ac_try='test -s conftest.$ac_objext' |
| 6344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6345 | (eval $ac_try) 2>&5 |
| 6346 | ac_status=$? |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); }; }; then |
| 6349 | ac_lo=0 ac_mid=0 |
| 6350 | while :; do |
| 6351 | cat >conftest.$ac_ext <<_ACEOF |
| 6352 | #line $LINENO "configure" |
| 6353 | #include "confdefs.h" |
| 6354 | $ac_includes_default |
| 6355 | #ifdef F77_DUMMY_MAIN |
| 6356 | # ifdef __cplusplus |
| 6357 | extern "C" |
| 6358 | # endif |
| 6359 | int F77_DUMMY_MAIN() { return 1; } |
| 6360 | #endif |
| 6361 | int |
| 6362 | main () |
| 6363 | { |
| 6364 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6365 | test_array [0] = 0 |
| 6366 | |
| 6367 | ; |
| 6368 | return 0; |
| 6369 | } |
| 6370 | _ACEOF |
| 6371 | rm -f conftest.$ac_objext |
| 6372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6373 | (eval $ac_compile) 2>&5 |
| 6374 | ac_status=$? |
| 6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6376 | (exit $ac_status); } && |
| 6377 | { ac_try='test -s conftest.$ac_objext' |
| 6378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6379 | (eval $ac_try) 2>&5 |
| 6380 | ac_status=$? |
| 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6382 | (exit $ac_status); }; }; then |
| 6383 | ac_hi=$ac_mid; break |
| 6384 | else |
| 6385 | echo "$as_me: failed program was:" >&5 |
| 6386 | cat conftest.$ac_ext >&5 |
| 6387 | ac_lo=`expr $ac_mid + 1` |
| 6388 | if test $ac_lo -le $ac_mid; then |
| 6389 | ac_lo= ac_hi= |
| 6390 | break |
| 6391 | fi |
| 6392 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6393 | fi |
| 6394 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6395 | done |
| 6396 | else |
| 6397 | echo "$as_me: failed program was:" >&5 |
| 6398 | cat conftest.$ac_ext >&5 |
| 6399 | cat >conftest.$ac_ext <<_ACEOF |
| 6400 | #line $LINENO "configure" |
| 6401 | #include "confdefs.h" |
| 6402 | $ac_includes_default |
| 6403 | #ifdef F77_DUMMY_MAIN |
| 6404 | # ifdef __cplusplus |
| 6405 | extern "C" |
| 6406 | # endif |
| 6407 | int F77_DUMMY_MAIN() { return 1; } |
| 6408 | #endif |
| 6409 | int |
| 6410 | main () |
| 6411 | { |
| 6412 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6413 | test_array [0] = 0 |
| 6414 | |
| 6415 | ; |
| 6416 | return 0; |
| 6417 | } |
| 6418 | _ACEOF |
| 6419 | rm -f conftest.$ac_objext |
| 6420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6421 | (eval $ac_compile) 2>&5 |
| 6422 | ac_status=$? |
| 6423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6424 | (exit $ac_status); } && |
| 6425 | { ac_try='test -s conftest.$ac_objext' |
| 6426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6427 | (eval $ac_try) 2>&5 |
| 6428 | ac_status=$? |
| 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6430 | (exit $ac_status); }; }; then |
| 6431 | ac_hi=-1 ac_mid=-1 |
| 6432 | while :; do |
| 6433 | cat >conftest.$ac_ext <<_ACEOF |
| 6434 | #line $LINENO "configure" |
| 6435 | #include "confdefs.h" |
| 6436 | $ac_includes_default |
| 6437 | #ifdef F77_DUMMY_MAIN |
| 6438 | # ifdef __cplusplus |
| 6439 | extern "C" |
| 6440 | # endif |
| 6441 | int F77_DUMMY_MAIN() { return 1; } |
| 6442 | #endif |
| 6443 | int |
| 6444 | main () |
| 6445 | { |
| 6446 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6447 | test_array [0] = 0 |
| 6448 | |
| 6449 | ; |
| 6450 | return 0; |
| 6451 | } |
| 6452 | _ACEOF |
| 6453 | rm -f conftest.$ac_objext |
| 6454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6455 | (eval $ac_compile) 2>&5 |
| 6456 | ac_status=$? |
| 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6458 | (exit $ac_status); } && |
| 6459 | { ac_try='test -s conftest.$ac_objext' |
| 6460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6461 | (eval $ac_try) 2>&5 |
| 6462 | ac_status=$? |
| 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6464 | (exit $ac_status); }; }; then |
| 6465 | ac_lo=$ac_mid; break |
| 6466 | else |
| 6467 | echo "$as_me: failed program was:" >&5 |
| 6468 | cat conftest.$ac_ext >&5 |
| 6469 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6470 | if test $ac_mid -le $ac_hi; then |
| 6471 | ac_lo= ac_hi= |
| 6472 | break |
| 6473 | fi |
| 6474 | ac_mid=`expr 2 '*' $ac_mid` |
| 6475 | fi |
| 6476 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6477 | done |
| 6478 | else |
| 6479 | echo "$as_me: failed program was:" >&5 |
| 6480 | cat conftest.$ac_ext >&5 |
| 6481 | ac_lo= ac_hi= |
| 6482 | fi |
| 6483 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6484 | fi |
| 6485 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6486 | # Binary search between lo and hi bounds. |
| 6487 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6488 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6489 | cat >conftest.$ac_ext <<_ACEOF |
| 6490 | #line $LINENO "configure" |
| 6491 | #include "confdefs.h" |
| 6492 | $ac_includes_default |
| 6493 | #ifdef F77_DUMMY_MAIN |
| 6494 | # ifdef __cplusplus |
| 6495 | extern "C" |
| 6496 | # endif |
| 6497 | int F77_DUMMY_MAIN() { return 1; } |
| 6498 | #endif |
| 6499 | int |
| 6500 | main () |
| 6501 | { |
| 6502 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6503 | test_array [0] = 0 |
| 6504 | |
| 6505 | ; |
| 6506 | return 0; |
| 6507 | } |
| 6508 | _ACEOF |
| 6509 | rm -f conftest.$ac_objext |
| 6510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6511 | (eval $ac_compile) 2>&5 |
| 6512 | ac_status=$? |
| 6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6514 | (exit $ac_status); } && |
| 6515 | { ac_try='test -s conftest.$ac_objext' |
| 6516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6517 | (eval $ac_try) 2>&5 |
| 6518 | ac_status=$? |
| 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6520 | (exit $ac_status); }; }; then |
| 6521 | ac_hi=$ac_mid |
| 6522 | else |
| 6523 | echo "$as_me: failed program was:" >&5 |
| 6524 | cat conftest.$ac_ext >&5 |
| 6525 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6526 | fi |
| 6527 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6528 | done |
| 6529 | case $ac_lo in |
| 6530 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6531 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6532 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6533 | { (exit 1); exit 1; }; } ;; |
| 6534 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6535 | else |
| 6536 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6537 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6538 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6539 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6541 | cat >conftest.$ac_ext <<_ACEOF |
| 6542 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6543 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6544 | $ac_includes_default |
| 6545 | long longval () { return (long) (sizeof (char)); } |
| 6546 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6547 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6548 | #include <stdlib.h> |
| 6549 | #ifdef F77_DUMMY_MAIN |
| 6550 | # ifdef __cplusplus |
| 6551 | extern "C" |
| 6552 | # endif |
| 6553 | int F77_DUMMY_MAIN() { return 1; } |
| 6554 | #endif |
| 6555 | int |
| 6556 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6557 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6558 | |
| 6559 | FILE *f = fopen ("conftest.val", "w"); |
| 6560 | if (! f) |
| 6561 | exit (1); |
| 6562 | if (((long) (sizeof (char))) < 0) |
| 6563 | { |
| 6564 | long i = longval (); |
| 6565 | if (i != ((long) (sizeof (char)))) |
| 6566 | exit (1); |
| 6567 | fprintf (f, "%ld\n", i); |
| 6568 | } |
| 6569 | else |
| 6570 | { |
| 6571 | unsigned long i = ulongval (); |
| 6572 | if (i != ((long) (sizeof (char)))) |
| 6573 | exit (1); |
| 6574 | fprintf (f, "%lu\n", i); |
| 6575 | } |
| 6576 | exit (ferror (f) || fclose (f) != 0); |
| 6577 | |
| 6578 | ; |
| 6579 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6580 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6581 | _ACEOF |
| 6582 | rm -f conftest$ac_exeext |
| 6583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6584 | (eval $ac_link) 2>&5 |
| 6585 | ac_status=$? |
| 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6589 | (eval $ac_try) 2>&5 |
| 6590 | ac_status=$? |
| 6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6592 | (exit $ac_status); }; }; then |
| 6593 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6594 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6595 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6596 | echo "$as_me: failed program was:" >&5 |
| 6597 | cat conftest.$ac_ext >&5 |
| 6598 | ( exit $ac_status ) |
| 6599 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6600 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6601 | { (exit 1); exit 1; }; } |
| 6602 | fi |
| 6603 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6604 | fi |
| 6605 | fi |
| 6606 | rm -f conftest.val |
| 6607 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6608 | ac_cv_sizeof_char=0 |
| 6609 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6610 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6611 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6612 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6613 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6614 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6615 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6616 | |
| 6617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6619 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6620 | if test "${ac_cv_type_short+set}" = set; then |
| 6621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6622 | else |
| 6623 | cat >conftest.$ac_ext <<_ACEOF |
| 6624 | #line $LINENO "configure" |
| 6625 | #include "confdefs.h" |
| 6626 | $ac_includes_default |
| 6627 | #ifdef F77_DUMMY_MAIN |
| 6628 | # ifdef __cplusplus |
| 6629 | extern "C" |
| 6630 | # endif |
| 6631 | int F77_DUMMY_MAIN() { return 1; } |
| 6632 | #endif |
| 6633 | int |
| 6634 | main () |
| 6635 | { |
| 6636 | if ((short *) 0) |
| 6637 | return 0; |
| 6638 | if (sizeof (short)) |
| 6639 | return 0; |
| 6640 | ; |
| 6641 | return 0; |
| 6642 | } |
| 6643 | _ACEOF |
| 6644 | rm -f conftest.$ac_objext |
| 6645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6646 | (eval $ac_compile) 2>&5 |
| 6647 | ac_status=$? |
| 6648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6649 | (exit $ac_status); } && |
| 6650 | { ac_try='test -s conftest.$ac_objext' |
| 6651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6652 | (eval $ac_try) 2>&5 |
| 6653 | ac_status=$? |
| 6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6655 | (exit $ac_status); }; }; then |
| 6656 | ac_cv_type_short=yes |
| 6657 | else |
| 6658 | echo "$as_me: failed program was:" >&5 |
| 6659 | cat conftest.$ac_ext >&5 |
| 6660 | ac_cv_type_short=no |
| 6661 | fi |
| 6662 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6663 | fi |
| 6664 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6665 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6666 | |
| 6667 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6668 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6669 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6671 | else |
| 6672 | if test "$ac_cv_type_short" = yes; then |
| 6673 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6674 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6675 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6676 | # This bug is HP SR number 8606223364. |
| 6677 | if test "$cross_compiling" = yes; then |
| 6678 | # Depending upon the size, compute the lo and hi bounds. |
| 6679 | cat >conftest.$ac_ext <<_ACEOF |
| 6680 | #line $LINENO "configure" |
| 6681 | #include "confdefs.h" |
| 6682 | $ac_includes_default |
| 6683 | #ifdef F77_DUMMY_MAIN |
| 6684 | # ifdef __cplusplus |
| 6685 | extern "C" |
| 6686 | # endif |
| 6687 | int F77_DUMMY_MAIN() { return 1; } |
| 6688 | #endif |
| 6689 | int |
| 6690 | main () |
| 6691 | { |
| 6692 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6693 | test_array [0] = 0 |
| 6694 | |
| 6695 | ; |
| 6696 | return 0; |
| 6697 | } |
| 6698 | _ACEOF |
| 6699 | rm -f conftest.$ac_objext |
| 6700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6701 | (eval $ac_compile) 2>&5 |
| 6702 | ac_status=$? |
| 6703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6704 | (exit $ac_status); } && |
| 6705 | { ac_try='test -s conftest.$ac_objext' |
| 6706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6707 | (eval $ac_try) 2>&5 |
| 6708 | ac_status=$? |
| 6709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6710 | (exit $ac_status); }; }; then |
| 6711 | ac_lo=0 ac_mid=0 |
| 6712 | while :; do |
| 6713 | cat >conftest.$ac_ext <<_ACEOF |
| 6714 | #line $LINENO "configure" |
| 6715 | #include "confdefs.h" |
| 6716 | $ac_includes_default |
| 6717 | #ifdef F77_DUMMY_MAIN |
| 6718 | # ifdef __cplusplus |
| 6719 | extern "C" |
| 6720 | # endif |
| 6721 | int F77_DUMMY_MAIN() { return 1; } |
| 6722 | #endif |
| 6723 | int |
| 6724 | main () |
| 6725 | { |
| 6726 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6727 | test_array [0] = 0 |
| 6728 | |
| 6729 | ; |
| 6730 | return 0; |
| 6731 | } |
| 6732 | _ACEOF |
| 6733 | rm -f conftest.$ac_objext |
| 6734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6735 | (eval $ac_compile) 2>&5 |
| 6736 | ac_status=$? |
| 6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6738 | (exit $ac_status); } && |
| 6739 | { ac_try='test -s conftest.$ac_objext' |
| 6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6741 | (eval $ac_try) 2>&5 |
| 6742 | ac_status=$? |
| 6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6744 | (exit $ac_status); }; }; then |
| 6745 | ac_hi=$ac_mid; break |
| 6746 | else |
| 6747 | echo "$as_me: failed program was:" >&5 |
| 6748 | cat conftest.$ac_ext >&5 |
| 6749 | ac_lo=`expr $ac_mid + 1` |
| 6750 | if test $ac_lo -le $ac_mid; then |
| 6751 | ac_lo= ac_hi= |
| 6752 | break |
| 6753 | fi |
| 6754 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6755 | fi |
| 6756 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6757 | done |
| 6758 | else |
| 6759 | echo "$as_me: failed program was:" >&5 |
| 6760 | cat conftest.$ac_ext >&5 |
| 6761 | cat >conftest.$ac_ext <<_ACEOF |
| 6762 | #line $LINENO "configure" |
| 6763 | #include "confdefs.h" |
| 6764 | $ac_includes_default |
| 6765 | #ifdef F77_DUMMY_MAIN |
| 6766 | # ifdef __cplusplus |
| 6767 | extern "C" |
| 6768 | # endif |
| 6769 | int F77_DUMMY_MAIN() { return 1; } |
| 6770 | #endif |
| 6771 | int |
| 6772 | main () |
| 6773 | { |
| 6774 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6775 | test_array [0] = 0 |
| 6776 | |
| 6777 | ; |
| 6778 | return 0; |
| 6779 | } |
| 6780 | _ACEOF |
| 6781 | rm -f conftest.$ac_objext |
| 6782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6783 | (eval $ac_compile) 2>&5 |
| 6784 | ac_status=$? |
| 6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6786 | (exit $ac_status); } && |
| 6787 | { ac_try='test -s conftest.$ac_objext' |
| 6788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6789 | (eval $ac_try) 2>&5 |
| 6790 | ac_status=$? |
| 6791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6792 | (exit $ac_status); }; }; then |
| 6793 | ac_hi=-1 ac_mid=-1 |
| 6794 | while :; do |
| 6795 | cat >conftest.$ac_ext <<_ACEOF |
| 6796 | #line $LINENO "configure" |
| 6797 | #include "confdefs.h" |
| 6798 | $ac_includes_default |
| 6799 | #ifdef F77_DUMMY_MAIN |
| 6800 | # ifdef __cplusplus |
| 6801 | extern "C" |
| 6802 | # endif |
| 6803 | int F77_DUMMY_MAIN() { return 1; } |
| 6804 | #endif |
| 6805 | int |
| 6806 | main () |
| 6807 | { |
| 6808 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6809 | test_array [0] = 0 |
| 6810 | |
| 6811 | ; |
| 6812 | return 0; |
| 6813 | } |
| 6814 | _ACEOF |
| 6815 | rm -f conftest.$ac_objext |
| 6816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6817 | (eval $ac_compile) 2>&5 |
| 6818 | ac_status=$? |
| 6819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6820 | (exit $ac_status); } && |
| 6821 | { ac_try='test -s conftest.$ac_objext' |
| 6822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6823 | (eval $ac_try) 2>&5 |
| 6824 | ac_status=$? |
| 6825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6826 | (exit $ac_status); }; }; then |
| 6827 | ac_lo=$ac_mid; break |
| 6828 | else |
| 6829 | echo "$as_me: failed program was:" >&5 |
| 6830 | cat conftest.$ac_ext >&5 |
| 6831 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6832 | if test $ac_mid -le $ac_hi; then |
| 6833 | ac_lo= ac_hi= |
| 6834 | break |
| 6835 | fi |
| 6836 | ac_mid=`expr 2 '*' $ac_mid` |
| 6837 | fi |
| 6838 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6839 | done |
| 6840 | else |
| 6841 | echo "$as_me: failed program was:" >&5 |
| 6842 | cat conftest.$ac_ext >&5 |
| 6843 | ac_lo= ac_hi= |
| 6844 | fi |
| 6845 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6846 | fi |
| 6847 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6848 | # Binary search between lo and hi bounds. |
| 6849 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6850 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6851 | cat >conftest.$ac_ext <<_ACEOF |
| 6852 | #line $LINENO "configure" |
| 6853 | #include "confdefs.h" |
| 6854 | $ac_includes_default |
| 6855 | #ifdef F77_DUMMY_MAIN |
| 6856 | # ifdef __cplusplus |
| 6857 | extern "C" |
| 6858 | # endif |
| 6859 | int F77_DUMMY_MAIN() { return 1; } |
| 6860 | #endif |
| 6861 | int |
| 6862 | main () |
| 6863 | { |
| 6864 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6865 | test_array [0] = 0 |
| 6866 | |
| 6867 | ; |
| 6868 | return 0; |
| 6869 | } |
| 6870 | _ACEOF |
| 6871 | rm -f conftest.$ac_objext |
| 6872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6873 | (eval $ac_compile) 2>&5 |
| 6874 | ac_status=$? |
| 6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6876 | (exit $ac_status); } && |
| 6877 | { ac_try='test -s conftest.$ac_objext' |
| 6878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6879 | (eval $ac_try) 2>&5 |
| 6880 | ac_status=$? |
| 6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6882 | (exit $ac_status); }; }; then |
| 6883 | ac_hi=$ac_mid |
| 6884 | else |
| 6885 | echo "$as_me: failed program was:" >&5 |
| 6886 | cat conftest.$ac_ext >&5 |
| 6887 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6888 | fi |
| 6889 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6890 | done |
| 6891 | case $ac_lo in |
| 6892 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6893 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6894 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6895 | { (exit 1); exit 1; }; } ;; |
| 6896 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6897 | else |
| 6898 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6899 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6900 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6901 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6903 | cat >conftest.$ac_ext <<_ACEOF |
| 6904 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6905 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6906 | $ac_includes_default |
| 6907 | long longval () { return (long) (sizeof (short)); } |
| 6908 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6909 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6910 | #include <stdlib.h> |
| 6911 | #ifdef F77_DUMMY_MAIN |
| 6912 | # ifdef __cplusplus |
| 6913 | extern "C" |
| 6914 | # endif |
| 6915 | int F77_DUMMY_MAIN() { return 1; } |
| 6916 | #endif |
| 6917 | int |
| 6918 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6919 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6920 | |
| 6921 | FILE *f = fopen ("conftest.val", "w"); |
| 6922 | if (! f) |
| 6923 | exit (1); |
| 6924 | if (((long) (sizeof (short))) < 0) |
| 6925 | { |
| 6926 | long i = longval (); |
| 6927 | if (i != ((long) (sizeof (short)))) |
| 6928 | exit (1); |
| 6929 | fprintf (f, "%ld\n", i); |
| 6930 | } |
| 6931 | else |
| 6932 | { |
| 6933 | unsigned long i = ulongval (); |
| 6934 | if (i != ((long) (sizeof (short)))) |
| 6935 | exit (1); |
| 6936 | fprintf (f, "%lu\n", i); |
| 6937 | } |
| 6938 | exit (ferror (f) || fclose (f) != 0); |
| 6939 | |
| 6940 | ; |
| 6941 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6942 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6943 | _ACEOF |
| 6944 | rm -f conftest$ac_exeext |
| 6945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6946 | (eval $ac_link) 2>&5 |
| 6947 | ac_status=$? |
| 6948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6951 | (eval $ac_try) 2>&5 |
| 6952 | ac_status=$? |
| 6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6954 | (exit $ac_status); }; }; then |
| 6955 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6957 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6958 | echo "$as_me: failed program was:" >&5 |
| 6959 | cat conftest.$ac_ext >&5 |
| 6960 | ( exit $ac_status ) |
| 6961 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6962 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6963 | { (exit 1); exit 1; }; } |
| 6964 | fi |
| 6965 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6966 | fi |
| 6967 | fi |
| 6968 | rm -f conftest.val |
| 6969 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6970 | ac_cv_sizeof_short=0 |
| 6971 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6973 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6974 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6975 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6976 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6978 | |
| 6979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6980 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6981 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6982 | if test "${ac_cv_type_float+set}" = set; then |
| 6983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6984 | else |
| 6985 | cat >conftest.$ac_ext <<_ACEOF |
| 6986 | #line $LINENO "configure" |
| 6987 | #include "confdefs.h" |
| 6988 | $ac_includes_default |
| 6989 | #ifdef F77_DUMMY_MAIN |
| 6990 | # ifdef __cplusplus |
| 6991 | extern "C" |
| 6992 | # endif |
| 6993 | int F77_DUMMY_MAIN() { return 1; } |
| 6994 | #endif |
| 6995 | int |
| 6996 | main () |
| 6997 | { |
| 6998 | if ((float *) 0) |
| 6999 | return 0; |
| 7000 | if (sizeof (float)) |
| 7001 | return 0; |
| 7002 | ; |
| 7003 | return 0; |
| 7004 | } |
| 7005 | _ACEOF |
| 7006 | rm -f conftest.$ac_objext |
| 7007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7008 | (eval $ac_compile) 2>&5 |
| 7009 | ac_status=$? |
| 7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7011 | (exit $ac_status); } && |
| 7012 | { ac_try='test -s conftest.$ac_objext' |
| 7013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7014 | (eval $ac_try) 2>&5 |
| 7015 | ac_status=$? |
| 7016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7017 | (exit $ac_status); }; }; then |
| 7018 | ac_cv_type_float=yes |
| 7019 | else |
| 7020 | echo "$as_me: failed program was:" >&5 |
| 7021 | cat conftest.$ac_ext >&5 |
| 7022 | ac_cv_type_float=no |
| 7023 | fi |
| 7024 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7025 | fi |
| 7026 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7027 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7028 | |
| 7029 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7030 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7031 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7033 | else |
| 7034 | if test "$ac_cv_type_float" = yes; then |
| 7035 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7036 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7037 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7038 | # This bug is HP SR number 8606223364. |
| 7039 | if test "$cross_compiling" = yes; then |
| 7040 | # Depending upon the size, compute the lo and hi bounds. |
| 7041 | cat >conftest.$ac_ext <<_ACEOF |
| 7042 | #line $LINENO "configure" |
| 7043 | #include "confdefs.h" |
| 7044 | $ac_includes_default |
| 7045 | #ifdef F77_DUMMY_MAIN |
| 7046 | # ifdef __cplusplus |
| 7047 | extern "C" |
| 7048 | # endif |
| 7049 | int F77_DUMMY_MAIN() { return 1; } |
| 7050 | #endif |
| 7051 | int |
| 7052 | main () |
| 7053 | { |
| 7054 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7055 | test_array [0] = 0 |
| 7056 | |
| 7057 | ; |
| 7058 | return 0; |
| 7059 | } |
| 7060 | _ACEOF |
| 7061 | rm -f conftest.$ac_objext |
| 7062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7063 | (eval $ac_compile) 2>&5 |
| 7064 | ac_status=$? |
| 7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7066 | (exit $ac_status); } && |
| 7067 | { ac_try='test -s conftest.$ac_objext' |
| 7068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7069 | (eval $ac_try) 2>&5 |
| 7070 | ac_status=$? |
| 7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7072 | (exit $ac_status); }; }; then |
| 7073 | ac_lo=0 ac_mid=0 |
| 7074 | while :; do |
| 7075 | cat >conftest.$ac_ext <<_ACEOF |
| 7076 | #line $LINENO "configure" |
| 7077 | #include "confdefs.h" |
| 7078 | $ac_includes_default |
| 7079 | #ifdef F77_DUMMY_MAIN |
| 7080 | # ifdef __cplusplus |
| 7081 | extern "C" |
| 7082 | # endif |
| 7083 | int F77_DUMMY_MAIN() { return 1; } |
| 7084 | #endif |
| 7085 | int |
| 7086 | main () |
| 7087 | { |
| 7088 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7089 | test_array [0] = 0 |
| 7090 | |
| 7091 | ; |
| 7092 | return 0; |
| 7093 | } |
| 7094 | _ACEOF |
| 7095 | rm -f conftest.$ac_objext |
| 7096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7097 | (eval $ac_compile) 2>&5 |
| 7098 | ac_status=$? |
| 7099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7100 | (exit $ac_status); } && |
| 7101 | { ac_try='test -s conftest.$ac_objext' |
| 7102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7103 | (eval $ac_try) 2>&5 |
| 7104 | ac_status=$? |
| 7105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7106 | (exit $ac_status); }; }; then |
| 7107 | ac_hi=$ac_mid; break |
| 7108 | else |
| 7109 | echo "$as_me: failed program was:" >&5 |
| 7110 | cat conftest.$ac_ext >&5 |
| 7111 | ac_lo=`expr $ac_mid + 1` |
| 7112 | if test $ac_lo -le $ac_mid; then |
| 7113 | ac_lo= ac_hi= |
| 7114 | break |
| 7115 | fi |
| 7116 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7117 | fi |
| 7118 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7119 | done |
| 7120 | else |
| 7121 | echo "$as_me: failed program was:" >&5 |
| 7122 | cat conftest.$ac_ext >&5 |
| 7123 | cat >conftest.$ac_ext <<_ACEOF |
| 7124 | #line $LINENO "configure" |
| 7125 | #include "confdefs.h" |
| 7126 | $ac_includes_default |
| 7127 | #ifdef F77_DUMMY_MAIN |
| 7128 | # ifdef __cplusplus |
| 7129 | extern "C" |
| 7130 | # endif |
| 7131 | int F77_DUMMY_MAIN() { return 1; } |
| 7132 | #endif |
| 7133 | int |
| 7134 | main () |
| 7135 | { |
| 7136 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7137 | test_array [0] = 0 |
| 7138 | |
| 7139 | ; |
| 7140 | return 0; |
| 7141 | } |
| 7142 | _ACEOF |
| 7143 | rm -f conftest.$ac_objext |
| 7144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7145 | (eval $ac_compile) 2>&5 |
| 7146 | ac_status=$? |
| 7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7148 | (exit $ac_status); } && |
| 7149 | { ac_try='test -s conftest.$ac_objext' |
| 7150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7151 | (eval $ac_try) 2>&5 |
| 7152 | ac_status=$? |
| 7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7154 | (exit $ac_status); }; }; then |
| 7155 | ac_hi=-1 ac_mid=-1 |
| 7156 | while :; do |
| 7157 | cat >conftest.$ac_ext <<_ACEOF |
| 7158 | #line $LINENO "configure" |
| 7159 | #include "confdefs.h" |
| 7160 | $ac_includes_default |
| 7161 | #ifdef F77_DUMMY_MAIN |
| 7162 | # ifdef __cplusplus |
| 7163 | extern "C" |
| 7164 | # endif |
| 7165 | int F77_DUMMY_MAIN() { return 1; } |
| 7166 | #endif |
| 7167 | int |
| 7168 | main () |
| 7169 | { |
| 7170 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7171 | test_array [0] = 0 |
| 7172 | |
| 7173 | ; |
| 7174 | return 0; |
| 7175 | } |
| 7176 | _ACEOF |
| 7177 | rm -f conftest.$ac_objext |
| 7178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7179 | (eval $ac_compile) 2>&5 |
| 7180 | ac_status=$? |
| 7181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7182 | (exit $ac_status); } && |
| 7183 | { ac_try='test -s conftest.$ac_objext' |
| 7184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7185 | (eval $ac_try) 2>&5 |
| 7186 | ac_status=$? |
| 7187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7188 | (exit $ac_status); }; }; then |
| 7189 | ac_lo=$ac_mid; break |
| 7190 | else |
| 7191 | echo "$as_me: failed program was:" >&5 |
| 7192 | cat conftest.$ac_ext >&5 |
| 7193 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7194 | if test $ac_mid -le $ac_hi; then |
| 7195 | ac_lo= ac_hi= |
| 7196 | break |
| 7197 | fi |
| 7198 | ac_mid=`expr 2 '*' $ac_mid` |
| 7199 | fi |
| 7200 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7201 | done |
| 7202 | else |
| 7203 | echo "$as_me: failed program was:" >&5 |
| 7204 | cat conftest.$ac_ext >&5 |
| 7205 | ac_lo= ac_hi= |
| 7206 | fi |
| 7207 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7208 | fi |
| 7209 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7210 | # Binary search between lo and hi bounds. |
| 7211 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7212 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7213 | cat >conftest.$ac_ext <<_ACEOF |
| 7214 | #line $LINENO "configure" |
| 7215 | #include "confdefs.h" |
| 7216 | $ac_includes_default |
| 7217 | #ifdef F77_DUMMY_MAIN |
| 7218 | # ifdef __cplusplus |
| 7219 | extern "C" |
| 7220 | # endif |
| 7221 | int F77_DUMMY_MAIN() { return 1; } |
| 7222 | #endif |
| 7223 | int |
| 7224 | main () |
| 7225 | { |
| 7226 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7227 | test_array [0] = 0 |
| 7228 | |
| 7229 | ; |
| 7230 | return 0; |
| 7231 | } |
| 7232 | _ACEOF |
| 7233 | rm -f conftest.$ac_objext |
| 7234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7235 | (eval $ac_compile) 2>&5 |
| 7236 | ac_status=$? |
| 7237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7238 | (exit $ac_status); } && |
| 7239 | { ac_try='test -s conftest.$ac_objext' |
| 7240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7241 | (eval $ac_try) 2>&5 |
| 7242 | ac_status=$? |
| 7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7244 | (exit $ac_status); }; }; then |
| 7245 | ac_hi=$ac_mid |
| 7246 | else |
| 7247 | echo "$as_me: failed program was:" >&5 |
| 7248 | cat conftest.$ac_ext >&5 |
| 7249 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7250 | fi |
| 7251 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7252 | done |
| 7253 | case $ac_lo in |
| 7254 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7255 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7256 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7257 | { (exit 1); exit 1; }; } ;; |
| 7258 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7259 | else |
| 7260 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7261 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7262 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7263 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7265 | cat >conftest.$ac_ext <<_ACEOF |
| 7266 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7267 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7268 | $ac_includes_default |
| 7269 | long longval () { return (long) (sizeof (float)); } |
| 7270 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7271 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7272 | #include <stdlib.h> |
| 7273 | #ifdef F77_DUMMY_MAIN |
| 7274 | # ifdef __cplusplus |
| 7275 | extern "C" |
| 7276 | # endif |
| 7277 | int F77_DUMMY_MAIN() { return 1; } |
| 7278 | #endif |
| 7279 | int |
| 7280 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7281 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7282 | |
| 7283 | FILE *f = fopen ("conftest.val", "w"); |
| 7284 | if (! f) |
| 7285 | exit (1); |
| 7286 | if (((long) (sizeof (float))) < 0) |
| 7287 | { |
| 7288 | long i = longval (); |
| 7289 | if (i != ((long) (sizeof (float)))) |
| 7290 | exit (1); |
| 7291 | fprintf (f, "%ld\n", i); |
| 7292 | } |
| 7293 | else |
| 7294 | { |
| 7295 | unsigned long i = ulongval (); |
| 7296 | if (i != ((long) (sizeof (float)))) |
| 7297 | exit (1); |
| 7298 | fprintf (f, "%lu\n", i); |
| 7299 | } |
| 7300 | exit (ferror (f) || fclose (f) != 0); |
| 7301 | |
| 7302 | ; |
| 7303 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7304 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7305 | _ACEOF |
| 7306 | rm -f conftest$ac_exeext |
| 7307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7308 | (eval $ac_link) 2>&5 |
| 7309 | ac_status=$? |
| 7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7313 | (eval $ac_try) 2>&5 |
| 7314 | ac_status=$? |
| 7315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7316 | (exit $ac_status); }; }; then |
| 7317 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7319 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7320 | echo "$as_me: failed program was:" >&5 |
| 7321 | cat conftest.$ac_ext >&5 |
| 7322 | ( exit $ac_status ) |
| 7323 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7324 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7325 | { (exit 1); exit 1; }; } |
| 7326 | fi |
| 7327 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7328 | fi |
| 7329 | fi |
| 7330 | rm -f conftest.val |
| 7331 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7332 | ac_cv_sizeof_float=0 |
| 7333 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7334 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7335 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7336 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7337 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7338 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7339 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7340 | |
| 7341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7342 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7343 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7344 | if test "${ac_cv_type_double+set}" = set; then |
| 7345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7346 | else |
| 7347 | cat >conftest.$ac_ext <<_ACEOF |
| 7348 | #line $LINENO "configure" |
| 7349 | #include "confdefs.h" |
| 7350 | $ac_includes_default |
| 7351 | #ifdef F77_DUMMY_MAIN |
| 7352 | # ifdef __cplusplus |
| 7353 | extern "C" |
| 7354 | # endif |
| 7355 | int F77_DUMMY_MAIN() { return 1; } |
| 7356 | #endif |
| 7357 | int |
| 7358 | main () |
| 7359 | { |
| 7360 | if ((double *) 0) |
| 7361 | return 0; |
| 7362 | if (sizeof (double)) |
| 7363 | return 0; |
| 7364 | ; |
| 7365 | return 0; |
| 7366 | } |
| 7367 | _ACEOF |
| 7368 | rm -f conftest.$ac_objext |
| 7369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7370 | (eval $ac_compile) 2>&5 |
| 7371 | ac_status=$? |
| 7372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7373 | (exit $ac_status); } && |
| 7374 | { ac_try='test -s conftest.$ac_objext' |
| 7375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7376 | (eval $ac_try) 2>&5 |
| 7377 | ac_status=$? |
| 7378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7379 | (exit $ac_status); }; }; then |
| 7380 | ac_cv_type_double=yes |
| 7381 | else |
| 7382 | echo "$as_me: failed program was:" >&5 |
| 7383 | cat conftest.$ac_ext >&5 |
| 7384 | ac_cv_type_double=no |
| 7385 | fi |
| 7386 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7387 | fi |
| 7388 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7389 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7390 | |
| 7391 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7392 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7393 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7395 | else |
| 7396 | if test "$ac_cv_type_double" = yes; then |
| 7397 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7398 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7399 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7400 | # This bug is HP SR number 8606223364. |
| 7401 | if test "$cross_compiling" = yes; then |
| 7402 | # Depending upon the size, compute the lo and hi bounds. |
| 7403 | cat >conftest.$ac_ext <<_ACEOF |
| 7404 | #line $LINENO "configure" |
| 7405 | #include "confdefs.h" |
| 7406 | $ac_includes_default |
| 7407 | #ifdef F77_DUMMY_MAIN |
| 7408 | # ifdef __cplusplus |
| 7409 | extern "C" |
| 7410 | # endif |
| 7411 | int F77_DUMMY_MAIN() { return 1; } |
| 7412 | #endif |
| 7413 | int |
| 7414 | main () |
| 7415 | { |
| 7416 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7417 | test_array [0] = 0 |
| 7418 | |
| 7419 | ; |
| 7420 | return 0; |
| 7421 | } |
| 7422 | _ACEOF |
| 7423 | rm -f conftest.$ac_objext |
| 7424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7425 | (eval $ac_compile) 2>&5 |
| 7426 | ac_status=$? |
| 7427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7428 | (exit $ac_status); } && |
| 7429 | { ac_try='test -s conftest.$ac_objext' |
| 7430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7431 | (eval $ac_try) 2>&5 |
| 7432 | ac_status=$? |
| 7433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7434 | (exit $ac_status); }; }; then |
| 7435 | ac_lo=0 ac_mid=0 |
| 7436 | while :; do |
| 7437 | cat >conftest.$ac_ext <<_ACEOF |
| 7438 | #line $LINENO "configure" |
| 7439 | #include "confdefs.h" |
| 7440 | $ac_includes_default |
| 7441 | #ifdef F77_DUMMY_MAIN |
| 7442 | # ifdef __cplusplus |
| 7443 | extern "C" |
| 7444 | # endif |
| 7445 | int F77_DUMMY_MAIN() { return 1; } |
| 7446 | #endif |
| 7447 | int |
| 7448 | main () |
| 7449 | { |
| 7450 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7451 | test_array [0] = 0 |
| 7452 | |
| 7453 | ; |
| 7454 | return 0; |
| 7455 | } |
| 7456 | _ACEOF |
| 7457 | rm -f conftest.$ac_objext |
| 7458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7459 | (eval $ac_compile) 2>&5 |
| 7460 | ac_status=$? |
| 7461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7462 | (exit $ac_status); } && |
| 7463 | { ac_try='test -s conftest.$ac_objext' |
| 7464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7465 | (eval $ac_try) 2>&5 |
| 7466 | ac_status=$? |
| 7467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7468 | (exit $ac_status); }; }; then |
| 7469 | ac_hi=$ac_mid; break |
| 7470 | else |
| 7471 | echo "$as_me: failed program was:" >&5 |
| 7472 | cat conftest.$ac_ext >&5 |
| 7473 | ac_lo=`expr $ac_mid + 1` |
| 7474 | if test $ac_lo -le $ac_mid; then |
| 7475 | ac_lo= ac_hi= |
| 7476 | break |
| 7477 | fi |
| 7478 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7479 | fi |
| 7480 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7481 | done |
| 7482 | else |
| 7483 | echo "$as_me: failed program was:" >&5 |
| 7484 | cat conftest.$ac_ext >&5 |
| 7485 | cat >conftest.$ac_ext <<_ACEOF |
| 7486 | #line $LINENO "configure" |
| 7487 | #include "confdefs.h" |
| 7488 | $ac_includes_default |
| 7489 | #ifdef F77_DUMMY_MAIN |
| 7490 | # ifdef __cplusplus |
| 7491 | extern "C" |
| 7492 | # endif |
| 7493 | int F77_DUMMY_MAIN() { return 1; } |
| 7494 | #endif |
| 7495 | int |
| 7496 | main () |
| 7497 | { |
| 7498 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7499 | test_array [0] = 0 |
| 7500 | |
| 7501 | ; |
| 7502 | return 0; |
| 7503 | } |
| 7504 | _ACEOF |
| 7505 | rm -f conftest.$ac_objext |
| 7506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7507 | (eval $ac_compile) 2>&5 |
| 7508 | ac_status=$? |
| 7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7510 | (exit $ac_status); } && |
| 7511 | { ac_try='test -s conftest.$ac_objext' |
| 7512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7513 | (eval $ac_try) 2>&5 |
| 7514 | ac_status=$? |
| 7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7516 | (exit $ac_status); }; }; then |
| 7517 | ac_hi=-1 ac_mid=-1 |
| 7518 | while :; do |
| 7519 | cat >conftest.$ac_ext <<_ACEOF |
| 7520 | #line $LINENO "configure" |
| 7521 | #include "confdefs.h" |
| 7522 | $ac_includes_default |
| 7523 | #ifdef F77_DUMMY_MAIN |
| 7524 | # ifdef __cplusplus |
| 7525 | extern "C" |
| 7526 | # endif |
| 7527 | int F77_DUMMY_MAIN() { return 1; } |
| 7528 | #endif |
| 7529 | int |
| 7530 | main () |
| 7531 | { |
| 7532 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7533 | test_array [0] = 0 |
| 7534 | |
| 7535 | ; |
| 7536 | return 0; |
| 7537 | } |
| 7538 | _ACEOF |
| 7539 | rm -f conftest.$ac_objext |
| 7540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7541 | (eval $ac_compile) 2>&5 |
| 7542 | ac_status=$? |
| 7543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7544 | (exit $ac_status); } && |
| 7545 | { ac_try='test -s conftest.$ac_objext' |
| 7546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7547 | (eval $ac_try) 2>&5 |
| 7548 | ac_status=$? |
| 7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7550 | (exit $ac_status); }; }; then |
| 7551 | ac_lo=$ac_mid; break |
| 7552 | else |
| 7553 | echo "$as_me: failed program was:" >&5 |
| 7554 | cat conftest.$ac_ext >&5 |
| 7555 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7556 | if test $ac_mid -le $ac_hi; then |
| 7557 | ac_lo= ac_hi= |
| 7558 | break |
| 7559 | fi |
| 7560 | ac_mid=`expr 2 '*' $ac_mid` |
| 7561 | fi |
| 7562 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7563 | done |
| 7564 | else |
| 7565 | echo "$as_me: failed program was:" >&5 |
| 7566 | cat conftest.$ac_ext >&5 |
| 7567 | ac_lo= ac_hi= |
| 7568 | fi |
| 7569 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7570 | fi |
| 7571 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7572 | # Binary search between lo and hi bounds. |
| 7573 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7574 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7575 | cat >conftest.$ac_ext <<_ACEOF |
| 7576 | #line $LINENO "configure" |
| 7577 | #include "confdefs.h" |
| 7578 | $ac_includes_default |
| 7579 | #ifdef F77_DUMMY_MAIN |
| 7580 | # ifdef __cplusplus |
| 7581 | extern "C" |
| 7582 | # endif |
| 7583 | int F77_DUMMY_MAIN() { return 1; } |
| 7584 | #endif |
| 7585 | int |
| 7586 | main () |
| 7587 | { |
| 7588 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7589 | test_array [0] = 0 |
| 7590 | |
| 7591 | ; |
| 7592 | return 0; |
| 7593 | } |
| 7594 | _ACEOF |
| 7595 | rm -f conftest.$ac_objext |
| 7596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7597 | (eval $ac_compile) 2>&5 |
| 7598 | ac_status=$? |
| 7599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7600 | (exit $ac_status); } && |
| 7601 | { ac_try='test -s conftest.$ac_objext' |
| 7602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7603 | (eval $ac_try) 2>&5 |
| 7604 | ac_status=$? |
| 7605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7606 | (exit $ac_status); }; }; then |
| 7607 | ac_hi=$ac_mid |
| 7608 | else |
| 7609 | echo "$as_me: failed program was:" >&5 |
| 7610 | cat conftest.$ac_ext >&5 |
| 7611 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7612 | fi |
| 7613 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7614 | done |
| 7615 | case $ac_lo in |
| 7616 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7617 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7618 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7619 | { (exit 1); exit 1; }; } ;; |
| 7620 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7621 | else |
| 7622 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7623 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7624 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7625 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7627 | cat >conftest.$ac_ext <<_ACEOF |
| 7628 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7629 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7630 | $ac_includes_default |
| 7631 | long longval () { return (long) (sizeof (double)); } |
| 7632 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7633 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | #include <stdlib.h> |
| 7635 | #ifdef F77_DUMMY_MAIN |
| 7636 | # ifdef __cplusplus |
| 7637 | extern "C" |
| 7638 | # endif |
| 7639 | int F77_DUMMY_MAIN() { return 1; } |
| 7640 | #endif |
| 7641 | int |
| 7642 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7643 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7644 | |
| 7645 | FILE *f = fopen ("conftest.val", "w"); |
| 7646 | if (! f) |
| 7647 | exit (1); |
| 7648 | if (((long) (sizeof (double))) < 0) |
| 7649 | { |
| 7650 | long i = longval (); |
| 7651 | if (i != ((long) (sizeof (double)))) |
| 7652 | exit (1); |
| 7653 | fprintf (f, "%ld\n", i); |
| 7654 | } |
| 7655 | else |
| 7656 | { |
| 7657 | unsigned long i = ulongval (); |
| 7658 | if (i != ((long) (sizeof (double)))) |
| 7659 | exit (1); |
| 7660 | fprintf (f, "%lu\n", i); |
| 7661 | } |
| 7662 | exit (ferror (f) || fclose (f) != 0); |
| 7663 | |
| 7664 | ; |
| 7665 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7666 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7667 | _ACEOF |
| 7668 | rm -f conftest$ac_exeext |
| 7669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7670 | (eval $ac_link) 2>&5 |
| 7671 | ac_status=$? |
| 7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7675 | (eval $ac_try) 2>&5 |
| 7676 | ac_status=$? |
| 7677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7678 | (exit $ac_status); }; }; then |
| 7679 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7680 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7681 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7682 | echo "$as_me: failed program was:" >&5 |
| 7683 | cat conftest.$ac_ext >&5 |
| 7684 | ( exit $ac_status ) |
| 7685 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7686 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7687 | { (exit 1); exit 1; }; } |
| 7688 | fi |
| 7689 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7690 | fi |
| 7691 | fi |
| 7692 | rm -f conftest.val |
| 7693 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7694 | ac_cv_sizeof_double=0 |
| 7695 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7696 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7697 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7698 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7699 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7700 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7701 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7702 | |
| 7703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7705 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7706 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7708 | else |
| 7709 | cat >conftest.$ac_ext <<_ACEOF |
| 7710 | #line $LINENO "configure" |
| 7711 | #include "confdefs.h" |
| 7712 | $ac_includes_default |
| 7713 | #ifdef F77_DUMMY_MAIN |
| 7714 | # ifdef __cplusplus |
| 7715 | extern "C" |
| 7716 | # endif |
| 7717 | int F77_DUMMY_MAIN() { return 1; } |
| 7718 | #endif |
| 7719 | int |
| 7720 | main () |
| 7721 | { |
| 7722 | if ((fpos_t *) 0) |
| 7723 | return 0; |
| 7724 | if (sizeof (fpos_t)) |
| 7725 | return 0; |
| 7726 | ; |
| 7727 | return 0; |
| 7728 | } |
| 7729 | _ACEOF |
| 7730 | rm -f conftest.$ac_objext |
| 7731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7732 | (eval $ac_compile) 2>&5 |
| 7733 | ac_status=$? |
| 7734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7735 | (exit $ac_status); } && |
| 7736 | { ac_try='test -s conftest.$ac_objext' |
| 7737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7738 | (eval $ac_try) 2>&5 |
| 7739 | ac_status=$? |
| 7740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7741 | (exit $ac_status); }; }; then |
| 7742 | ac_cv_type_fpos_t=yes |
| 7743 | else |
| 7744 | echo "$as_me: failed program was:" >&5 |
| 7745 | cat conftest.$ac_ext >&5 |
| 7746 | ac_cv_type_fpos_t=no |
| 7747 | fi |
| 7748 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7749 | fi |
| 7750 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7751 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7752 | |
| 7753 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7754 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7755 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7757 | else |
| 7758 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7759 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7760 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7761 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7762 | # This bug is HP SR number 8606223364. |
| 7763 | if test "$cross_compiling" = yes; then |
| 7764 | # Depending upon the size, compute the lo and hi bounds. |
| 7765 | cat >conftest.$ac_ext <<_ACEOF |
| 7766 | #line $LINENO "configure" |
| 7767 | #include "confdefs.h" |
| 7768 | $ac_includes_default |
| 7769 | #ifdef F77_DUMMY_MAIN |
| 7770 | # ifdef __cplusplus |
| 7771 | extern "C" |
| 7772 | # endif |
| 7773 | int F77_DUMMY_MAIN() { return 1; } |
| 7774 | #endif |
| 7775 | int |
| 7776 | main () |
| 7777 | { |
| 7778 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7779 | test_array [0] = 0 |
| 7780 | |
| 7781 | ; |
| 7782 | return 0; |
| 7783 | } |
| 7784 | _ACEOF |
| 7785 | rm -f conftest.$ac_objext |
| 7786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7787 | (eval $ac_compile) 2>&5 |
| 7788 | ac_status=$? |
| 7789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7790 | (exit $ac_status); } && |
| 7791 | { ac_try='test -s conftest.$ac_objext' |
| 7792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7793 | (eval $ac_try) 2>&5 |
| 7794 | ac_status=$? |
| 7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7796 | (exit $ac_status); }; }; then |
| 7797 | ac_lo=0 ac_mid=0 |
| 7798 | while :; do |
| 7799 | cat >conftest.$ac_ext <<_ACEOF |
| 7800 | #line $LINENO "configure" |
| 7801 | #include "confdefs.h" |
| 7802 | $ac_includes_default |
| 7803 | #ifdef F77_DUMMY_MAIN |
| 7804 | # ifdef __cplusplus |
| 7805 | extern "C" |
| 7806 | # endif |
| 7807 | int F77_DUMMY_MAIN() { return 1; } |
| 7808 | #endif |
| 7809 | int |
| 7810 | main () |
| 7811 | { |
| 7812 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7813 | test_array [0] = 0 |
| 7814 | |
| 7815 | ; |
| 7816 | return 0; |
| 7817 | } |
| 7818 | _ACEOF |
| 7819 | rm -f conftest.$ac_objext |
| 7820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7821 | (eval $ac_compile) 2>&5 |
| 7822 | ac_status=$? |
| 7823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7824 | (exit $ac_status); } && |
| 7825 | { ac_try='test -s conftest.$ac_objext' |
| 7826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7827 | (eval $ac_try) 2>&5 |
| 7828 | ac_status=$? |
| 7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7830 | (exit $ac_status); }; }; then |
| 7831 | ac_hi=$ac_mid; break |
| 7832 | else |
| 7833 | echo "$as_me: failed program was:" >&5 |
| 7834 | cat conftest.$ac_ext >&5 |
| 7835 | ac_lo=`expr $ac_mid + 1` |
| 7836 | if test $ac_lo -le $ac_mid; then |
| 7837 | ac_lo= ac_hi= |
| 7838 | break |
| 7839 | fi |
| 7840 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7841 | fi |
| 7842 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7843 | done |
| 7844 | else |
| 7845 | echo "$as_me: failed program was:" >&5 |
| 7846 | cat conftest.$ac_ext >&5 |
| 7847 | cat >conftest.$ac_ext <<_ACEOF |
| 7848 | #line $LINENO "configure" |
| 7849 | #include "confdefs.h" |
| 7850 | $ac_includes_default |
| 7851 | #ifdef F77_DUMMY_MAIN |
| 7852 | # ifdef __cplusplus |
| 7853 | extern "C" |
| 7854 | # endif |
| 7855 | int F77_DUMMY_MAIN() { return 1; } |
| 7856 | #endif |
| 7857 | int |
| 7858 | main () |
| 7859 | { |
| 7860 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7861 | test_array [0] = 0 |
| 7862 | |
| 7863 | ; |
| 7864 | return 0; |
| 7865 | } |
| 7866 | _ACEOF |
| 7867 | rm -f conftest.$ac_objext |
| 7868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7869 | (eval $ac_compile) 2>&5 |
| 7870 | ac_status=$? |
| 7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7872 | (exit $ac_status); } && |
| 7873 | { ac_try='test -s conftest.$ac_objext' |
| 7874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7875 | (eval $ac_try) 2>&5 |
| 7876 | ac_status=$? |
| 7877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7878 | (exit $ac_status); }; }; then |
| 7879 | ac_hi=-1 ac_mid=-1 |
| 7880 | while :; do |
| 7881 | cat >conftest.$ac_ext <<_ACEOF |
| 7882 | #line $LINENO "configure" |
| 7883 | #include "confdefs.h" |
| 7884 | $ac_includes_default |
| 7885 | #ifdef F77_DUMMY_MAIN |
| 7886 | # ifdef __cplusplus |
| 7887 | extern "C" |
| 7888 | # endif |
| 7889 | int F77_DUMMY_MAIN() { return 1; } |
| 7890 | #endif |
| 7891 | int |
| 7892 | main () |
| 7893 | { |
| 7894 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7895 | test_array [0] = 0 |
| 7896 | |
| 7897 | ; |
| 7898 | return 0; |
| 7899 | } |
| 7900 | _ACEOF |
| 7901 | rm -f conftest.$ac_objext |
| 7902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7903 | (eval $ac_compile) 2>&5 |
| 7904 | ac_status=$? |
| 7905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7906 | (exit $ac_status); } && |
| 7907 | { ac_try='test -s conftest.$ac_objext' |
| 7908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7909 | (eval $ac_try) 2>&5 |
| 7910 | ac_status=$? |
| 7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7912 | (exit $ac_status); }; }; then |
| 7913 | ac_lo=$ac_mid; break |
| 7914 | else |
| 7915 | echo "$as_me: failed program was:" >&5 |
| 7916 | cat conftest.$ac_ext >&5 |
| 7917 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7918 | if test $ac_mid -le $ac_hi; then |
| 7919 | ac_lo= ac_hi= |
| 7920 | break |
| 7921 | fi |
| 7922 | ac_mid=`expr 2 '*' $ac_mid` |
| 7923 | fi |
| 7924 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7925 | done |
| 7926 | else |
| 7927 | echo "$as_me: failed program was:" >&5 |
| 7928 | cat conftest.$ac_ext >&5 |
| 7929 | ac_lo= ac_hi= |
| 7930 | fi |
| 7931 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7932 | fi |
| 7933 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7934 | # Binary search between lo and hi bounds. |
| 7935 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7936 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7937 | cat >conftest.$ac_ext <<_ACEOF |
| 7938 | #line $LINENO "configure" |
| 7939 | #include "confdefs.h" |
| 7940 | $ac_includes_default |
| 7941 | #ifdef F77_DUMMY_MAIN |
| 7942 | # ifdef __cplusplus |
| 7943 | extern "C" |
| 7944 | # endif |
| 7945 | int F77_DUMMY_MAIN() { return 1; } |
| 7946 | #endif |
| 7947 | int |
| 7948 | main () |
| 7949 | { |
| 7950 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7951 | test_array [0] = 0 |
| 7952 | |
| 7953 | ; |
| 7954 | return 0; |
| 7955 | } |
| 7956 | _ACEOF |
| 7957 | rm -f conftest.$ac_objext |
| 7958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7959 | (eval $ac_compile) 2>&5 |
| 7960 | ac_status=$? |
| 7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7962 | (exit $ac_status); } && |
| 7963 | { ac_try='test -s conftest.$ac_objext' |
| 7964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7965 | (eval $ac_try) 2>&5 |
| 7966 | ac_status=$? |
| 7967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7968 | (exit $ac_status); }; }; then |
| 7969 | ac_hi=$ac_mid |
| 7970 | else |
| 7971 | echo "$as_me: failed program was:" >&5 |
| 7972 | cat conftest.$ac_ext >&5 |
| 7973 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7974 | fi |
| 7975 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7976 | done |
| 7977 | case $ac_lo in |
| 7978 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7979 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7980 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7981 | { (exit 1); exit 1; }; } ;; |
| 7982 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7983 | else |
| 7984 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7985 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7986 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7987 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 | cat >conftest.$ac_ext <<_ACEOF |
| 7990 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7991 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7992 | $ac_includes_default |
| 7993 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7994 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7995 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | #include <stdlib.h> |
| 7997 | #ifdef F77_DUMMY_MAIN |
| 7998 | # ifdef __cplusplus |
| 7999 | extern "C" |
| 8000 | # endif |
| 8001 | int F77_DUMMY_MAIN() { return 1; } |
| 8002 | #endif |
| 8003 | int |
| 8004 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8005 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | |
| 8007 | FILE *f = fopen ("conftest.val", "w"); |
| 8008 | if (! f) |
| 8009 | exit (1); |
| 8010 | if (((long) (sizeof (fpos_t))) < 0) |
| 8011 | { |
| 8012 | long i = longval (); |
| 8013 | if (i != ((long) (sizeof (fpos_t)))) |
| 8014 | exit (1); |
| 8015 | fprintf (f, "%ld\n", i); |
| 8016 | } |
| 8017 | else |
| 8018 | { |
| 8019 | unsigned long i = ulongval (); |
| 8020 | if (i != ((long) (sizeof (fpos_t)))) |
| 8021 | exit (1); |
| 8022 | fprintf (f, "%lu\n", i); |
| 8023 | } |
| 8024 | exit (ferror (f) || fclose (f) != 0); |
| 8025 | |
| 8026 | ; |
| 8027 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8028 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8029 | _ACEOF |
| 8030 | rm -f conftest$ac_exeext |
| 8031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8032 | (eval $ac_link) 2>&5 |
| 8033 | ac_status=$? |
| 8034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8035 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8037 | (eval $ac_try) 2>&5 |
| 8038 | ac_status=$? |
| 8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8040 | (exit $ac_status); }; }; then |
| 8041 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8043 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8044 | echo "$as_me: failed program was:" >&5 |
| 8045 | cat conftest.$ac_ext >&5 |
| 8046 | ( exit $ac_status ) |
| 8047 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8048 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8049 | { (exit 1); exit 1; }; } |
| 8050 | fi |
| 8051 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8052 | fi |
| 8053 | fi |
| 8054 | rm -f conftest.val |
| 8055 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8056 | ac_cv_sizeof_fpos_t=0 |
| 8057 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8059 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8060 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8061 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8062 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8063 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8064 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8065 | |
| 8066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8068 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8069 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8070 | cat >conftest.$ac_ext <<_ACEOF |
| 8071 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8072 | #include "confdefs.h" |
| 8073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8074 | #ifdef F77_DUMMY_MAIN |
| 8075 | # ifdef __cplusplus |
| 8076 | extern "C" |
| 8077 | # endif |
| 8078 | int F77_DUMMY_MAIN() { return 1; } |
| 8079 | #endif |
| 8080 | int |
| 8081 | main () |
| 8082 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8083 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | ; |
| 8085 | return 0; |
| 8086 | } |
| 8087 | _ACEOF |
| 8088 | rm -f conftest.$ac_objext |
| 8089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8090 | (eval $ac_compile) 2>&5 |
| 8091 | ac_status=$? |
| 8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8093 | (exit $ac_status); } && |
| 8094 | { ac_try='test -s conftest.$ac_objext' |
| 8095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8096 | (eval $ac_try) 2>&5 |
| 8097 | ac_status=$? |
| 8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8099 | (exit $ac_status); }; }; then |
| 8100 | |
| 8101 | |
| 8102 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8103 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 | _ACEOF |
| 8105 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8106 | have_long_long=yes |
| 8107 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8109 | echo "$as_me: failed program was:" >&5 |
| 8110 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8111 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8112 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8113 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8114 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8115 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8117 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8118 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8120 | else |
| 8121 | cat >conftest.$ac_ext <<_ACEOF |
| 8122 | #line $LINENO "configure" |
| 8123 | #include "confdefs.h" |
| 8124 | $ac_includes_default |
| 8125 | #ifdef F77_DUMMY_MAIN |
| 8126 | # ifdef __cplusplus |
| 8127 | extern "C" |
| 8128 | # endif |
| 8129 | int F77_DUMMY_MAIN() { return 1; } |
| 8130 | #endif |
| 8131 | int |
| 8132 | main () |
| 8133 | { |
| 8134 | if ((long long *) 0) |
| 8135 | return 0; |
| 8136 | if (sizeof (long long)) |
| 8137 | return 0; |
| 8138 | ; |
| 8139 | return 0; |
| 8140 | } |
| 8141 | _ACEOF |
| 8142 | rm -f conftest.$ac_objext |
| 8143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8144 | (eval $ac_compile) 2>&5 |
| 8145 | ac_status=$? |
| 8146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8147 | (exit $ac_status); } && |
| 8148 | { ac_try='test -s conftest.$ac_objext' |
| 8149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8150 | (eval $ac_try) 2>&5 |
| 8151 | ac_status=$? |
| 8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8153 | (exit $ac_status); }; }; then |
| 8154 | ac_cv_type_long_long=yes |
| 8155 | else |
| 8156 | echo "$as_me: failed program was:" >&5 |
| 8157 | cat conftest.$ac_ext >&5 |
| 8158 | ac_cv_type_long_long=no |
| 8159 | fi |
| 8160 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8161 | fi |
| 8162 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8163 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8164 | |
| 8165 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8166 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8167 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8169 | else |
| 8170 | if test "$ac_cv_type_long_long" = yes; then |
| 8171 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8172 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8173 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8174 | # This bug is HP SR number 8606223364. |
| 8175 | if test "$cross_compiling" = yes; then |
| 8176 | # Depending upon the size, compute the lo and hi bounds. |
| 8177 | cat >conftest.$ac_ext <<_ACEOF |
| 8178 | #line $LINENO "configure" |
| 8179 | #include "confdefs.h" |
| 8180 | $ac_includes_default |
| 8181 | #ifdef F77_DUMMY_MAIN |
| 8182 | # ifdef __cplusplus |
| 8183 | extern "C" |
| 8184 | # endif |
| 8185 | int F77_DUMMY_MAIN() { return 1; } |
| 8186 | #endif |
| 8187 | int |
| 8188 | main () |
| 8189 | { |
| 8190 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8191 | test_array [0] = 0 |
| 8192 | |
| 8193 | ; |
| 8194 | return 0; |
| 8195 | } |
| 8196 | _ACEOF |
| 8197 | rm -f conftest.$ac_objext |
| 8198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8199 | (eval $ac_compile) 2>&5 |
| 8200 | ac_status=$? |
| 8201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8202 | (exit $ac_status); } && |
| 8203 | { ac_try='test -s conftest.$ac_objext' |
| 8204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8205 | (eval $ac_try) 2>&5 |
| 8206 | ac_status=$? |
| 8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8208 | (exit $ac_status); }; }; then |
| 8209 | ac_lo=0 ac_mid=0 |
| 8210 | while :; do |
| 8211 | cat >conftest.$ac_ext <<_ACEOF |
| 8212 | #line $LINENO "configure" |
| 8213 | #include "confdefs.h" |
| 8214 | $ac_includes_default |
| 8215 | #ifdef F77_DUMMY_MAIN |
| 8216 | # ifdef __cplusplus |
| 8217 | extern "C" |
| 8218 | # endif |
| 8219 | int F77_DUMMY_MAIN() { return 1; } |
| 8220 | #endif |
| 8221 | int |
| 8222 | main () |
| 8223 | { |
| 8224 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8225 | test_array [0] = 0 |
| 8226 | |
| 8227 | ; |
| 8228 | return 0; |
| 8229 | } |
| 8230 | _ACEOF |
| 8231 | rm -f conftest.$ac_objext |
| 8232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8233 | (eval $ac_compile) 2>&5 |
| 8234 | ac_status=$? |
| 8235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8236 | (exit $ac_status); } && |
| 8237 | { ac_try='test -s conftest.$ac_objext' |
| 8238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8239 | (eval $ac_try) 2>&5 |
| 8240 | ac_status=$? |
| 8241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8242 | (exit $ac_status); }; }; then |
| 8243 | ac_hi=$ac_mid; break |
| 8244 | else |
| 8245 | echo "$as_me: failed program was:" >&5 |
| 8246 | cat conftest.$ac_ext >&5 |
| 8247 | ac_lo=`expr $ac_mid + 1` |
| 8248 | if test $ac_lo -le $ac_mid; then |
| 8249 | ac_lo= ac_hi= |
| 8250 | break |
| 8251 | fi |
| 8252 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8253 | fi |
| 8254 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8255 | done |
| 8256 | else |
| 8257 | echo "$as_me: failed program was:" >&5 |
| 8258 | cat conftest.$ac_ext >&5 |
| 8259 | cat >conftest.$ac_ext <<_ACEOF |
| 8260 | #line $LINENO "configure" |
| 8261 | #include "confdefs.h" |
| 8262 | $ac_includes_default |
| 8263 | #ifdef F77_DUMMY_MAIN |
| 8264 | # ifdef __cplusplus |
| 8265 | extern "C" |
| 8266 | # endif |
| 8267 | int F77_DUMMY_MAIN() { return 1; } |
| 8268 | #endif |
| 8269 | int |
| 8270 | main () |
| 8271 | { |
| 8272 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8273 | test_array [0] = 0 |
| 8274 | |
| 8275 | ; |
| 8276 | return 0; |
| 8277 | } |
| 8278 | _ACEOF |
| 8279 | rm -f conftest.$ac_objext |
| 8280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8281 | (eval $ac_compile) 2>&5 |
| 8282 | ac_status=$? |
| 8283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8284 | (exit $ac_status); } && |
| 8285 | { ac_try='test -s conftest.$ac_objext' |
| 8286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8287 | (eval $ac_try) 2>&5 |
| 8288 | ac_status=$? |
| 8289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8290 | (exit $ac_status); }; }; then |
| 8291 | ac_hi=-1 ac_mid=-1 |
| 8292 | while :; do |
| 8293 | cat >conftest.$ac_ext <<_ACEOF |
| 8294 | #line $LINENO "configure" |
| 8295 | #include "confdefs.h" |
| 8296 | $ac_includes_default |
| 8297 | #ifdef F77_DUMMY_MAIN |
| 8298 | # ifdef __cplusplus |
| 8299 | extern "C" |
| 8300 | # endif |
| 8301 | int F77_DUMMY_MAIN() { return 1; } |
| 8302 | #endif |
| 8303 | int |
| 8304 | main () |
| 8305 | { |
| 8306 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8307 | test_array [0] = 0 |
| 8308 | |
| 8309 | ; |
| 8310 | return 0; |
| 8311 | } |
| 8312 | _ACEOF |
| 8313 | rm -f conftest.$ac_objext |
| 8314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8315 | (eval $ac_compile) 2>&5 |
| 8316 | ac_status=$? |
| 8317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8318 | (exit $ac_status); } && |
| 8319 | { ac_try='test -s conftest.$ac_objext' |
| 8320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8321 | (eval $ac_try) 2>&5 |
| 8322 | ac_status=$? |
| 8323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8324 | (exit $ac_status); }; }; then |
| 8325 | ac_lo=$ac_mid; break |
| 8326 | else |
| 8327 | echo "$as_me: failed program was:" >&5 |
| 8328 | cat conftest.$ac_ext >&5 |
| 8329 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8330 | if test $ac_mid -le $ac_hi; then |
| 8331 | ac_lo= ac_hi= |
| 8332 | break |
| 8333 | fi |
| 8334 | ac_mid=`expr 2 '*' $ac_mid` |
| 8335 | fi |
| 8336 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8337 | done |
| 8338 | else |
| 8339 | echo "$as_me: failed program was:" >&5 |
| 8340 | cat conftest.$ac_ext >&5 |
| 8341 | ac_lo= ac_hi= |
| 8342 | fi |
| 8343 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8344 | fi |
| 8345 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8346 | # Binary search between lo and hi bounds. |
| 8347 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8348 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8349 | cat >conftest.$ac_ext <<_ACEOF |
| 8350 | #line $LINENO "configure" |
| 8351 | #include "confdefs.h" |
| 8352 | $ac_includes_default |
| 8353 | #ifdef F77_DUMMY_MAIN |
| 8354 | # ifdef __cplusplus |
| 8355 | extern "C" |
| 8356 | # endif |
| 8357 | int F77_DUMMY_MAIN() { return 1; } |
| 8358 | #endif |
| 8359 | int |
| 8360 | main () |
| 8361 | { |
| 8362 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8363 | test_array [0] = 0 |
| 8364 | |
| 8365 | ; |
| 8366 | return 0; |
| 8367 | } |
| 8368 | _ACEOF |
| 8369 | rm -f conftest.$ac_objext |
| 8370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8371 | (eval $ac_compile) 2>&5 |
| 8372 | ac_status=$? |
| 8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8374 | (exit $ac_status); } && |
| 8375 | { ac_try='test -s conftest.$ac_objext' |
| 8376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8377 | (eval $ac_try) 2>&5 |
| 8378 | ac_status=$? |
| 8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8380 | (exit $ac_status); }; }; then |
| 8381 | ac_hi=$ac_mid |
| 8382 | else |
| 8383 | echo "$as_me: failed program was:" >&5 |
| 8384 | cat conftest.$ac_ext >&5 |
| 8385 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8386 | fi |
| 8387 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8388 | done |
| 8389 | case $ac_lo in |
| 8390 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8391 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8392 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8393 | { (exit 1); exit 1; }; } ;; |
| 8394 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8395 | else |
| 8396 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8397 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8398 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8399 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8401 | cat >conftest.$ac_ext <<_ACEOF |
| 8402 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8403 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8404 | $ac_includes_default |
| 8405 | long longval () { return (long) (sizeof (long long)); } |
| 8406 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8407 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8408 | #include <stdlib.h> |
| 8409 | #ifdef F77_DUMMY_MAIN |
| 8410 | # ifdef __cplusplus |
| 8411 | extern "C" |
| 8412 | # endif |
| 8413 | int F77_DUMMY_MAIN() { return 1; } |
| 8414 | #endif |
| 8415 | int |
| 8416 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8417 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8418 | |
| 8419 | FILE *f = fopen ("conftest.val", "w"); |
| 8420 | if (! f) |
| 8421 | exit (1); |
| 8422 | if (((long) (sizeof (long long))) < 0) |
| 8423 | { |
| 8424 | long i = longval (); |
| 8425 | if (i != ((long) (sizeof (long long)))) |
| 8426 | exit (1); |
| 8427 | fprintf (f, "%ld\n", i); |
| 8428 | } |
| 8429 | else |
| 8430 | { |
| 8431 | unsigned long i = ulongval (); |
| 8432 | if (i != ((long) (sizeof (long long)))) |
| 8433 | exit (1); |
| 8434 | fprintf (f, "%lu\n", i); |
| 8435 | } |
| 8436 | exit (ferror (f) || fclose (f) != 0); |
| 8437 | |
| 8438 | ; |
| 8439 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8440 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8441 | _ACEOF |
| 8442 | rm -f conftest$ac_exeext |
| 8443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8444 | (eval $ac_link) 2>&5 |
| 8445 | ac_status=$? |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8447 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8449 | (eval $ac_try) 2>&5 |
| 8450 | ac_status=$? |
| 8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8452 | (exit $ac_status); }; }; then |
| 8453 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8455 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8456 | echo "$as_me: failed program was:" >&5 |
| 8457 | cat conftest.$ac_ext >&5 |
| 8458 | ( exit $ac_status ) |
| 8459 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8460 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8461 | { (exit 1); exit 1; }; } |
| 8462 | fi |
| 8463 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8464 | fi |
| 8465 | fi |
| 8466 | rm -f conftest.val |
| 8467 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8468 | ac_cv_sizeof_long_long=0 |
| 8469 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8470 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8472 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8473 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8474 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8475 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8476 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8477 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8478 | fi |
| 8479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8480 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8481 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8482 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8483 | cat >conftest.$ac_ext <<_ACEOF |
| 8484 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8485 | #include "confdefs.h" |
| 8486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | #ifdef F77_DUMMY_MAIN |
| 8488 | # ifdef __cplusplus |
| 8489 | extern "C" |
| 8490 | # endif |
| 8491 | int F77_DUMMY_MAIN() { return 1; } |
| 8492 | #endif |
| 8493 | int |
| 8494 | main () |
| 8495 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8496 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | ; |
| 8498 | return 0; |
| 8499 | } |
| 8500 | _ACEOF |
| 8501 | rm -f conftest.$ac_objext |
| 8502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8503 | (eval $ac_compile) 2>&5 |
| 8504 | ac_status=$? |
| 8505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8506 | (exit $ac_status); } && |
| 8507 | { ac_try='test -s conftest.$ac_objext' |
| 8508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8509 | (eval $ac_try) 2>&5 |
| 8510 | ac_status=$? |
| 8511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8512 | (exit $ac_status); }; }; then |
| 8513 | |
| 8514 | |
| 8515 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8516 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 | _ACEOF |
| 8518 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8519 | have_uintptr_t=yes |
| 8520 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8522 | echo "$as_me: failed program was:" >&5 |
| 8523 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8524 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8525 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8526 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8527 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8528 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8529 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8530 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8531 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8533 | else |
| 8534 | cat >conftest.$ac_ext <<_ACEOF |
| 8535 | #line $LINENO "configure" |
| 8536 | #include "confdefs.h" |
| 8537 | $ac_includes_default |
| 8538 | #ifdef F77_DUMMY_MAIN |
| 8539 | # ifdef __cplusplus |
| 8540 | extern "C" |
| 8541 | # endif |
| 8542 | int F77_DUMMY_MAIN() { return 1; } |
| 8543 | #endif |
| 8544 | int |
| 8545 | main () |
| 8546 | { |
| 8547 | if ((uintptr_t *) 0) |
| 8548 | return 0; |
| 8549 | if (sizeof (uintptr_t)) |
| 8550 | return 0; |
| 8551 | ; |
| 8552 | return 0; |
| 8553 | } |
| 8554 | _ACEOF |
| 8555 | rm -f conftest.$ac_objext |
| 8556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8557 | (eval $ac_compile) 2>&5 |
| 8558 | ac_status=$? |
| 8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8560 | (exit $ac_status); } && |
| 8561 | { ac_try='test -s conftest.$ac_objext' |
| 8562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8563 | (eval $ac_try) 2>&5 |
| 8564 | ac_status=$? |
| 8565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8566 | (exit $ac_status); }; }; then |
| 8567 | ac_cv_type_uintptr_t=yes |
| 8568 | else |
| 8569 | echo "$as_me: failed program was:" >&5 |
| 8570 | cat conftest.$ac_ext >&5 |
| 8571 | ac_cv_type_uintptr_t=no |
| 8572 | fi |
| 8573 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8574 | fi |
| 8575 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8576 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8577 | |
| 8578 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8579 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8580 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8582 | else |
| 8583 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8584 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8585 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8586 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8587 | # This bug is HP SR number 8606223364. |
| 8588 | if test "$cross_compiling" = yes; then |
| 8589 | # Depending upon the size, compute the lo and hi bounds. |
| 8590 | cat >conftest.$ac_ext <<_ACEOF |
| 8591 | #line $LINENO "configure" |
| 8592 | #include "confdefs.h" |
| 8593 | $ac_includes_default |
| 8594 | #ifdef F77_DUMMY_MAIN |
| 8595 | # ifdef __cplusplus |
| 8596 | extern "C" |
| 8597 | # endif |
| 8598 | int F77_DUMMY_MAIN() { return 1; } |
| 8599 | #endif |
| 8600 | int |
| 8601 | main () |
| 8602 | { |
| 8603 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8604 | test_array [0] = 0 |
| 8605 | |
| 8606 | ; |
| 8607 | return 0; |
| 8608 | } |
| 8609 | _ACEOF |
| 8610 | rm -f conftest.$ac_objext |
| 8611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8612 | (eval $ac_compile) 2>&5 |
| 8613 | ac_status=$? |
| 8614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8615 | (exit $ac_status); } && |
| 8616 | { ac_try='test -s conftest.$ac_objext' |
| 8617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8618 | (eval $ac_try) 2>&5 |
| 8619 | ac_status=$? |
| 8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8621 | (exit $ac_status); }; }; then |
| 8622 | ac_lo=0 ac_mid=0 |
| 8623 | while :; do |
| 8624 | cat >conftest.$ac_ext <<_ACEOF |
| 8625 | #line $LINENO "configure" |
| 8626 | #include "confdefs.h" |
| 8627 | $ac_includes_default |
| 8628 | #ifdef F77_DUMMY_MAIN |
| 8629 | # ifdef __cplusplus |
| 8630 | extern "C" |
| 8631 | # endif |
| 8632 | int F77_DUMMY_MAIN() { return 1; } |
| 8633 | #endif |
| 8634 | int |
| 8635 | main () |
| 8636 | { |
| 8637 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8638 | test_array [0] = 0 |
| 8639 | |
| 8640 | ; |
| 8641 | return 0; |
| 8642 | } |
| 8643 | _ACEOF |
| 8644 | rm -f conftest.$ac_objext |
| 8645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8646 | (eval $ac_compile) 2>&5 |
| 8647 | ac_status=$? |
| 8648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8649 | (exit $ac_status); } && |
| 8650 | { ac_try='test -s conftest.$ac_objext' |
| 8651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8652 | (eval $ac_try) 2>&5 |
| 8653 | ac_status=$? |
| 8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8655 | (exit $ac_status); }; }; then |
| 8656 | ac_hi=$ac_mid; break |
| 8657 | else |
| 8658 | echo "$as_me: failed program was:" >&5 |
| 8659 | cat conftest.$ac_ext >&5 |
| 8660 | ac_lo=`expr $ac_mid + 1` |
| 8661 | if test $ac_lo -le $ac_mid; then |
| 8662 | ac_lo= ac_hi= |
| 8663 | break |
| 8664 | fi |
| 8665 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8666 | fi |
| 8667 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8668 | done |
| 8669 | else |
| 8670 | echo "$as_me: failed program was:" >&5 |
| 8671 | cat conftest.$ac_ext >&5 |
| 8672 | cat >conftest.$ac_ext <<_ACEOF |
| 8673 | #line $LINENO "configure" |
| 8674 | #include "confdefs.h" |
| 8675 | $ac_includes_default |
| 8676 | #ifdef F77_DUMMY_MAIN |
| 8677 | # ifdef __cplusplus |
| 8678 | extern "C" |
| 8679 | # endif |
| 8680 | int F77_DUMMY_MAIN() { return 1; } |
| 8681 | #endif |
| 8682 | int |
| 8683 | main () |
| 8684 | { |
| 8685 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8686 | test_array [0] = 0 |
| 8687 | |
| 8688 | ; |
| 8689 | return 0; |
| 8690 | } |
| 8691 | _ACEOF |
| 8692 | rm -f conftest.$ac_objext |
| 8693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8694 | (eval $ac_compile) 2>&5 |
| 8695 | ac_status=$? |
| 8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8697 | (exit $ac_status); } && |
| 8698 | { ac_try='test -s conftest.$ac_objext' |
| 8699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8700 | (eval $ac_try) 2>&5 |
| 8701 | ac_status=$? |
| 8702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8703 | (exit $ac_status); }; }; then |
| 8704 | ac_hi=-1 ac_mid=-1 |
| 8705 | while :; do |
| 8706 | cat >conftest.$ac_ext <<_ACEOF |
| 8707 | #line $LINENO "configure" |
| 8708 | #include "confdefs.h" |
| 8709 | $ac_includes_default |
| 8710 | #ifdef F77_DUMMY_MAIN |
| 8711 | # ifdef __cplusplus |
| 8712 | extern "C" |
| 8713 | # endif |
| 8714 | int F77_DUMMY_MAIN() { return 1; } |
| 8715 | #endif |
| 8716 | int |
| 8717 | main () |
| 8718 | { |
| 8719 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8720 | test_array [0] = 0 |
| 8721 | |
| 8722 | ; |
| 8723 | return 0; |
| 8724 | } |
| 8725 | _ACEOF |
| 8726 | rm -f conftest.$ac_objext |
| 8727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8728 | (eval $ac_compile) 2>&5 |
| 8729 | ac_status=$? |
| 8730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8731 | (exit $ac_status); } && |
| 8732 | { ac_try='test -s conftest.$ac_objext' |
| 8733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8734 | (eval $ac_try) 2>&5 |
| 8735 | ac_status=$? |
| 8736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8737 | (exit $ac_status); }; }; then |
| 8738 | ac_lo=$ac_mid; break |
| 8739 | else |
| 8740 | echo "$as_me: failed program was:" >&5 |
| 8741 | cat conftest.$ac_ext >&5 |
| 8742 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8743 | if test $ac_mid -le $ac_hi; then |
| 8744 | ac_lo= ac_hi= |
| 8745 | break |
| 8746 | fi |
| 8747 | ac_mid=`expr 2 '*' $ac_mid` |
| 8748 | fi |
| 8749 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8750 | done |
| 8751 | else |
| 8752 | echo "$as_me: failed program was:" >&5 |
| 8753 | cat conftest.$ac_ext >&5 |
| 8754 | ac_lo= ac_hi= |
| 8755 | fi |
| 8756 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8757 | fi |
| 8758 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8759 | # Binary search between lo and hi bounds. |
| 8760 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8761 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8762 | cat >conftest.$ac_ext <<_ACEOF |
| 8763 | #line $LINENO "configure" |
| 8764 | #include "confdefs.h" |
| 8765 | $ac_includes_default |
| 8766 | #ifdef F77_DUMMY_MAIN |
| 8767 | # ifdef __cplusplus |
| 8768 | extern "C" |
| 8769 | # endif |
| 8770 | int F77_DUMMY_MAIN() { return 1; } |
| 8771 | #endif |
| 8772 | int |
| 8773 | main () |
| 8774 | { |
| 8775 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8776 | test_array [0] = 0 |
| 8777 | |
| 8778 | ; |
| 8779 | return 0; |
| 8780 | } |
| 8781 | _ACEOF |
| 8782 | rm -f conftest.$ac_objext |
| 8783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8784 | (eval $ac_compile) 2>&5 |
| 8785 | ac_status=$? |
| 8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8787 | (exit $ac_status); } && |
| 8788 | { ac_try='test -s conftest.$ac_objext' |
| 8789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8790 | (eval $ac_try) 2>&5 |
| 8791 | ac_status=$? |
| 8792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8793 | (exit $ac_status); }; }; then |
| 8794 | ac_hi=$ac_mid |
| 8795 | else |
| 8796 | echo "$as_me: failed program was:" >&5 |
| 8797 | cat conftest.$ac_ext >&5 |
| 8798 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8799 | fi |
| 8800 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8801 | done |
| 8802 | case $ac_lo in |
| 8803 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8804 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8805 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8806 | { (exit 1); exit 1; }; } ;; |
| 8807 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8808 | else |
| 8809 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8811 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8812 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | cat >conftest.$ac_ext <<_ACEOF |
| 8815 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8816 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8817 | $ac_includes_default |
| 8818 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8819 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8820 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8821 | #include <stdlib.h> |
| 8822 | #ifdef F77_DUMMY_MAIN |
| 8823 | # ifdef __cplusplus |
| 8824 | extern "C" |
| 8825 | # endif |
| 8826 | int F77_DUMMY_MAIN() { return 1; } |
| 8827 | #endif |
| 8828 | int |
| 8829 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8830 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8831 | |
| 8832 | FILE *f = fopen ("conftest.val", "w"); |
| 8833 | if (! f) |
| 8834 | exit (1); |
| 8835 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8836 | { |
| 8837 | long i = longval (); |
| 8838 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8839 | exit (1); |
| 8840 | fprintf (f, "%ld\n", i); |
| 8841 | } |
| 8842 | else |
| 8843 | { |
| 8844 | unsigned long i = ulongval (); |
| 8845 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8846 | exit (1); |
| 8847 | fprintf (f, "%lu\n", i); |
| 8848 | } |
| 8849 | exit (ferror (f) || fclose (f) != 0); |
| 8850 | |
| 8851 | ; |
| 8852 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8853 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8854 | _ACEOF |
| 8855 | rm -f conftest$ac_exeext |
| 8856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8857 | (eval $ac_link) 2>&5 |
| 8858 | ac_status=$? |
| 8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8862 | (eval $ac_try) 2>&5 |
| 8863 | ac_status=$? |
| 8864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8865 | (exit $ac_status); }; }; then |
| 8866 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8869 | echo "$as_me: failed program was:" >&5 |
| 8870 | cat conftest.$ac_ext >&5 |
| 8871 | ( exit $ac_status ) |
| 8872 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8873 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8874 | { (exit 1); exit 1; }; } |
| 8875 | fi |
| 8876 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8877 | fi |
| 8878 | fi |
| 8879 | rm -f conftest.val |
| 8880 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8881 | ac_cv_sizeof_uintptr_t=0 |
| 8882 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8885 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8886 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8887 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8889 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8890 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8891 | fi |
| 8892 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8893 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8895 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8896 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8898 | else |
| 8899 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8900 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8902 | cat >conftest.$ac_ext <<_ACEOF |
| 8903 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8904 | #include "confdefs.h" |
| 8905 | #include <stdio.h> |
| 8906 | #include <sys/types.h> |
| 8907 | main() |
| 8908 | { |
| 8909 | FILE *f=fopen("conftestval", "w"); |
| 8910 | if (!f) exit(1); |
| 8911 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8912 | exit(0); |
| 8913 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8914 | _ACEOF |
| 8915 | rm -f conftest$ac_exeext |
| 8916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8917 | (eval $ac_link) 2>&5 |
| 8918 | ac_status=$? |
| 8919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8920 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8922 | (eval $ac_try) 2>&5 |
| 8923 | ac_status=$? |
| 8924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8925 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8926 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8929 | echo "$as_me: failed program was:" >&5 |
| 8930 | cat conftest.$ac_ext >&5 |
| 8931 | ( exit $ac_status ) |
| 8932 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8933 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | 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] | 8935 | fi |
| 8936 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8937 | fi |
| 8938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8940 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8941 | |
| 8942 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8943 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8945 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8947 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8948 | 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] | 8949 | if test "$have_long_long" = yes -a \ |
| 8950 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8951 | "$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] | 8952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | cat >>confdefs.h <<\_ACEOF |
| 8954 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8955 | _ACEOF |
| 8956 | |
| 8957 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8958 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8960 | echo "$as_me:$LINENO: result: no" >&5 |
| 8961 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8962 | fi |
| 8963 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8964 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8965 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8966 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8967 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8969 | else |
| 8970 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8971 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8973 | cat >conftest.$ac_ext <<_ACEOF |
| 8974 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8975 | #include "confdefs.h" |
| 8976 | #include <stdio.h> |
| 8977 | #include <time.h> |
| 8978 | main() |
| 8979 | { |
| 8980 | FILE *f=fopen("conftestval", "w"); |
| 8981 | if (!f) exit(1); |
| 8982 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8983 | exit(0); |
| 8984 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | _ACEOF |
| 8986 | rm -f conftest$ac_exeext |
| 8987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8988 | (eval $ac_link) 2>&5 |
| 8989 | ac_status=$? |
| 8990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8991 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8993 | (eval $ac_try) 2>&5 |
| 8994 | ac_status=$? |
| 8995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8996 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8997 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9000 | echo "$as_me: failed program was:" >&5 |
| 9001 | cat conftest.$ac_ext >&5 |
| 9002 | ( exit $ac_status ) |
| 9003 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | 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] | 9006 | fi |
| 9007 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9008 | fi |
| 9009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9011 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9012 | |
| 9013 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9014 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9016 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9017 | |
| 9018 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9019 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9020 | ac_save_cc="$CC" |
| 9021 | if test "$ac_cv_kpthread" = "yes" |
| 9022 | then CC="$CC -Kpthread" |
| 9023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9025 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9026 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9027 | cat >conftest.$ac_ext <<_ACEOF |
| 9028 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9029 | #include "confdefs.h" |
| 9030 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9031 | #ifdef F77_DUMMY_MAIN |
| 9032 | # ifdef __cplusplus |
| 9033 | extern "C" |
| 9034 | # endif |
| 9035 | int F77_DUMMY_MAIN() { return 1; } |
| 9036 | #endif |
| 9037 | int |
| 9038 | main () |
| 9039 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9040 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 | ; |
| 9042 | return 0; |
| 9043 | } |
| 9044 | _ACEOF |
| 9045 | rm -f conftest.$ac_objext |
| 9046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9047 | (eval $ac_compile) 2>&5 |
| 9048 | ac_status=$? |
| 9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9050 | (exit $ac_status); } && |
| 9051 | { ac_try='test -s conftest.$ac_objext' |
| 9052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9053 | (eval $ac_try) 2>&5 |
| 9054 | ac_status=$? |
| 9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9056 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9057 | have_pthread_t=yes |
| 9058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | echo "$as_me: failed program was:" >&5 |
| 9060 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9063 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9064 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9065 | if test "$have_pthread_t" = yes ; then |
| 9066 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9068 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9069 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9071 | else |
| 9072 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9073 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9075 | cat >conftest.$ac_ext <<_ACEOF |
| 9076 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9077 | #include "confdefs.h" |
| 9078 | #include <stdio.h> |
| 9079 | #include <pthread.h> |
| 9080 | main() |
| 9081 | { |
| 9082 | FILE *f=fopen("conftestval", "w"); |
| 9083 | if (!f) exit(1); |
| 9084 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9085 | exit(0); |
| 9086 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9087 | _ACEOF |
| 9088 | rm -f conftest$ac_exeext |
| 9089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9090 | (eval $ac_link) 2>&5 |
| 9091 | ac_status=$? |
| 9092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9093 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9095 | (eval $ac_try) 2>&5 |
| 9096 | ac_status=$? |
| 9097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9098 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9099 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9101 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9102 | echo "$as_me: failed program was:" >&5 |
| 9103 | cat conftest.$ac_ext >&5 |
| 9104 | ( exit $ac_status ) |
| 9105 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9107 | 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] | 9108 | fi |
| 9109 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9110 | fi |
| 9111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9112 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9113 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9114 | |
| 9115 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9116 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9117 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9118 | |
| 9119 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9120 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9123 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9124 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9125 | if test "${enable_toolbox_glue+set}" = set; then |
| 9126 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9128 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9129 | |
| 9130 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9131 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9132 | case $ac_sys_system/$ac_sys_release in |
| 9133 | Darwin/*) |
| 9134 | enable_toolbox_glue="yes";; |
| 9135 | *) |
| 9136 | enable_toolbox_glue="no";; |
| 9137 | esac |
| 9138 | fi |
| 9139 | case "$enable_toolbox_glue" in |
| 9140 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9141 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9142 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9143 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | |
| 9145 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9146 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9148 | |
| 9149 | ;; |
| 9150 | *) |
| 9151 | extra_frameworks="" |
| 9152 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9153 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9154 | ;; |
| 9155 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9156 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9157 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9158 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9159 | |
| 9160 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9161 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9162 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9163 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9164 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9165 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9166 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9167 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9168 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9169 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9170 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9171 | esac |
| 9172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9174 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9175 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9176 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 9177 | OPT="$OPT -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9178 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9179 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9180 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | cat >>confdefs.h <<\_ACEOF |
| 9183 | #define WITH_NEXT_FRAMEWORK 1 |
| 9184 | _ACEOF |
| 9185 | |
| 9186 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9187 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9188 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9189 | echo "$as_me:$LINENO: result: no" >&5 |
| 9190 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9191 | fi |
| 9192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9194 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9195 | case $ac_sys_system/$ac_sys_release in |
| 9196 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | cat >>confdefs.h <<\_ACEOF |
| 9199 | #define WITH_DYLD 1 |
| 9200 | _ACEOF |
| 9201 | |
| 9202 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9203 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9204 | ;; |
| 9205 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9206 | echo "$as_me:$LINENO: result: no" >&5 |
| 9207 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9208 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9209 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9210 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9211 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9212 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9213 | |
| 9214 | |
| 9215 | |
| 9216 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9217 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9218 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9220 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9221 | if test -z "$SO" |
| 9222 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9223 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9224 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9225 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9226 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9227 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9230 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9231 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9232 | # -- "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] | 9233 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9234 | # 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] | 9235 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9236 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9237 | if test -z "$LDSHARED" |
| 9238 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9239 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9240 | AIX*) |
| 9241 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9242 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9243 | ;; |
| 9244 | BeOS*) |
| 9245 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9246 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9247 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9248 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9249 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9250 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9251 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9252 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9253 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9254 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9255 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9256 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9257 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9258 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9259 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9260 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9261 | if test "$enable_framework" ; then |
| 9262 | # Link against the framework. All externals should be defined. |
| 9263 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9264 | else |
| 9265 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9266 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9267 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9268 | Darwin/*) |
| 9269 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9270 | if test "$enable_framework" ; then |
| 9271 | # Link against the framework. All externals should be defined. |
| 9272 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9273 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9274 | # No framework, use the Python app as bundle-loader |
| 9275 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9276 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9277 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9278 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9279 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9280 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9281 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9282 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9283 | then |
| 9284 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9285 | else |
| 9286 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9287 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9288 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9289 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9290 | if test "$GCC" = "yes" |
| 9291 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9292 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9293 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9294 | SCO_SV*) LDSHARED="$(CC) -Wl,-G,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9295 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9296 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9297 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9298 | *) LDSHARED="ld";; |
| 9299 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9300 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9301 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9302 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9303 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9304 | # 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] | 9305 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9306 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9307 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9308 | if test -z "$CCSHARED" |
| 9309 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9310 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9311 | SunOS*) if test "$GCC" = yes; |
| 9312 | then CCSHARED="-fPIC"; |
| 9313 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9314 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9315 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9316 | else CCSHARED="+z"; |
| 9317 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9318 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9319 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9320 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9321 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9322 | if test "$GCC" = "yes" |
| 9323 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9324 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9325 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9326 | SCO_SV*) |
| 9327 | if test "$GCC" = "yes" |
| 9328 | then CCSHARED="-fPIC" |
| 9329 | else CCSHARED="-Kpic -belf" |
| 9330 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9331 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9332 | IRIX*/6*) case $CC in |
| 9333 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9334 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9335 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9336 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9337 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9338 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9339 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9340 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9341 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9342 | # 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] | 9343 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9344 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9345 | if test -z "$LINKFORSHARED" |
| 9346 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9347 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9348 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9349 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9350 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9351 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9352 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9353 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9354 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9356 | # -u __dummy makes the linker aware of the objc runtime |
| 9357 | # in System.framework; otherwise, __objcInit (referenced in |
| 9358 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9359 | # loading of any modules which reference it in System.framework. |
| 9360 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9361 | # not used by the core itself but which needs to be in the core so |
| 9362 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9363 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9364 | if test "$enable_framework" |
| 9365 | then |
| 9366 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9367 | fi |
| 9368 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9369 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9370 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9371 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9372 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9373 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9374 | then |
| 9375 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9376 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9377 | SunOS/5*) case $CC in |
| 9378 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9379 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9380 | then |
| 9381 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9382 | fi;; |
| 9383 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9384 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9385 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9387 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9388 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9390 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9391 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9392 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9393 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9394 | case $ac_sys_system in |
| 9395 | CYGWIN*) |
| 9396 | # Cygwin needs CCSHARED when building extension DLLs |
| 9397 | # but not when building the interpreter DLL. |
| 9398 | CFLAGSFORSHARED='';; |
| 9399 | *) |
| 9400 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9401 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9403 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9404 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9405 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9406 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9407 | # library (with --enable-shared). |
| 9408 | # 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] | 9409 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9410 | # if it is not required, since it creates a dependency of the shared library |
| 9411 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9412 | # don't need to link LIBS explicitly. The default should be only changed |
| 9413 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9414 | |
| 9415 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9416 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9417 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9418 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9419 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9420 | esac |
| 9421 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9422 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9423 | |
| 9424 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9425 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9426 | |
| 9427 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9428 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9429 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9432 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9433 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | cat >conftest.$ac_ext <<_ACEOF |
| 9435 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9436 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9438 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | #ifdef __cplusplus |
| 9440 | extern "C" |
| 9441 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9442 | /* 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] | 9443 | builtin and then its argument prototype would still apply. */ |
| 9444 | char dlopen (); |
| 9445 | #ifdef F77_DUMMY_MAIN |
| 9446 | # ifdef __cplusplus |
| 9447 | extern "C" |
| 9448 | # endif |
| 9449 | int F77_DUMMY_MAIN() { return 1; } |
| 9450 | #endif |
| 9451 | int |
| 9452 | main () |
| 9453 | { |
| 9454 | dlopen (); |
| 9455 | ; |
| 9456 | return 0; |
| 9457 | } |
| 9458 | _ACEOF |
| 9459 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9461 | (eval $ac_link) 2>&5 |
| 9462 | ac_status=$? |
| 9463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9464 | (exit $ac_status); } && |
| 9465 | { ac_try='test -s conftest$ac_exeext' |
| 9466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9467 | (eval $ac_try) 2>&5 |
| 9468 | ac_status=$? |
| 9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9470 | (exit $ac_status); }; }; then |
| 9471 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | echo "$as_me: failed program was:" >&5 |
| 9474 | cat conftest.$ac_ext >&5 |
| 9475 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9478 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9480 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9481 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9482 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9483 | cat >>confdefs.h <<_ACEOF |
| 9484 | #define HAVE_LIBDL 1 |
| 9485 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9486 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9487 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9488 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9489 | fi |
| 9490 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9491 | |
| 9492 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9493 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9494 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9497 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9498 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | cat >conftest.$ac_ext <<_ACEOF |
| 9500 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9501 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9503 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | #ifdef __cplusplus |
| 9505 | extern "C" |
| 9506 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9507 | /* 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] | 9508 | builtin and then its argument prototype would still apply. */ |
| 9509 | char shl_load (); |
| 9510 | #ifdef F77_DUMMY_MAIN |
| 9511 | # ifdef __cplusplus |
| 9512 | extern "C" |
| 9513 | # endif |
| 9514 | int F77_DUMMY_MAIN() { return 1; } |
| 9515 | #endif |
| 9516 | int |
| 9517 | main () |
| 9518 | { |
| 9519 | shl_load (); |
| 9520 | ; |
| 9521 | return 0; |
| 9522 | } |
| 9523 | _ACEOF |
| 9524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9526 | (eval $ac_link) 2>&5 |
| 9527 | ac_status=$? |
| 9528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9529 | (exit $ac_status); } && |
| 9530 | { ac_try='test -s conftest$ac_exeext' |
| 9531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9532 | (eval $ac_try) 2>&5 |
| 9533 | ac_status=$? |
| 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9535 | (exit $ac_status); }; }; then |
| 9536 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9538 | echo "$as_me: failed program was:" >&5 |
| 9539 | cat conftest.$ac_ext >&5 |
| 9540 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9542 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9543 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9545 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9546 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9547 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9548 | cat >>confdefs.h <<_ACEOF |
| 9549 | #define HAVE_LIBDLD 1 |
| 9550 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9551 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9552 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9553 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9554 | fi |
| 9555 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9556 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9557 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9558 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9560 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9561 | ac_func_search_save_LIBS=$LIBS |
| 9562 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9563 | cat >conftest.$ac_ext <<_ACEOF |
| 9564 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9565 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9567 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | #ifdef __cplusplus |
| 9569 | extern "C" |
| 9570 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9571 | /* 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] | 9572 | builtin and then its argument prototype would still apply. */ |
| 9573 | char sem_init (); |
| 9574 | #ifdef F77_DUMMY_MAIN |
| 9575 | # ifdef __cplusplus |
| 9576 | extern "C" |
| 9577 | # endif |
| 9578 | int F77_DUMMY_MAIN() { return 1; } |
| 9579 | #endif |
| 9580 | int |
| 9581 | main () |
| 9582 | { |
| 9583 | sem_init (); |
| 9584 | ; |
| 9585 | return 0; |
| 9586 | } |
| 9587 | _ACEOF |
| 9588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9590 | (eval $ac_link) 2>&5 |
| 9591 | ac_status=$? |
| 9592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9593 | (exit $ac_status); } && |
| 9594 | { ac_try='test -s conftest$ac_exeext' |
| 9595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9596 | (eval $ac_try) 2>&5 |
| 9597 | ac_status=$? |
| 9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9599 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9600 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9602 | echo "$as_me: failed program was:" >&5 |
| 9603 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9604 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | 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] | 9606 | if test "$ac_cv_search_sem_init" = no; then |
| 9607 | for ac_lib in rt posix4; do |
| 9608 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9609 | cat >conftest.$ac_ext <<_ACEOF |
| 9610 | #line $LINENO "configure" |
| 9611 | #include "confdefs.h" |
| 9612 | |
| 9613 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9614 | #ifdef __cplusplus |
| 9615 | extern "C" |
| 9616 | #endif |
| 9617 | /* We use char because int might match the return type of a gcc2 |
| 9618 | builtin and then its argument prototype would still apply. */ |
| 9619 | char sem_init (); |
| 9620 | #ifdef F77_DUMMY_MAIN |
| 9621 | # ifdef __cplusplus |
| 9622 | extern "C" |
| 9623 | # endif |
| 9624 | int F77_DUMMY_MAIN() { return 1; } |
| 9625 | #endif |
| 9626 | int |
| 9627 | main () |
| 9628 | { |
| 9629 | sem_init (); |
| 9630 | ; |
| 9631 | return 0; |
| 9632 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9633 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9634 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9636 | (eval $ac_link) 2>&5 |
| 9637 | ac_status=$? |
| 9638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9639 | (exit $ac_status); } && |
| 9640 | { ac_try='test -s conftest$ac_exeext' |
| 9641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9642 | (eval $ac_try) 2>&5 |
| 9643 | ac_status=$? |
| 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9645 | (exit $ac_status); }; }; then |
| 9646 | ac_cv_search_sem_init="-l$ac_lib" |
| 9647 | break |
| 9648 | else |
| 9649 | echo "$as_me: failed program was:" >&5 |
| 9650 | cat conftest.$ac_ext >&5 |
| 9651 | fi |
| 9652 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9653 | done |
| 9654 | fi |
| 9655 | LIBS=$ac_func_search_save_LIBS |
| 9656 | fi |
| 9657 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9658 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9659 | if test "$ac_cv_search_sem_init" != no; then |
| 9660 | 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] | 9661 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9662 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9663 | # 'Real Time' functions on Solaris, |
| 9664 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9665 | |
| 9666 | # checks for system dependent C++ extensions support |
| 9667 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9669 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9670 | cat >conftest.$ac_ext <<_ACEOF |
| 9671 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9672 | #include "confdefs.h" |
| 9673 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | #ifdef F77_DUMMY_MAIN |
| 9675 | # ifdef __cplusplus |
| 9676 | extern "C" |
| 9677 | # endif |
| 9678 | int F77_DUMMY_MAIN() { return 1; } |
| 9679 | #endif |
| 9680 | int |
| 9681 | main () |
| 9682 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9683 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | ; |
| 9685 | return 0; |
| 9686 | } |
| 9687 | _ACEOF |
| 9688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9690 | (eval $ac_link) 2>&5 |
| 9691 | ac_status=$? |
| 9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9693 | (exit $ac_status); } && |
| 9694 | { ac_try='test -s conftest$ac_exeext' |
| 9695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9696 | (eval $ac_try) 2>&5 |
| 9697 | ac_status=$? |
| 9698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9699 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9701 | cat >>confdefs.h <<\_ACEOF |
| 9702 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9703 | _ACEOF |
| 9704 | |
| 9705 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9706 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +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 | echo "$as_me:$LINENO: result: no" >&5 |
| 9711 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9712 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9713 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9714 | *) ;; |
| 9715 | esac |
| 9716 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9717 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9718 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9719 | # BeOS' sockets are stashed in libnet. |
| 9720 | case "$ac_sys_system" in |
| 9721 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9722 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9724 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9725 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9729 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9730 | cat >conftest.$ac_ext <<_ACEOF |
| 9731 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9732 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9734 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | #ifdef __cplusplus |
| 9736 | extern "C" |
| 9737 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9738 | /* 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] | 9739 | builtin and then its argument prototype would still apply. */ |
| 9740 | char t_open (); |
| 9741 | #ifdef F77_DUMMY_MAIN |
| 9742 | # ifdef __cplusplus |
| 9743 | extern "C" |
| 9744 | # endif |
| 9745 | int F77_DUMMY_MAIN() { return 1; } |
| 9746 | #endif |
| 9747 | int |
| 9748 | main () |
| 9749 | { |
| 9750 | t_open (); |
| 9751 | ; |
| 9752 | return 0; |
| 9753 | } |
| 9754 | _ACEOF |
| 9755 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9757 | (eval $ac_link) 2>&5 |
| 9758 | ac_status=$? |
| 9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9760 | (exit $ac_status); } && |
| 9761 | { ac_try='test -s conftest$ac_exeext' |
| 9762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9763 | (eval $ac_try) 2>&5 |
| 9764 | ac_status=$? |
| 9765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9766 | (exit $ac_status); }; }; then |
| 9767 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | echo "$as_me: failed program was:" >&5 |
| 9770 | cat conftest.$ac_ext >&5 |
| 9771 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9772 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9773 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9774 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9775 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9776 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9777 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9778 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9779 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9780 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9781 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9783 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9784 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9787 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9788 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | cat >conftest.$ac_ext <<_ACEOF |
| 9790 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9791 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9793 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | #ifdef __cplusplus |
| 9795 | extern "C" |
| 9796 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9797 | /* 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] | 9798 | builtin and then its argument prototype would still apply. */ |
| 9799 | char socket (); |
| 9800 | #ifdef F77_DUMMY_MAIN |
| 9801 | # ifdef __cplusplus |
| 9802 | extern "C" |
| 9803 | # endif |
| 9804 | int F77_DUMMY_MAIN() { return 1; } |
| 9805 | #endif |
| 9806 | int |
| 9807 | main () |
| 9808 | { |
| 9809 | socket (); |
| 9810 | ; |
| 9811 | return 0; |
| 9812 | } |
| 9813 | _ACEOF |
| 9814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9816 | (eval $ac_link) 2>&5 |
| 9817 | ac_status=$? |
| 9818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9819 | (exit $ac_status); } && |
| 9820 | { ac_try='test -s conftest$ac_exeext' |
| 9821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9822 | (eval $ac_try) 2>&5 |
| 9823 | ac_status=$? |
| 9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9825 | (exit $ac_status); }; }; then |
| 9826 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | echo "$as_me: failed program was:" >&5 |
| 9829 | cat conftest.$ac_ext >&5 |
| 9830 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9831 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9833 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9834 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9836 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9837 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9838 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9839 | fi |
| 9840 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9841 | ;; |
| 9842 | esac |
| 9843 | case "$ac_sys_system" in |
| 9844 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9845 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9846 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9847 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9851 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | cat >conftest.$ac_ext <<_ACEOF |
| 9853 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9854 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9856 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9857 | #ifdef __cplusplus |
| 9858 | extern "C" |
| 9859 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9860 | /* 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] | 9861 | builtin and then its argument prototype would still apply. */ |
| 9862 | char socket (); |
| 9863 | #ifdef F77_DUMMY_MAIN |
| 9864 | # ifdef __cplusplus |
| 9865 | extern "C" |
| 9866 | # endif |
| 9867 | int F77_DUMMY_MAIN() { return 1; } |
| 9868 | #endif |
| 9869 | int |
| 9870 | main () |
| 9871 | { |
| 9872 | socket (); |
| 9873 | ; |
| 9874 | return 0; |
| 9875 | } |
| 9876 | _ACEOF |
| 9877 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9879 | (eval $ac_link) 2>&5 |
| 9880 | ac_status=$? |
| 9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9882 | (exit $ac_status); } && |
| 9883 | { ac_try='test -s conftest$ac_exeext' |
| 9884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9885 | (eval $ac_try) 2>&5 |
| 9886 | ac_status=$? |
| 9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9888 | (exit $ac_status); }; }; then |
| 9889 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | echo "$as_me: failed program was:" >&5 |
| 9892 | cat conftest.$ac_ext >&5 |
| 9893 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9894 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9895 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9896 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9897 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9899 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9900 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9901 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9902 | fi |
| 9903 | # BeOS |
| 9904 | ;; |
| 9905 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9908 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9909 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9910 | # Check whether --with-libs or --without-libs was given. |
| 9911 | if test "${with_libs+set}" = set; then |
| 9912 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9913 | |
| 9914 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9915 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9916 | LIBS="$withval $LIBS" |
| 9917 | |
| 9918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9919 | echo "$as_me:$LINENO: result: no" >&5 |
| 9920 | echo "${ECHO_T}no" >&6 |
| 9921 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9922 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9923 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9924 | |
| 9925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9926 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9927 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9928 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9929 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9930 | if test "${with_signal_module+set}" = set; then |
| 9931 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9934 | |
| 9935 | if test -z "$with_signal_module" |
| 9936 | then with_signal_module="yes" |
| 9937 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9938 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9939 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9940 | |
| 9941 | if test "${with_signal_module}" = "yes"; then |
| 9942 | USE_SIGNAL_MODULE="" |
| 9943 | SIGNAL_OBJS="" |
| 9944 | else |
| 9945 | USE_SIGNAL_MODULE="#" |
| 9946 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9947 | fi |
| 9948 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9949 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9950 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9951 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9953 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9954 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9955 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9956 | |
| 9957 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9958 | if test "${with_dec_threads+set}" = set; then |
| 9959 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9960 | |
| 9961 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9962 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9963 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9964 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9965 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9966 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9968 | echo "$as_me:$LINENO: result: no" >&5 |
| 9969 | echo "${ECHO_T}no" >&6 |
| 9970 | fi; |
| 9971 | |
| 9972 | # Templates for things AC_DEFINEd more than once. |
| 9973 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9974 | |
| 9975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9976 | |
| 9977 | |
| 9978 | |
| 9979 | |
| 9980 | |
| 9981 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9982 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9983 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9984 | # Check whether --with-threads or --without-threads was given. |
| 9985 | if test "${with_threads+set}" = set; then |
| 9986 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9989 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9990 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9992 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9993 | if test "${with_thread+set}" = set; then |
| 9994 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9995 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9996 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9997 | |
| 9998 | if test -z "$with_threads" |
| 9999 | then with_threads="yes" |
| 10000 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10002 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10003 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10004 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10005 | if test "$with_threads" = "no" |
| 10006 | then |
| 10007 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10008 | elif test "$ac_cv_pthread_is_default" = yes |
| 10009 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10011 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10013 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10014 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10015 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10016 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10017 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10018 | |
| 10019 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10021 | elif test "$ac_cv_kpthread" = "yes" |
| 10022 | then |
| 10023 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10024 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10025 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10026 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10027 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10028 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10029 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10030 | else |
| 10031 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10032 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10033 | fi |
| 10034 | if test ! -z "$withval" -a -d "$withval" |
| 10035 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10036 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10037 | |
| 10038 | # According to the POSIX spec, a pthreads implementation must |
| 10039 | # 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] | 10040 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10041 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10042 | cat >conftest.$ac_ext <<_ACEOF |
| 10043 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10044 | #include "confdefs.h" |
| 10045 | #include <unistd.h> |
| 10046 | #ifdef _POSIX_THREADS |
| 10047 | yes |
| 10048 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10049 | |
| 10050 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10052 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10053 | unistd_defines_pthreads=yes |
| 10054 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10055 | unistd_defines_pthreads=no |
| 10056 | fi |
| 10057 | rm -f conftest* |
| 10058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10059 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10060 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10062 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10063 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10067 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10068 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10069 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10071 | fi |
| 10072 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10073 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | # Is the header compilable? |
| 10076 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10077 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10078 | cat >conftest.$ac_ext <<_ACEOF |
| 10079 | #line $LINENO "configure" |
| 10080 | #include "confdefs.h" |
| 10081 | $ac_includes_default |
| 10082 | #include <cthreads.h> |
| 10083 | _ACEOF |
| 10084 | rm -f conftest.$ac_objext |
| 10085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10086 | (eval $ac_compile) 2>&5 |
| 10087 | ac_status=$? |
| 10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10089 | (exit $ac_status); } && |
| 10090 | { ac_try='test -s conftest.$ac_objext' |
| 10091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10092 | (eval $ac_try) 2>&5 |
| 10093 | ac_status=$? |
| 10094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10095 | (exit $ac_status); }; }; then |
| 10096 | ac_header_compiler=yes |
| 10097 | else |
| 10098 | echo "$as_me: failed program was:" >&5 |
| 10099 | cat conftest.$ac_ext >&5 |
| 10100 | ac_header_compiler=no |
| 10101 | fi |
| 10102 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10103 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10104 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10105 | |
| 10106 | # Is the header present? |
| 10107 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10108 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10109 | cat >conftest.$ac_ext <<_ACEOF |
| 10110 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10111 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10112 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10113 | _ACEOF |
| 10114 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10115 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10116 | ac_status=$? |
| 10117 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10118 | rm -f conftest.er1 |
| 10119 | cat conftest.err >&5 |
| 10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10121 | (exit $ac_status); } >/dev/null; then |
| 10122 | if test -s conftest.err; then |
| 10123 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10124 | else |
| 10125 | ac_cpp_err= |
| 10126 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | ac_cpp_err=yes |
| 10129 | fi |
| 10130 | if test -z "$ac_cpp_err"; then |
| 10131 | ac_header_preproc=yes |
| 10132 | else |
| 10133 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10134 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10135 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | rm -f conftest.err conftest.$ac_ext |
| 10138 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10139 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10140 | |
| 10141 | # So? What about this header? |
| 10142 | case $ac_header_compiler:$ac_header_preproc in |
| 10143 | yes:no ) |
| 10144 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10145 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10146 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10147 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10148 | no:yes ) |
| 10149 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10150 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10151 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10152 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10153 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10154 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10155 | esac |
| 10156 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10157 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10158 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10160 | else |
| 10161 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10162 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10163 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10164 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10165 | |
| 10166 | fi |
| 10167 | if test $ac_cv_header_cthreads_h = yes; then |
| 10168 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10169 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10170 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10173 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | |
| 10177 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10178 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10180 | |
| 10181 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10182 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10183 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10185 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10186 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10187 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10188 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10190 | fi |
| 10191 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10192 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | # Is the header compilable? |
| 10195 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10196 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10197 | cat >conftest.$ac_ext <<_ACEOF |
| 10198 | #line $LINENO "configure" |
| 10199 | #include "confdefs.h" |
| 10200 | $ac_includes_default |
| 10201 | #include <mach/cthreads.h> |
| 10202 | _ACEOF |
| 10203 | rm -f conftest.$ac_objext |
| 10204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10205 | (eval $ac_compile) 2>&5 |
| 10206 | ac_status=$? |
| 10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10208 | (exit $ac_status); } && |
| 10209 | { ac_try='test -s conftest.$ac_objext' |
| 10210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10211 | (eval $ac_try) 2>&5 |
| 10212 | ac_status=$? |
| 10213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10214 | (exit $ac_status); }; }; then |
| 10215 | ac_header_compiler=yes |
| 10216 | else |
| 10217 | echo "$as_me: failed program was:" >&5 |
| 10218 | cat conftest.$ac_ext >&5 |
| 10219 | ac_header_compiler=no |
| 10220 | fi |
| 10221 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10222 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10223 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10224 | |
| 10225 | # Is the header present? |
| 10226 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10227 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10228 | cat >conftest.$ac_ext <<_ACEOF |
| 10229 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10230 | #include "confdefs.h" |
| 10231 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10232 | _ACEOF |
| 10233 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10234 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10235 | ac_status=$? |
| 10236 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10237 | rm -f conftest.er1 |
| 10238 | cat conftest.err >&5 |
| 10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10240 | (exit $ac_status); } >/dev/null; then |
| 10241 | if test -s conftest.err; then |
| 10242 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10243 | else |
| 10244 | ac_cpp_err= |
| 10245 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | ac_cpp_err=yes |
| 10248 | fi |
| 10249 | if test -z "$ac_cpp_err"; then |
| 10250 | ac_header_preproc=yes |
| 10251 | else |
| 10252 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10253 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10255 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | rm -f conftest.err conftest.$ac_ext |
| 10257 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10258 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10259 | |
| 10260 | # So? What about this header? |
| 10261 | case $ac_header_compiler:$ac_header_preproc in |
| 10262 | yes:no ) |
| 10263 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10264 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10265 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10266 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10267 | no:yes ) |
| 10268 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10269 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10270 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10271 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10272 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10273 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10274 | esac |
| 10275 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10276 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10277 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10279 | else |
| 10280 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10281 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10282 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10283 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10284 | |
| 10285 | fi |
| 10286 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10287 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10288 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10289 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10292 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10293 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | |
| 10296 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10297 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10299 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10300 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10301 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10303 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10304 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10305 | |
| 10306 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10307 | if test "${with_pth+set}" = set; then |
| 10308 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10309 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10311 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10312 | #define WITH_THREAD 1 |
| 10313 | _ACEOF |
| 10314 | |
| 10315 | |
| 10316 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10317 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10319 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10320 | LIBS="-lpth $LIBS" |
| 10321 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10322 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10323 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10324 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10325 | |
| 10326 | # Just looking for pthread_create in libpthread is not enough: |
| 10327 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10328 | # So we really have to include pthread.h, and then link. |
| 10329 | _libs=$LIBS |
| 10330 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10332 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10333 | cat >conftest.$ac_ext <<_ACEOF |
| 10334 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10335 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10336 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10337 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10338 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10339 | #ifdef F77_DUMMY_MAIN |
| 10340 | # ifdef __cplusplus |
| 10341 | extern "C" |
| 10342 | # endif |
| 10343 | int F77_DUMMY_MAIN() { return 1; } |
| 10344 | #endif |
| 10345 | int |
| 10346 | main () |
| 10347 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10348 | |
| 10349 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | ; |
| 10351 | return 0; |
| 10352 | } |
| 10353 | _ACEOF |
| 10354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10356 | (eval $ac_link) 2>&5 |
| 10357 | ac_status=$? |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); } && |
| 10360 | { ac_try='test -s conftest$ac_exeext' |
| 10361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10362 | (eval $ac_try) 2>&5 |
| 10363 | ac_status=$? |
| 10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10365 | (exit $ac_status); }; }; then |
| 10366 | |
| 10367 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10368 | echo "${ECHO_T}yes" >&6 |
| 10369 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10370 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10372 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10373 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10374 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | echo "$as_me: failed program was:" >&5 |
| 10377 | cat conftest.$ac_ext >&5 |
| 10378 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10379 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10380 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10381 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10382 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10384 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | cat >conftest.$ac_ext <<_ACEOF |
| 10386 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10387 | #include "confdefs.h" |
| 10388 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10390 | #include <assert.h> |
| 10391 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | #ifdef __cplusplus |
| 10393 | extern "C" |
| 10394 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10395 | /* 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] | 10396 | builtin and then its argument prototype would still apply. */ |
| 10397 | char pthread_detach (); |
| 10398 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | #ifdef F77_DUMMY_MAIN |
| 10401 | # ifdef __cplusplus |
| 10402 | extern "C" |
| 10403 | # endif |
| 10404 | int F77_DUMMY_MAIN() { return 1; } |
| 10405 | #endif |
| 10406 | int |
| 10407 | main () |
| 10408 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10409 | /* The GNU C library defines this for functions which it implements |
| 10410 | to always fail with ENOSYS. Some functions are actually named |
| 10411 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10412 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10413 | choke me |
| 10414 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10416 | #endif |
| 10417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 | ; |
| 10419 | return 0; |
| 10420 | } |
| 10421 | _ACEOF |
| 10422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10424 | (eval $ac_link) 2>&5 |
| 10425 | ac_status=$? |
| 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10427 | (exit $ac_status); } && |
| 10428 | { ac_try='test -s conftest$ac_exeext' |
| 10429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10430 | (eval $ac_try) 2>&5 |
| 10431 | ac_status=$? |
| 10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10433 | (exit $ac_status); }; }; then |
| 10434 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10436 | echo "$as_me: failed program was:" >&5 |
| 10437 | cat conftest.$ac_ext >&5 |
| 10438 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10439 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10441 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10442 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10443 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10444 | if test $ac_cv_func_pthread_detach = yes; then |
| 10445 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10446 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10448 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10449 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10450 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10451 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10452 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10453 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10454 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10455 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10456 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10458 | fi |
| 10459 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10460 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10461 | else |
| 10462 | # Is the header compilable? |
| 10463 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10464 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10465 | cat >conftest.$ac_ext <<_ACEOF |
| 10466 | #line $LINENO "configure" |
| 10467 | #include "confdefs.h" |
| 10468 | $ac_includes_default |
| 10469 | #include <atheos/threads.h> |
| 10470 | _ACEOF |
| 10471 | rm -f conftest.$ac_objext |
| 10472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10473 | (eval $ac_compile) 2>&5 |
| 10474 | ac_status=$? |
| 10475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10476 | (exit $ac_status); } && |
| 10477 | { ac_try='test -s conftest.$ac_objext' |
| 10478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10479 | (eval $ac_try) 2>&5 |
| 10480 | ac_status=$? |
| 10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10482 | (exit $ac_status); }; }; then |
| 10483 | ac_header_compiler=yes |
| 10484 | else |
| 10485 | echo "$as_me: failed program was:" >&5 |
| 10486 | cat conftest.$ac_ext >&5 |
| 10487 | ac_header_compiler=no |
| 10488 | fi |
| 10489 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10490 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10491 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10492 | |
| 10493 | # Is the header present? |
| 10494 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10495 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10496 | cat >conftest.$ac_ext <<_ACEOF |
| 10497 | #line $LINENO "configure" |
| 10498 | #include "confdefs.h" |
| 10499 | #include <atheos/threads.h> |
| 10500 | _ACEOF |
| 10501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10503 | ac_status=$? |
| 10504 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10505 | rm -f conftest.er1 |
| 10506 | cat conftest.err >&5 |
| 10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10508 | (exit $ac_status); } >/dev/null; then |
| 10509 | if test -s conftest.err; then |
| 10510 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10511 | else |
| 10512 | ac_cpp_err= |
| 10513 | fi |
| 10514 | else |
| 10515 | ac_cpp_err=yes |
| 10516 | fi |
| 10517 | if test -z "$ac_cpp_err"; then |
| 10518 | ac_header_preproc=yes |
| 10519 | else |
| 10520 | echo "$as_me: failed program was:" >&5 |
| 10521 | cat conftest.$ac_ext >&5 |
| 10522 | ac_header_preproc=no |
| 10523 | fi |
| 10524 | rm -f conftest.err conftest.$ac_ext |
| 10525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10526 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10527 | |
| 10528 | # So? What about this header? |
| 10529 | case $ac_header_compiler:$ac_header_preproc in |
| 10530 | yes:no ) |
| 10531 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10532 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10533 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10534 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10535 | no:yes ) |
| 10536 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10537 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10538 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10539 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10540 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10541 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10542 | esac |
| 10543 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10544 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10545 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10547 | else |
| 10548 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10549 | fi |
| 10550 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10551 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10552 | |
| 10553 | fi |
| 10554 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10555 | cat >>confdefs.h <<\_ACEOF |
| 10556 | #define WITH_THREAD 1 |
| 10557 | _ACEOF |
| 10558 | |
| 10559 | |
| 10560 | cat >>confdefs.h <<\_ACEOF |
| 10561 | #define ATHEOS_THREADS 1 |
| 10562 | _ACEOF |
| 10563 | |
| 10564 | THREADOBJ="Python/thread.o" |
| 10565 | else |
| 10566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10568 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10569 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10570 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10572 | fi |
| 10573 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10574 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10575 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10576 | # Is the header compilable? |
| 10577 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10578 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10579 | cat >conftest.$ac_ext <<_ACEOF |
| 10580 | #line $LINENO "configure" |
| 10581 | #include "confdefs.h" |
| 10582 | $ac_includes_default |
| 10583 | #include <kernel/OS.h> |
| 10584 | _ACEOF |
| 10585 | rm -f conftest.$ac_objext |
| 10586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10587 | (eval $ac_compile) 2>&5 |
| 10588 | ac_status=$? |
| 10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10590 | (exit $ac_status); } && |
| 10591 | { ac_try='test -s conftest.$ac_objext' |
| 10592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10593 | (eval $ac_try) 2>&5 |
| 10594 | ac_status=$? |
| 10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10596 | (exit $ac_status); }; }; then |
| 10597 | ac_header_compiler=yes |
| 10598 | else |
| 10599 | echo "$as_me: failed program was:" >&5 |
| 10600 | cat conftest.$ac_ext >&5 |
| 10601 | ac_header_compiler=no |
| 10602 | fi |
| 10603 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10604 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10605 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10606 | |
| 10607 | # Is the header present? |
| 10608 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10609 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10610 | cat >conftest.$ac_ext <<_ACEOF |
| 10611 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10612 | #include "confdefs.h" |
| 10613 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10614 | _ACEOF |
| 10615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10617 | ac_status=$? |
| 10618 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10619 | rm -f conftest.er1 |
| 10620 | cat conftest.err >&5 |
| 10621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10622 | (exit $ac_status); } >/dev/null; then |
| 10623 | if test -s conftest.err; then |
| 10624 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10625 | else |
| 10626 | ac_cpp_err= |
| 10627 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10629 | ac_cpp_err=yes |
| 10630 | fi |
| 10631 | if test -z "$ac_cpp_err"; then |
| 10632 | ac_header_preproc=yes |
| 10633 | else |
| 10634 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10635 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10636 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10637 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10638 | rm -f conftest.err conftest.$ac_ext |
| 10639 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10640 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10642 | # So? What about this header? |
| 10643 | case $ac_header_compiler:$ac_header_preproc in |
| 10644 | yes:no ) |
| 10645 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10646 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10647 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10648 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10649 | no:yes ) |
| 10650 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10651 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10652 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10653 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10654 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10655 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10656 | esac |
| 10657 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10658 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10659 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10661 | else |
| 10662 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10663 | fi |
| 10664 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10665 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10666 | |
| 10667 | fi |
| 10668 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10669 | cat >>confdefs.h <<\_ACEOF |
| 10670 | #define WITH_THREAD 1 |
| 10671 | _ACEOF |
| 10672 | |
| 10673 | |
| 10674 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10675 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10676 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10677 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10678 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10679 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10681 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10682 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10683 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10686 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10687 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | cat >conftest.$ac_ext <<_ACEOF |
| 10689 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10690 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10691 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10692 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | #ifdef __cplusplus |
| 10694 | extern "C" |
| 10695 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10696 | /* 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] | 10697 | builtin and then its argument prototype would still apply. */ |
| 10698 | char pthread_create (); |
| 10699 | #ifdef F77_DUMMY_MAIN |
| 10700 | # ifdef __cplusplus |
| 10701 | extern "C" |
| 10702 | # endif |
| 10703 | int F77_DUMMY_MAIN() { return 1; } |
| 10704 | #endif |
| 10705 | int |
| 10706 | main () |
| 10707 | { |
| 10708 | pthread_create (); |
| 10709 | ; |
| 10710 | return 0; |
| 10711 | } |
| 10712 | _ACEOF |
| 10713 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10715 | (eval $ac_link) 2>&5 |
| 10716 | ac_status=$? |
| 10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10718 | (exit $ac_status); } && |
| 10719 | { ac_try='test -s conftest$ac_exeext' |
| 10720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10721 | (eval $ac_try) 2>&5 |
| 10722 | ac_status=$? |
| 10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10724 | (exit $ac_status); }; }; then |
| 10725 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10727 | echo "$as_me: failed program was:" >&5 |
| 10728 | cat conftest.$ac_ext >&5 |
| 10729 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10730 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10731 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10732 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10733 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10734 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10735 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10736 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10737 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10738 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10739 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10740 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10741 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10742 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10743 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10744 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10745 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10747 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10748 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10751 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10752 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10753 | cat >conftest.$ac_ext <<_ACEOF |
| 10754 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10755 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10756 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10757 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10758 | #ifdef __cplusplus |
| 10759 | extern "C" |
| 10760 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10761 | /* 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] | 10762 | builtin and then its argument prototype would still apply. */ |
| 10763 | char pthread_create (); |
| 10764 | #ifdef F77_DUMMY_MAIN |
| 10765 | # ifdef __cplusplus |
| 10766 | extern "C" |
| 10767 | # endif |
| 10768 | int F77_DUMMY_MAIN() { return 1; } |
| 10769 | #endif |
| 10770 | int |
| 10771 | main () |
| 10772 | { |
| 10773 | pthread_create (); |
| 10774 | ; |
| 10775 | return 0; |
| 10776 | } |
| 10777 | _ACEOF |
| 10778 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10780 | (eval $ac_link) 2>&5 |
| 10781 | ac_status=$? |
| 10782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10783 | (exit $ac_status); } && |
| 10784 | { ac_try='test -s conftest$ac_exeext' |
| 10785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10786 | (eval $ac_try) 2>&5 |
| 10787 | ac_status=$? |
| 10788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10789 | (exit $ac_status); }; }; then |
| 10790 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10792 | echo "$as_me: failed program was:" >&5 |
| 10793 | cat conftest.$ac_ext >&5 |
| 10794 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10796 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10797 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10798 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10799 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10800 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10801 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10802 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10803 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10804 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10805 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10806 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10807 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10808 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10809 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10811 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10812 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10813 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10816 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10817 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10818 | cat >conftest.$ac_ext <<_ACEOF |
| 10819 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10820 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10821 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10822 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10823 | #ifdef __cplusplus |
| 10824 | extern "C" |
| 10825 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10826 | /* 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] | 10827 | builtin and then its argument prototype would still apply. */ |
| 10828 | char __d6_pthread_create (); |
| 10829 | #ifdef F77_DUMMY_MAIN |
| 10830 | # ifdef __cplusplus |
| 10831 | extern "C" |
| 10832 | # endif |
| 10833 | int F77_DUMMY_MAIN() { return 1; } |
| 10834 | #endif |
| 10835 | int |
| 10836 | main () |
| 10837 | { |
| 10838 | __d6_pthread_create (); |
| 10839 | ; |
| 10840 | return 0; |
| 10841 | } |
| 10842 | _ACEOF |
| 10843 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10845 | (eval $ac_link) 2>&5 |
| 10846 | ac_status=$? |
| 10847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10848 | (exit $ac_status); } && |
| 10849 | { ac_try='test -s conftest$ac_exeext' |
| 10850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10851 | (eval $ac_try) 2>&5 |
| 10852 | ac_status=$? |
| 10853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10854 | (exit $ac_status); }; }; then |
| 10855 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10857 | echo "$as_me: failed program was:" >&5 |
| 10858 | cat conftest.$ac_ext >&5 |
| 10859 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10860 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10861 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10862 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10863 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10865 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10866 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10867 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10868 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10869 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10870 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10871 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10872 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10873 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10874 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10877 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10878 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10882 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | cat >conftest.$ac_ext <<_ACEOF |
| 10884 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10885 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10887 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10888 | #ifdef __cplusplus |
| 10889 | extern "C" |
| 10890 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10891 | /* 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] | 10892 | builtin and then its argument prototype would still apply. */ |
| 10893 | char __pthread_create_system (); |
| 10894 | #ifdef F77_DUMMY_MAIN |
| 10895 | # ifdef __cplusplus |
| 10896 | extern "C" |
| 10897 | # endif |
| 10898 | int F77_DUMMY_MAIN() { return 1; } |
| 10899 | #endif |
| 10900 | int |
| 10901 | main () |
| 10902 | { |
| 10903 | __pthread_create_system (); |
| 10904 | ; |
| 10905 | return 0; |
| 10906 | } |
| 10907 | _ACEOF |
| 10908 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10910 | (eval $ac_link) 2>&5 |
| 10911 | ac_status=$? |
| 10912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10913 | (exit $ac_status); } && |
| 10914 | { ac_try='test -s conftest$ac_exeext' |
| 10915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10916 | (eval $ac_try) 2>&5 |
| 10917 | ac_status=$? |
| 10918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10919 | (exit $ac_status); }; }; then |
| 10920 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | echo "$as_me: failed program was:" >&5 |
| 10923 | cat conftest.$ac_ext >&5 |
| 10924 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10925 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10926 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10927 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10928 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10930 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10931 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10932 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10933 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10934 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10935 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10936 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10937 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10938 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10939 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10941 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10942 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10943 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10946 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10947 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | cat >conftest.$ac_ext <<_ACEOF |
| 10949 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10950 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10952 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10953 | #ifdef __cplusplus |
| 10954 | extern "C" |
| 10955 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10956 | /* 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] | 10957 | builtin and then its argument prototype would still apply. */ |
| 10958 | char pthread_create (); |
| 10959 | #ifdef F77_DUMMY_MAIN |
| 10960 | # ifdef __cplusplus |
| 10961 | extern "C" |
| 10962 | # endif |
| 10963 | int F77_DUMMY_MAIN() { return 1; } |
| 10964 | #endif |
| 10965 | int |
| 10966 | main () |
| 10967 | { |
| 10968 | pthread_create (); |
| 10969 | ; |
| 10970 | return 0; |
| 10971 | } |
| 10972 | _ACEOF |
| 10973 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10975 | (eval $ac_link) 2>&5 |
| 10976 | ac_status=$? |
| 10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10978 | (exit $ac_status); } && |
| 10979 | { ac_try='test -s conftest$ac_exeext' |
| 10980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10981 | (eval $ac_try) 2>&5 |
| 10982 | ac_status=$? |
| 10983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10984 | (exit $ac_status); }; }; then |
| 10985 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10987 | echo "$as_me: failed program was:" >&5 |
| 10988 | cat conftest.$ac_ext >&5 |
| 10989 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10990 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10991 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10992 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10993 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10995 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10996 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10997 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10998 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11000 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11001 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11002 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11003 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11004 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11005 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11006 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11007 | fi |
| 11008 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11009 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11010 | fi |
| 11011 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11012 | fi |
| 11013 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11014 | fi |
| 11015 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11016 | fi |
| 11017 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11018 | fi |
| 11019 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11020 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11021 | fi |
| 11022 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11023 | |
| 11024 | fi |
| 11025 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11026 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11028 | fi; |
| 11029 | fi |
| 11030 | |
| 11031 | |
| 11032 | fi |
| 11033 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11034 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11035 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11036 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11037 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | |
| 11039 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11040 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11042 | |
| 11043 | fi |
| 11044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11046 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11047 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11049 | else |
| 11050 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11051 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +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" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11055 | #include "confdefs.h" |
| 11056 | #include <pthread.h> |
| 11057 | void *foo(void *parm) { |
| 11058 | return NULL; |
| 11059 | } |
| 11060 | main() { |
| 11061 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11062 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11063 | if (pthread_attr_init(&attr)) exit(-1); |
| 11064 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11065 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11066 | exit(0); |
| 11067 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11068 | _ACEOF |
| 11069 | rm -f conftest$ac_exeext |
| 11070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11071 | (eval $ac_link) 2>&5 |
| 11072 | ac_status=$? |
| 11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11074 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11076 | (eval $ac_try) 2>&5 |
| 11077 | ac_status=$? |
| 11078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11079 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11080 | ac_cv_pthread_system_supported=yes |
| 11081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11083 | echo "$as_me: failed program was:" >&5 |
| 11084 | cat conftest.$ac_ext >&5 |
| 11085 | ( exit $ac_status ) |
| 11086 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 | 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] | 11089 | fi |
| 11090 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11091 | fi |
| 11092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11093 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11094 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11095 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11096 | |
| 11097 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11098 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11100 | |
| 11101 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11102 | |
| 11103 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11104 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11106 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11107 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11108 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | cat >conftest.$ac_ext <<_ACEOF |
| 11112 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11113 | #include "confdefs.h" |
| 11114 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11115 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11116 | #include <assert.h> |
| 11117 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | #ifdef __cplusplus |
| 11119 | extern "C" |
| 11120 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11121 | /* 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] | 11122 | builtin and then its argument prototype would still apply. */ |
| 11123 | char $ac_func (); |
| 11124 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | #ifdef F77_DUMMY_MAIN |
| 11127 | # ifdef __cplusplus |
| 11128 | extern "C" |
| 11129 | # endif |
| 11130 | int F77_DUMMY_MAIN() { return 1; } |
| 11131 | #endif |
| 11132 | int |
| 11133 | main () |
| 11134 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11135 | /* The GNU C library defines this for functions which it implements |
| 11136 | to always fail with ENOSYS. Some functions are actually named |
| 11137 | something starting with __ and the normal name is an alias. */ |
| 11138 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11139 | choke me |
| 11140 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11142 | #endif |
| 11143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | ; |
| 11145 | return 0; |
| 11146 | } |
| 11147 | _ACEOF |
| 11148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11150 | (eval $ac_link) 2>&5 |
| 11151 | ac_status=$? |
| 11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11153 | (exit $ac_status); } && |
| 11154 | { ac_try='test -s conftest$ac_exeext' |
| 11155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11156 | (eval $ac_try) 2>&5 |
| 11157 | ac_status=$? |
| 11158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11159 | (exit $ac_status); }; }; then |
| 11160 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11162 | echo "$as_me: failed program was:" >&5 |
| 11163 | cat conftest.$ac_ext >&5 |
| 11164 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11169 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11170 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11171 | cat >>confdefs.h <<_ACEOF |
| 11172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11173 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11174 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11175 | fi |
| 11176 | done |
| 11177 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11178 | fi |
| 11179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11181 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11182 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11186 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | cat >conftest.$ac_ext <<_ACEOF |
| 11188 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11189 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11190 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11191 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11192 | #ifdef __cplusplus |
| 11193 | extern "C" |
| 11194 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11195 | /* 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] | 11196 | builtin and then its argument prototype would still apply. */ |
| 11197 | char usconfig (); |
| 11198 | #ifdef F77_DUMMY_MAIN |
| 11199 | # ifdef __cplusplus |
| 11200 | extern "C" |
| 11201 | # endif |
| 11202 | int F77_DUMMY_MAIN() { return 1; } |
| 11203 | #endif |
| 11204 | int |
| 11205 | main () |
| 11206 | { |
| 11207 | usconfig (); |
| 11208 | ; |
| 11209 | return 0; |
| 11210 | } |
| 11211 | _ACEOF |
| 11212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11214 | (eval $ac_link) 2>&5 |
| 11215 | ac_status=$? |
| 11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11217 | (exit $ac_status); } && |
| 11218 | { ac_try='test -s conftest$ac_exeext' |
| 11219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11220 | (eval $ac_try) 2>&5 |
| 11221 | ac_status=$? |
| 11222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11223 | (exit $ac_status); }; }; then |
| 11224 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11226 | echo "$as_me: failed program was:" >&5 |
| 11227 | cat conftest.$ac_ext >&5 |
| 11228 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11229 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11230 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11231 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11232 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11234 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11235 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11236 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11237 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11238 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11239 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11240 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11241 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11242 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11243 | fi |
| 11244 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11245 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11246 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11248 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11249 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11253 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 | cat >conftest.$ac_ext <<_ACEOF |
| 11255 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11256 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11258 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | #ifdef __cplusplus |
| 11260 | extern "C" |
| 11261 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11262 | /* 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] | 11263 | builtin and then its argument prototype would still apply. */ |
| 11264 | char thr_create (); |
| 11265 | #ifdef F77_DUMMY_MAIN |
| 11266 | # ifdef __cplusplus |
| 11267 | extern "C" |
| 11268 | # endif |
| 11269 | int F77_DUMMY_MAIN() { return 1; } |
| 11270 | #endif |
| 11271 | int |
| 11272 | main () |
| 11273 | { |
| 11274 | thr_create (); |
| 11275 | ; |
| 11276 | return 0; |
| 11277 | } |
| 11278 | _ACEOF |
| 11279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11281 | (eval $ac_link) 2>&5 |
| 11282 | ac_status=$? |
| 11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11284 | (exit $ac_status); } && |
| 11285 | { ac_try='test -s conftest$ac_exeext' |
| 11286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11287 | (eval $ac_try) 2>&5 |
| 11288 | ac_status=$? |
| 11289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11290 | (exit $ac_status); }; }; then |
| 11291 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | echo "$as_me: failed program was:" >&5 |
| 11294 | cat conftest.$ac_ext >&5 |
| 11295 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11296 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11298 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11299 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11300 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11301 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11302 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11303 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11304 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11306 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11307 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11308 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11309 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11310 | fi |
| 11311 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11312 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11313 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11314 | if test "$USE_THREAD_MODULE" != "#" |
| 11315 | then |
| 11316 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11317 | # needs this '-threads' argument during linking. |
| 11318 | case $ac_sys_system in |
| 11319 | OSF1) LDLAST=-threads;; |
| 11320 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11321 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11322 | |
| 11323 | if test "$posix_threads" = yes -a \ |
| 11324 | "$ac_sys_system" = "SunOS" -a \ |
| 11325 | "$ac_sys_release" = "5.6"; then |
| 11326 | |
| 11327 | cat >>confdefs.h <<\_ACEOF |
| 11328 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11329 | _ACEOF |
| 11330 | |
| 11331 | fi |
| 11332 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11333 | fi |
| 11334 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11335 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11336 | |
| 11337 | |
| 11338 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11339 | 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] | 11340 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11341 | if test "${enable_ipv6+set}" = set; then |
| 11342 | enableval="$enable_ipv6" |
| 11343 | case "$enableval" in |
| 11344 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | echo "$as_me:$LINENO: result: no" >&5 |
| 11346 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11347 | ipv6=no |
| 11348 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11350 | echo "${ECHO_T}yes" >&6 |
| 11351 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11352 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11354 | |
| 11355 | ipv6=yes |
| 11356 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11360 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | echo "$as_me:$LINENO: result: no" >&5 |
| 11362 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11363 | ipv6=no |
| 11364 | |
| 11365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | cat >conftest.$ac_ext <<_ACEOF |
| 11367 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11368 | #include "confdefs.h" |
| 11369 | /* AF_INET6 available check */ |
| 11370 | #include <sys/types.h> |
| 11371 | #include <sys/socket.h> |
| 11372 | main() |
| 11373 | { |
| 11374 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11375 | exit(1); |
| 11376 | else |
| 11377 | exit(0); |
| 11378 | } |
| 11379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11380 | _ACEOF |
| 11381 | rm -f conftest$ac_exeext |
| 11382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11383 | (eval $ac_link) 2>&5 |
| 11384 | ac_status=$? |
| 11385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11388 | (eval $ac_try) 2>&5 |
| 11389 | ac_status=$? |
| 11390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11391 | (exit $ac_status); }; }; then |
| 11392 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11393 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11394 | ipv6=yes |
| 11395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11396 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11397 | echo "$as_me: failed program was:" >&5 |
| 11398 | cat conftest.$ac_ext >&5 |
| 11399 | ( exit $ac_status ) |
| 11400 | echo "$as_me:$LINENO: result: no" >&5 |
| 11401 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11402 | ipv6=no |
| 11403 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11404 | 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] | 11405 | fi |
| 11406 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11407 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11409 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11410 | cat >conftest.$ac_ext <<_ACEOF |
| 11411 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11412 | #include "confdefs.h" |
| 11413 | #include <sys/types.h> |
| 11414 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11415 | #ifdef F77_DUMMY_MAIN |
| 11416 | # ifdef __cplusplus |
| 11417 | extern "C" |
| 11418 | # endif |
| 11419 | int F77_DUMMY_MAIN() { return 1; } |
| 11420 | #endif |
| 11421 | int |
| 11422 | main () |
| 11423 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11424 | struct sockaddr_in6 x; |
| 11425 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | ; |
| 11427 | return 0; |
| 11428 | } |
| 11429 | _ACEOF |
| 11430 | rm -f conftest.$ac_objext |
| 11431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11432 | (eval $ac_compile) 2>&5 |
| 11433 | ac_status=$? |
| 11434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11435 | (exit $ac_status); } && |
| 11436 | { ac_try='test -s conftest.$ac_objext' |
| 11437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11438 | (eval $ac_try) 2>&5 |
| 11439 | ac_status=$? |
| 11440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11441 | (exit $ac_status); }; }; then |
| 11442 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11443 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11444 | ipv6=yes |
| 11445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11446 | echo "$as_me: failed program was:" >&5 |
| 11447 | cat conftest.$ac_ext >&5 |
| 11448 | echo "$as_me:$LINENO: result: no" >&5 |
| 11449 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11450 | ipv6=no |
| 11451 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11452 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11453 | fi |
| 11454 | |
| 11455 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11457 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11459 | |
| 11460 | fi |
| 11461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11462 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11463 | |
| 11464 | ipv6type=unknown |
| 11465 | ipv6lib=none |
| 11466 | ipv6trylibc=no |
| 11467 | |
| 11468 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11470 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11471 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11472 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11473 | case $i in |
| 11474 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | cat >conftest.$ac_ext <<_ACEOF |
| 11476 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11477 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11478 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11479 | #include <netinet/in.h> |
| 11480 | #ifdef IPV6_INRIA_VERSION |
| 11481 | yes |
| 11482 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11483 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11485 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11486 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11487 | fi |
| 11488 | rm -f conftest* |
| 11489 | |
| 11490 | ;; |
| 11491 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11492 | cat >conftest.$ac_ext <<_ACEOF |
| 11493 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11494 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11495 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11496 | #include <netinet/in.h> |
| 11497 | #ifdef __KAME__ |
| 11498 | yes |
| 11499 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11500 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11501 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11502 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11503 | ipv6type=$i; |
| 11504 | ipv6lib=inet6 |
| 11505 | ipv6libdir=/usr/local/v6/lib |
| 11506 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11507 | fi |
| 11508 | rm -f conftest* |
| 11509 | |
| 11510 | ;; |
| 11511 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11512 | cat >conftest.$ac_ext <<_ACEOF |
| 11513 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11514 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11515 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11516 | #include <features.h> |
| 11517 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11518 | yes |
| 11519 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11520 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11521 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11522 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11523 | ipv6type=$i; |
| 11524 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11525 | fi |
| 11526 | rm -f conftest* |
| 11527 | |
| 11528 | ;; |
| 11529 | linux-inet6) |
| 11530 | if test -d /usr/inet6; then |
| 11531 | ipv6type=$i |
| 11532 | ipv6lib=inet6 |
| 11533 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11534 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11535 | fi |
| 11536 | ;; |
| 11537 | solaris) |
| 11538 | if test -f /etc/netconfig; then |
| 11539 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11540 | ipv6type=$i |
| 11541 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11542 | fi |
| 11543 | fi |
| 11544 | ;; |
| 11545 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11546 | cat >conftest.$ac_ext <<_ACEOF |
| 11547 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11548 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11549 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11550 | #include <sys/param.h> |
| 11551 | #ifdef _TOSHIBA_INET6 |
| 11552 | yes |
| 11553 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11555 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11556 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11557 | ipv6type=$i; |
| 11558 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11559 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11560 | fi |
| 11561 | rm -f conftest* |
| 11562 | |
| 11563 | ;; |
| 11564 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11565 | cat >conftest.$ac_ext <<_ACEOF |
| 11566 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11567 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11568 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11569 | #include </usr/local/v6/include/sys/v6config.h> |
| 11570 | #ifdef __V6D__ |
| 11571 | yes |
| 11572 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11573 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11574 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11575 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11576 | ipv6type=$i; |
| 11577 | ipv6lib=v6; |
| 11578 | ipv6libdir=/usr/local/v6/lib; |
| 11579 | OPT="-I/usr/local/v6/include $OPT" |
| 11580 | fi |
| 11581 | rm -f conftest* |
| 11582 | |
| 11583 | ;; |
| 11584 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11585 | cat >conftest.$ac_ext <<_ACEOF |
| 11586 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11587 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11588 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11589 | #include <sys/param.h> |
| 11590 | #ifdef _ZETA_MINAMI_INET6 |
| 11591 | yes |
| 11592 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11593 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11594 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11595 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11596 | ipv6type=$i; |
| 11597 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11598 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11599 | fi |
| 11600 | rm -f conftest* |
| 11601 | |
| 11602 | ;; |
| 11603 | esac |
| 11604 | if test "$ipv6type" != "unknown"; then |
| 11605 | break |
| 11606 | fi |
| 11607 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11608 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11609 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11610 | fi |
| 11611 | |
| 11612 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11613 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11614 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11615 | echo "using lib$ipv6lib" |
| 11616 | else |
| 11617 | if test $ipv6trylibc = "yes"; then |
| 11618 | echo "using libc" |
| 11619 | else |
| 11620 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11621 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11622 | echo 'ipv6 kit and compile beforehand.' |
| 11623 | exit 1 |
| 11624 | fi |
| 11625 | fi |
| 11626 | fi |
| 11627 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11628 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11629 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11630 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11631 | |
| 11632 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11633 | if test "${with_universal_newlines+set}" = set; then |
| 11634 | withval="$with_universal_newlines" |
| 11635 | |
| 11636 | fi; |
| 11637 | |
| 11638 | if test -z "$with_universal_newlines" |
| 11639 | then with_universal_newlines="yes" |
| 11640 | fi |
| 11641 | if test "$with_universal_newlines" != "no" |
| 11642 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11643 | |
| 11644 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11645 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11646 | _ACEOF |
| 11647 | |
| 11648 | fi |
| 11649 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11650 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11651 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11652 | # Check for --with-doc-strings |
| 11653 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11654 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11655 | |
| 11656 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11657 | if test "${with_doc_strings+set}" = set; then |
| 11658 | withval="$with_doc_strings" |
| 11659 | |
| 11660 | fi; |
| 11661 | |
| 11662 | if test -z "$with_doc_strings" |
| 11663 | then with_doc_strings="yes" |
| 11664 | fi |
| 11665 | if test "$with_doc_strings" != "no" |
| 11666 | then |
| 11667 | |
| 11668 | cat >>confdefs.h <<\_ACEOF |
| 11669 | #define WITH_DOC_STRINGS 1 |
| 11670 | _ACEOF |
| 11671 | |
| 11672 | fi |
| 11673 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11674 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11675 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11676 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11678 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11679 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11680 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11681 | if test "${with_pymalloc+set}" = set; then |
| 11682 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11684 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11685 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11686 | if test -z "$with_pymalloc" |
| 11687 | then with_pymalloc="yes" |
| 11688 | fi |
| 11689 | if test "$with_pymalloc" != "no" |
| 11690 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11691 | |
| 11692 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11693 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11694 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11695 | |
| 11696 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11697 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11698 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11699 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11700 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11701 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11702 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11703 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11704 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11705 | if test "${with_wctype_functions+set}" = set; then |
| 11706 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11708 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | then |
| 11710 | |
| 11711 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11712 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11713 | _ACEOF |
| 11714 | |
| 11715 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11716 | echo "${ECHO_T}yes" >&6 |
| 11717 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11718 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11719 | fi |
| 11720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11721 | echo "$as_me:$LINENO: result: no" >&5 |
| 11722 | echo "${ECHO_T}no" >&6 |
| 11723 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11724 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11725 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11726 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11727 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11730 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11731 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11732 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11733 | if test "${with_sgi_dl+set}" = set; then |
| 11734 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11735 | |
| 11736 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11737 | echo "${ECHO_T}$withval" >&6 |
| 11738 | |
| 11739 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11740 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11741 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11742 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11743 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11744 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11745 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11746 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11747 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11748 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11749 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11750 | fi |
| 11751 | DLINCLDIR=${dldir} |
| 11752 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11754 | echo "$as_me:$LINENO: result: no" >&5 |
| 11755 | echo "${ECHO_T}no" >&6 |
| 11756 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11758 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11759 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11760 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11761 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11762 | if test "${with_dl_dld+set}" = set; then |
| 11763 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | |
| 11765 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11766 | echo "${ECHO_T}$withval" >&6 |
| 11767 | |
| 11768 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11769 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11770 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11771 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11772 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11773 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11774 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11775 | 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] | 11776 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11777 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11778 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11779 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11780 | fi |
| 11781 | DLINCLDIR=${dldir} |
| 11782 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11784 | echo "$as_me:$LINENO: result: no" >&5 |
| 11785 | echo "${ECHO_T}no" >&6 |
| 11786 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11787 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11788 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11789 | # 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] | 11790 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11791 | for ac_func in dlopen |
| 11792 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11794 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11795 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11796 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11799 | cat >conftest.$ac_ext <<_ACEOF |
| 11800 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11801 | #include "confdefs.h" |
| 11802 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11803 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11804 | #include <assert.h> |
| 11805 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11806 | #ifdef __cplusplus |
| 11807 | extern "C" |
| 11808 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11809 | /* 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] | 11810 | builtin and then its argument prototype would still apply. */ |
| 11811 | char $ac_func (); |
| 11812 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11814 | #ifdef F77_DUMMY_MAIN |
| 11815 | # ifdef __cplusplus |
| 11816 | extern "C" |
| 11817 | # endif |
| 11818 | int F77_DUMMY_MAIN() { return 1; } |
| 11819 | #endif |
| 11820 | int |
| 11821 | main () |
| 11822 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11823 | /* The GNU C library defines this for functions which it implements |
| 11824 | to always fail with ENOSYS. Some functions are actually named |
| 11825 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11826 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11827 | choke me |
| 11828 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11829 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11830 | #endif |
| 11831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 | ; |
| 11833 | return 0; |
| 11834 | } |
| 11835 | _ACEOF |
| 11836 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11838 | (eval $ac_link) 2>&5 |
| 11839 | ac_status=$? |
| 11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11841 | (exit $ac_status); } && |
| 11842 | { ac_try='test -s conftest$ac_exeext' |
| 11843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11844 | (eval $ac_try) 2>&5 |
| 11845 | ac_status=$? |
| 11846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11847 | (exit $ac_status); }; }; then |
| 11848 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | echo "$as_me: failed program was:" >&5 |
| 11851 | cat conftest.$ac_ext >&5 |
| 11852 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11853 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11855 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11857 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11858 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11859 | cat >>confdefs.h <<_ACEOF |
| 11860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11861 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11862 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11863 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11864 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11865 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11866 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11867 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11868 | # loading of modules. |
| 11869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11870 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11871 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11872 | if test -z "$DYNLOADFILE" |
| 11873 | then |
| 11874 | case $ac_sys_system/$ac_sys_release in |
| 11875 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11876 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11877 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11878 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11879 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11880 | *) |
| 11881 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11882 | # out any dynamic loading |
| 11883 | if test "$ac_cv_func_dlopen" = yes |
| 11884 | then DYNLOADFILE="dynload_shlib.o" |
| 11885 | else DYNLOADFILE="dynload_stub.o" |
| 11886 | fi |
| 11887 | ;; |
| 11888 | esac |
| 11889 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11890 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11891 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11892 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11893 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11894 | |
| 11895 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11896 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11897 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11898 | |
| 11899 | fi |
| 11900 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11901 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11902 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11904 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11905 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11906 | if test -z "$MACHDEP_OBJS" |
| 11907 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11908 | MACHDEP_OBJS=$extra_machdep_objs |
| 11909 | else |
| 11910 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11911 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11912 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11913 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11914 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11915 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11916 | |
| 11917 | |
| 11918 | |
| 11919 | |
| 11920 | |
| 11921 | |
| 11922 | |
| 11923 | |
| 11924 | |
| 11925 | |
| 11926 | |
| 11927 | |
| 11928 | |
| 11929 | |
| 11930 | |
| 11931 | |
| 11932 | |
| 11933 | |
| 11934 | |
| 11935 | |
| 11936 | |
| 11937 | |
| 11938 | |
| 11939 | |
| 11940 | |
| 11941 | |
| 11942 | |
| 11943 | |
| 11944 | |
| 11945 | |
| 11946 | |
| 11947 | |
| 11948 | |
| 11949 | |
| 11950 | |
| 11951 | |
| 11952 | |
| 11953 | |
| 11954 | |
| 11955 | |
| 11956 | |
| 11957 | |
| 11958 | |
| 11959 | |
| 11960 | |
| 11961 | |
| 11962 | |
| 11963 | |
| 11964 | |
| 11965 | |
| 11966 | |
| 11967 | |
| 11968 | |
| 11969 | |
| 11970 | |
| 11971 | |
| 11972 | |
| 11973 | |
| 11974 | |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | |
| 11979 | |
| 11980 | |
| 11981 | |
| 11982 | |
| 11983 | |
| 11984 | |
| 11985 | |
| 11986 | |
| 11987 | |
| 11988 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11989 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11990 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11991 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11992 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11993 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11994 | hstrerror inet_pton kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 11995 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11996 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11997 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11998 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11999 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12000 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 12001 | truncate uname unsetenv utimes waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12002 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12004 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12006 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12009 | cat >conftest.$ac_ext <<_ACEOF |
| 12010 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12011 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12012 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12013 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12014 | #include <assert.h> |
| 12015 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12016 | #ifdef __cplusplus |
| 12017 | extern "C" |
| 12018 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12019 | /* 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] | 12020 | builtin and then its argument prototype would still apply. */ |
| 12021 | char $ac_func (); |
| 12022 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | #ifdef F77_DUMMY_MAIN |
| 12025 | # ifdef __cplusplus |
| 12026 | extern "C" |
| 12027 | # endif |
| 12028 | int F77_DUMMY_MAIN() { return 1; } |
| 12029 | #endif |
| 12030 | int |
| 12031 | main () |
| 12032 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12033 | /* The GNU C library defines this for functions which it implements |
| 12034 | to always fail with ENOSYS. Some functions are actually named |
| 12035 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12037 | choke me |
| 12038 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12039 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12040 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12042 | ; |
| 12043 | return 0; |
| 12044 | } |
| 12045 | _ACEOF |
| 12046 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12048 | (eval $ac_link) 2>&5 |
| 12049 | ac_status=$? |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12051 | (exit $ac_status); } && |
| 12052 | { ac_try='test -s conftest$ac_exeext' |
| 12053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12054 | (eval $ac_try) 2>&5 |
| 12055 | ac_status=$? |
| 12056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12057 | (exit $ac_status); }; }; then |
| 12058 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12060 | echo "$as_me: failed program was:" >&5 |
| 12061 | cat conftest.$ac_ext >&5 |
| 12062 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12064 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12067 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12068 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12069 | cat >>confdefs.h <<_ACEOF |
| 12070 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12071 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12072 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12073 | fi |
| 12074 | done |
| 12075 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12076 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12077 | # For some functions, having a definition is not sufficient, since |
| 12078 | # we want to take their address. |
| 12079 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12080 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12081 | cat >conftest.$ac_ext <<_ACEOF |
| 12082 | #line $LINENO "configure" |
| 12083 | #include "confdefs.h" |
| 12084 | #include <unistd.h> |
| 12085 | #ifdef F77_DUMMY_MAIN |
| 12086 | # ifdef __cplusplus |
| 12087 | extern "C" |
| 12088 | # endif |
| 12089 | int F77_DUMMY_MAIN() { return 1; } |
| 12090 | #endif |
| 12091 | int |
| 12092 | main () |
| 12093 | { |
| 12094 | void *x=chroot |
| 12095 | ; |
| 12096 | return 0; |
| 12097 | } |
| 12098 | _ACEOF |
| 12099 | rm -f conftest.$ac_objext |
| 12100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12101 | (eval $ac_compile) 2>&5 |
| 12102 | ac_status=$? |
| 12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12104 | (exit $ac_status); } && |
| 12105 | { ac_try='test -s conftest.$ac_objext' |
| 12106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12107 | (eval $ac_try) 2>&5 |
| 12108 | ac_status=$? |
| 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12110 | (exit $ac_status); }; }; then |
| 12111 | |
| 12112 | cat >>confdefs.h <<\_ACEOF |
| 12113 | #define HAVE_CHROOT 1 |
| 12114 | _ACEOF |
| 12115 | |
| 12116 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12117 | echo "${ECHO_T}yes" >&6 |
| 12118 | else |
| 12119 | echo "$as_me: failed program was:" >&5 |
| 12120 | cat conftest.$ac_ext >&5 |
| 12121 | echo "$as_me:$LINENO: result: no" >&5 |
| 12122 | echo "${ECHO_T}no" >&6 |
| 12123 | |
| 12124 | fi |
| 12125 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12126 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12127 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12128 | cat >conftest.$ac_ext <<_ACEOF |
| 12129 | #line $LINENO "configure" |
| 12130 | #include "confdefs.h" |
| 12131 | #include <unistd.h> |
| 12132 | #ifdef F77_DUMMY_MAIN |
| 12133 | # ifdef __cplusplus |
| 12134 | extern "C" |
| 12135 | # endif |
| 12136 | int F77_DUMMY_MAIN() { return 1; } |
| 12137 | #endif |
| 12138 | int |
| 12139 | main () |
| 12140 | { |
| 12141 | void *x=link |
| 12142 | ; |
| 12143 | return 0; |
| 12144 | } |
| 12145 | _ACEOF |
| 12146 | rm -f conftest.$ac_objext |
| 12147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12148 | (eval $ac_compile) 2>&5 |
| 12149 | ac_status=$? |
| 12150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12151 | (exit $ac_status); } && |
| 12152 | { ac_try='test -s conftest.$ac_objext' |
| 12153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12154 | (eval $ac_try) 2>&5 |
| 12155 | ac_status=$? |
| 12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12157 | (exit $ac_status); }; }; then |
| 12158 | |
| 12159 | cat >>confdefs.h <<\_ACEOF |
| 12160 | #define HAVE_LINK 1 |
| 12161 | _ACEOF |
| 12162 | |
| 12163 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12164 | echo "${ECHO_T}yes" >&6 |
| 12165 | else |
| 12166 | echo "$as_me: failed program was:" >&5 |
| 12167 | cat conftest.$ac_ext >&5 |
| 12168 | echo "$as_me:$LINENO: result: no" >&5 |
| 12169 | echo "${ECHO_T}no" >&6 |
| 12170 | |
| 12171 | fi |
| 12172 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12173 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12174 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12175 | cat >conftest.$ac_ext <<_ACEOF |
| 12176 | #line $LINENO "configure" |
| 12177 | #include "confdefs.h" |
| 12178 | #include <unistd.h> |
| 12179 | #ifdef F77_DUMMY_MAIN |
| 12180 | # ifdef __cplusplus |
| 12181 | extern "C" |
| 12182 | # endif |
| 12183 | int F77_DUMMY_MAIN() { return 1; } |
| 12184 | #endif |
| 12185 | int |
| 12186 | main () |
| 12187 | { |
| 12188 | void *x=symlink |
| 12189 | ; |
| 12190 | return 0; |
| 12191 | } |
| 12192 | _ACEOF |
| 12193 | rm -f conftest.$ac_objext |
| 12194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12195 | (eval $ac_compile) 2>&5 |
| 12196 | ac_status=$? |
| 12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12198 | (exit $ac_status); } && |
| 12199 | { ac_try='test -s conftest.$ac_objext' |
| 12200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12201 | (eval $ac_try) 2>&5 |
| 12202 | ac_status=$? |
| 12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12204 | (exit $ac_status); }; }; then |
| 12205 | |
| 12206 | cat >>confdefs.h <<\_ACEOF |
| 12207 | #define HAVE_SYMLINK 1 |
| 12208 | _ACEOF |
| 12209 | |
| 12210 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12211 | echo "${ECHO_T}yes" >&6 |
| 12212 | else |
| 12213 | echo "$as_me: failed program was:" >&5 |
| 12214 | cat conftest.$ac_ext >&5 |
| 12215 | echo "$as_me:$LINENO: result: no" >&5 |
| 12216 | echo "${ECHO_T}no" >&6 |
| 12217 | |
| 12218 | fi |
| 12219 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12220 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12221 | # check for openpty and forkpty |
| 12222 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12223 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12224 | for ac_func in openpty |
| 12225 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12227 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12228 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12229 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 | cat >conftest.$ac_ext <<_ACEOF |
| 12233 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12234 | #include "confdefs.h" |
| 12235 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12236 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12237 | #include <assert.h> |
| 12238 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | #ifdef __cplusplus |
| 12240 | extern "C" |
| 12241 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12242 | /* 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] | 12243 | builtin and then its argument prototype would still apply. */ |
| 12244 | char $ac_func (); |
| 12245 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12247 | #ifdef F77_DUMMY_MAIN |
| 12248 | # ifdef __cplusplus |
| 12249 | extern "C" |
| 12250 | # endif |
| 12251 | int F77_DUMMY_MAIN() { return 1; } |
| 12252 | #endif |
| 12253 | int |
| 12254 | main () |
| 12255 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12256 | /* The GNU C library defines this for functions which it implements |
| 12257 | to always fail with ENOSYS. Some functions are actually named |
| 12258 | something starting with __ and the normal name is an alias. */ |
| 12259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12260 | choke me |
| 12261 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12262 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12263 | #endif |
| 12264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +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 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +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 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12288 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12290 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12291 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12292 | cat >>confdefs.h <<_ACEOF |
| 12293 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12294 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12295 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12297 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12298 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12299 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12302 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12303 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12304 | cat >conftest.$ac_ext <<_ACEOF |
| 12305 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12306 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12307 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12308 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12309 | #ifdef __cplusplus |
| 12310 | extern "C" |
| 12311 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12312 | /* 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] | 12313 | builtin and then its argument prototype would still apply. */ |
| 12314 | char openpty (); |
| 12315 | #ifdef F77_DUMMY_MAIN |
| 12316 | # ifdef __cplusplus |
| 12317 | extern "C" |
| 12318 | # endif |
| 12319 | int F77_DUMMY_MAIN() { return 1; } |
| 12320 | #endif |
| 12321 | int |
| 12322 | main () |
| 12323 | { |
| 12324 | openpty (); |
| 12325 | ; |
| 12326 | return 0; |
| 12327 | } |
| 12328 | _ACEOF |
| 12329 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12331 | (eval $ac_link) 2>&5 |
| 12332 | ac_status=$? |
| 12333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12334 | (exit $ac_status); } && |
| 12335 | { ac_try='test -s conftest$ac_exeext' |
| 12336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12337 | (eval $ac_try) 2>&5 |
| 12338 | ac_status=$? |
| 12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12340 | (exit $ac_status); }; }; then |
| 12341 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12343 | echo "$as_me: failed program was:" >&5 |
| 12344 | cat conftest.$ac_ext >&5 |
| 12345 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12346 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12347 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12348 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12349 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12350 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12351 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12352 | if test $ac_cv_lib_util_openpty = yes; then |
| 12353 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12354 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12355 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12356 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12357 | fi |
| 12358 | |
| 12359 | fi |
| 12360 | done |
| 12361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12363 | for ac_func in forkpty |
| 12364 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12366 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12368 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | cat >conftest.$ac_ext <<_ACEOF |
| 12372 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12373 | #include "confdefs.h" |
| 12374 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12375 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12376 | #include <assert.h> |
| 12377 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 | #ifdef __cplusplus |
| 12379 | extern "C" |
| 12380 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12381 | /* 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] | 12382 | builtin and then its argument prototype would still apply. */ |
| 12383 | char $ac_func (); |
| 12384 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12386 | #ifdef F77_DUMMY_MAIN |
| 12387 | # ifdef __cplusplus |
| 12388 | extern "C" |
| 12389 | # endif |
| 12390 | int F77_DUMMY_MAIN() { return 1; } |
| 12391 | #endif |
| 12392 | int |
| 12393 | main () |
| 12394 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12395 | /* The GNU C library defines this for functions which it implements |
| 12396 | to always fail with ENOSYS. Some functions are actually named |
| 12397 | something starting with __ and the normal name is an alias. */ |
| 12398 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12399 | choke me |
| 12400 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12401 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12402 | #endif |
| 12403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12404 | ; |
| 12405 | return 0; |
| 12406 | } |
| 12407 | _ACEOF |
| 12408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12410 | (eval $ac_link) 2>&5 |
| 12411 | ac_status=$? |
| 12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12413 | (exit $ac_status); } && |
| 12414 | { ac_try='test -s conftest$ac_exeext' |
| 12415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12416 | (eval $ac_try) 2>&5 |
| 12417 | ac_status=$? |
| 12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12419 | (exit $ac_status); }; }; then |
| 12420 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 | echo "$as_me: failed program was:" >&5 |
| 12423 | cat conftest.$ac_ext >&5 |
| 12424 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12425 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12427 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12429 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12430 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12431 | cat >>confdefs.h <<_ACEOF |
| 12432 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12433 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12434 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12436 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12437 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12438 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12442 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12443 | cat >conftest.$ac_ext <<_ACEOF |
| 12444 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12445 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12446 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12447 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12448 | #ifdef __cplusplus |
| 12449 | extern "C" |
| 12450 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12451 | /* 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] | 12452 | builtin and then its argument prototype would still apply. */ |
| 12453 | char forkpty (); |
| 12454 | #ifdef F77_DUMMY_MAIN |
| 12455 | # ifdef __cplusplus |
| 12456 | extern "C" |
| 12457 | # endif |
| 12458 | int F77_DUMMY_MAIN() { return 1; } |
| 12459 | #endif |
| 12460 | int |
| 12461 | main () |
| 12462 | { |
| 12463 | forkpty (); |
| 12464 | ; |
| 12465 | return 0; |
| 12466 | } |
| 12467 | _ACEOF |
| 12468 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12470 | (eval $ac_link) 2>&5 |
| 12471 | ac_status=$? |
| 12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12473 | (exit $ac_status); } && |
| 12474 | { ac_try='test -s conftest$ac_exeext' |
| 12475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12476 | (eval $ac_try) 2>&5 |
| 12477 | ac_status=$? |
| 12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12479 | (exit $ac_status); }; }; then |
| 12480 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12482 | echo "$as_me: failed program was:" >&5 |
| 12483 | cat conftest.$ac_ext >&5 |
| 12484 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12487 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12488 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12489 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12490 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12491 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12492 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12493 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12494 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12495 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12496 | fi |
| 12497 | |
| 12498 | fi |
| 12499 | done |
| 12500 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12501 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12502 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12503 | |
| 12504 | |
| 12505 | |
| 12506 | |
| 12507 | |
| 12508 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12509 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12510 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12511 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12512 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12513 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12514 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12516 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12517 | cat >conftest.$ac_ext <<_ACEOF |
| 12518 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12519 | #include "confdefs.h" |
| 12520 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12521 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12522 | #include <assert.h> |
| 12523 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12524 | #ifdef __cplusplus |
| 12525 | extern "C" |
| 12526 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12527 | /* 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] | 12528 | builtin and then its argument prototype would still apply. */ |
| 12529 | char $ac_func (); |
| 12530 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12532 | #ifdef F77_DUMMY_MAIN |
| 12533 | # ifdef __cplusplus |
| 12534 | extern "C" |
| 12535 | # endif |
| 12536 | int F77_DUMMY_MAIN() { return 1; } |
| 12537 | #endif |
| 12538 | int |
| 12539 | main () |
| 12540 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12541 | /* The GNU C library defines this for functions which it implements |
| 12542 | to always fail with ENOSYS. Some functions are actually named |
| 12543 | something starting with __ and the normal name is an alias. */ |
| 12544 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12545 | choke me |
| 12546 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12548 | #endif |
| 12549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12550 | ; |
| 12551 | return 0; |
| 12552 | } |
| 12553 | _ACEOF |
| 12554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12556 | (eval $ac_link) 2>&5 |
| 12557 | ac_status=$? |
| 12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12559 | (exit $ac_status); } && |
| 12560 | { ac_try='test -s conftest$ac_exeext' |
| 12561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12562 | (eval $ac_try) 2>&5 |
| 12563 | ac_status=$? |
| 12564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12565 | (exit $ac_status); }; }; then |
| 12566 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12568 | echo "$as_me: failed program was:" >&5 |
| 12569 | cat conftest.$ac_ext >&5 |
| 12570 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12573 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12575 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12576 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12577 | cat >>confdefs.h <<_ACEOF |
| 12578 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12579 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12580 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12581 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12582 | done |
| 12583 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | |
| 12586 | |
| 12587 | |
| 12588 | |
| 12589 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12590 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12591 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12592 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12593 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12594 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12595 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12598 | cat >conftest.$ac_ext <<_ACEOF |
| 12599 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12600 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12601 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12602 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12603 | #include <assert.h> |
| 12604 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12605 | #ifdef __cplusplus |
| 12606 | extern "C" |
| 12607 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12608 | /* 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] | 12609 | builtin and then its argument prototype would still apply. */ |
| 12610 | char $ac_func (); |
| 12611 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12613 | #ifdef F77_DUMMY_MAIN |
| 12614 | # ifdef __cplusplus |
| 12615 | extern "C" |
| 12616 | # endif |
| 12617 | int F77_DUMMY_MAIN() { return 1; } |
| 12618 | #endif |
| 12619 | int |
| 12620 | main () |
| 12621 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12622 | /* The GNU C library defines this for functions which it implements |
| 12623 | to always fail with ENOSYS. Some functions are actually named |
| 12624 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12626 | choke me |
| 12627 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12628 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12629 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12631 | ; |
| 12632 | return 0; |
| 12633 | } |
| 12634 | _ACEOF |
| 12635 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12637 | (eval $ac_link) 2>&5 |
| 12638 | ac_status=$? |
| 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12640 | (exit $ac_status); } && |
| 12641 | { ac_try='test -s conftest$ac_exeext' |
| 12642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12643 | (eval $ac_try) 2>&5 |
| 12644 | ac_status=$? |
| 12645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12646 | (exit $ac_status); }; }; then |
| 12647 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12649 | echo "$as_me: failed program was:" >&5 |
| 12650 | cat conftest.$ac_ext >&5 |
| 12651 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12652 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12653 | 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] | 12654 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12656 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12657 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12658 | cat >>confdefs.h <<_ACEOF |
| 12659 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12660 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12661 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12663 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12664 | fi |
| 12665 | done |
| 12666 | |
| 12667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12669 | for ac_func in getpgrp |
| 12670 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12671 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12672 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12673 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12674 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12677 | cat >conftest.$ac_ext <<_ACEOF |
| 12678 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12679 | #include "confdefs.h" |
| 12680 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12681 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12682 | #include <assert.h> |
| 12683 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12684 | #ifdef __cplusplus |
| 12685 | extern "C" |
| 12686 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12687 | /* 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] | 12688 | builtin and then its argument prototype would still apply. */ |
| 12689 | char $ac_func (); |
| 12690 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12692 | #ifdef F77_DUMMY_MAIN |
| 12693 | # ifdef __cplusplus |
| 12694 | extern "C" |
| 12695 | # endif |
| 12696 | int F77_DUMMY_MAIN() { return 1; } |
| 12697 | #endif |
| 12698 | int |
| 12699 | main () |
| 12700 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12701 | /* The GNU C library defines this for functions which it implements |
| 12702 | to always fail with ENOSYS. Some functions are actually named |
| 12703 | something starting with __ and the normal name is an alias. */ |
| 12704 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12705 | choke me |
| 12706 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12707 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12708 | #endif |
| 12709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12710 | ; |
| 12711 | return 0; |
| 12712 | } |
| 12713 | _ACEOF |
| 12714 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12716 | (eval $ac_link) 2>&5 |
| 12717 | ac_status=$? |
| 12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12719 | (exit $ac_status); } && |
| 12720 | { ac_try='test -s conftest$ac_exeext' |
| 12721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12722 | (eval $ac_try) 2>&5 |
| 12723 | ac_status=$? |
| 12724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12725 | (exit $ac_status); }; }; then |
| 12726 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 | echo "$as_me: failed program was:" >&5 |
| 12729 | cat conftest.$ac_ext >&5 |
| 12730 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12732 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12733 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12735 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12736 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12737 | cat >>confdefs.h <<_ACEOF |
| 12738 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12739 | _ACEOF |
| 12740 | cat >conftest.$ac_ext <<_ACEOF |
| 12741 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12742 | #include "confdefs.h" |
| 12743 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12744 | #ifdef F77_DUMMY_MAIN |
| 12745 | # ifdef __cplusplus |
| 12746 | extern "C" |
| 12747 | # endif |
| 12748 | int F77_DUMMY_MAIN() { return 1; } |
| 12749 | #endif |
| 12750 | int |
| 12751 | main () |
| 12752 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12753 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12754 | ; |
| 12755 | return 0; |
| 12756 | } |
| 12757 | _ACEOF |
| 12758 | rm -f conftest.$ac_objext |
| 12759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12760 | (eval $ac_compile) 2>&5 |
| 12761 | ac_status=$? |
| 12762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12763 | (exit $ac_status); } && |
| 12764 | { ac_try='test -s conftest.$ac_objext' |
| 12765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12766 | (eval $ac_try) 2>&5 |
| 12767 | ac_status=$? |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); }; }; then |
| 12770 | |
| 12771 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12772 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12773 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12777 | echo "$as_me: failed program was:" >&5 |
| 12778 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12779 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12781 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12782 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12783 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12784 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12785 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12786 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12787 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12789 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12790 | if test "$cross_compiling" = yes; then |
| 12791 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12792 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12793 | { (exit 1); exit 1; }; } |
| 12794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | cat >conftest.$ac_ext <<_ACEOF |
| 12796 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12797 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12798 | #if HAVE_UNISTD_H |
| 12799 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12802 | #ifdef F77_DUMMY_MAIN |
| 12803 | # ifdef __cplusplus |
| 12804 | extern "C" |
| 12805 | # endif |
| 12806 | int F77_DUMMY_MAIN() { return 1; } |
| 12807 | #endif |
| 12808 | int |
| 12809 | main () |
| 12810 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12811 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12812 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12813 | exit successfully. */ |
| 12814 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | ; |
| 12816 | return 0; |
| 12817 | } |
| 12818 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12819 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12821 | (eval $ac_link) 2>&5 |
| 12822 | ac_status=$? |
| 12823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12824 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12826 | (eval $ac_try) 2>&5 |
| 12827 | ac_status=$? |
| 12828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12829 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12830 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12831 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12832 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12833 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12834 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12835 | ( exit $ac_status ) |
| 12836 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12837 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12838 | 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] | 12839 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12840 | fi |
| 12841 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12842 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12843 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12844 | |
| 12845 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12846 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12848 | |
| 12849 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12851 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12852 | for ac_func in gettimeofday |
| 12853 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12854 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12855 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12856 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12857 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | cat >conftest.$ac_ext <<_ACEOF |
| 12861 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12862 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12863 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12865 | #include <assert.h> |
| 12866 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12867 | #ifdef __cplusplus |
| 12868 | extern "C" |
| 12869 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12870 | /* 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] | 12871 | builtin and then its argument prototype would still apply. */ |
| 12872 | char $ac_func (); |
| 12873 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | #ifdef F77_DUMMY_MAIN |
| 12876 | # ifdef __cplusplus |
| 12877 | extern "C" |
| 12878 | # endif |
| 12879 | int F77_DUMMY_MAIN() { return 1; } |
| 12880 | #endif |
| 12881 | int |
| 12882 | main () |
| 12883 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12884 | /* The GNU C library defines this for functions which it implements |
| 12885 | to always fail with ENOSYS. Some functions are actually named |
| 12886 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12887 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12888 | choke me |
| 12889 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12891 | #endif |
| 12892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | ; |
| 12894 | return 0; |
| 12895 | } |
| 12896 | _ACEOF |
| 12897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12899 | (eval $ac_link) 2>&5 |
| 12900 | ac_status=$? |
| 12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12902 | (exit $ac_status); } && |
| 12903 | { ac_try='test -s conftest$ac_exeext' |
| 12904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12905 | (eval $ac_try) 2>&5 |
| 12906 | ac_status=$? |
| 12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12908 | (exit $ac_status); }; }; then |
| 12909 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 | echo "$as_me: failed program was:" >&5 |
| 12912 | cat conftest.$ac_ext >&5 |
| 12913 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12916 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12918 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12919 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12920 | cat >>confdefs.h <<_ACEOF |
| 12921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12922 | _ACEOF |
| 12923 | cat >conftest.$ac_ext <<_ACEOF |
| 12924 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12925 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12926 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12927 | #ifdef F77_DUMMY_MAIN |
| 12928 | # ifdef __cplusplus |
| 12929 | extern "C" |
| 12930 | # endif |
| 12931 | int F77_DUMMY_MAIN() { return 1; } |
| 12932 | #endif |
| 12933 | int |
| 12934 | main () |
| 12935 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12936 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12937 | ; |
| 12938 | return 0; |
| 12939 | } |
| 12940 | _ACEOF |
| 12941 | rm -f conftest.$ac_objext |
| 12942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12943 | (eval $ac_compile) 2>&5 |
| 12944 | ac_status=$? |
| 12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12946 | (exit $ac_status); } && |
| 12947 | { ac_try='test -s conftest.$ac_objext' |
| 12948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12949 | (eval $ac_try) 2>&5 |
| 12950 | ac_status=$? |
| 12951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12952 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12953 | : |
| 12954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | echo "$as_me: failed program was:" >&5 |
| 12956 | cat conftest.$ac_ext >&5 |
| 12957 | |
| 12958 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12959 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12960 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12964 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12965 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12966 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12967 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12968 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12969 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12970 | echo "$as_me:$LINENO: checking for major" >&5 |
| 12971 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 12972 | cat >conftest.$ac_ext <<_ACEOF |
| 12973 | #line $LINENO "configure" |
| 12974 | #include "confdefs.h" |
| 12975 | |
| 12976 | #if defined(MAJOR_IN_MKDEV) |
| 12977 | #include <sys/mkdev.h> |
| 12978 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12979 | #include <sys/sysmacros.h> |
| 12980 | #else |
| 12981 | #include <sys/types.h> |
| 12982 | #endif |
| 12983 | |
| 12984 | #ifdef F77_DUMMY_MAIN |
| 12985 | # ifdef __cplusplus |
| 12986 | extern "C" |
| 12987 | # endif |
| 12988 | int F77_DUMMY_MAIN() { return 1; } |
| 12989 | #endif |
| 12990 | int |
| 12991 | main () |
| 12992 | { |
| 12993 | |
| 12994 | makedev(major(0),minor(0)); |
| 12995 | |
| 12996 | ; |
| 12997 | return 0; |
| 12998 | } |
| 12999 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13000 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13002 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13003 | ac_status=$? |
| 13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13005 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13006 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13008 | (eval $ac_try) 2>&5 |
| 13009 | ac_status=$? |
| 13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13011 | (exit $ac_status); }; }; then |
| 13012 | |
| 13013 | |
| 13014 | cat >>confdefs.h <<\_ACEOF |
| 13015 | #define HAVE_DEVICE_MACROS 1 |
| 13016 | _ACEOF |
| 13017 | |
| 13018 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13019 | echo "${ECHO_T}yes" >&6 |
| 13020 | |
| 13021 | else |
| 13022 | echo "$as_me: failed program was:" >&5 |
| 13023 | cat conftest.$ac_ext >&5 |
| 13024 | |
| 13025 | echo "$as_me:$LINENO: result: no" >&5 |
| 13026 | echo "${ECHO_T}no" >&6 |
| 13027 | |
| 13028 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13029 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13030 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13031 | # 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] | 13032 | # for [no]getaddrinfo in netdb.h. |
| 13033 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 13034 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 13035 | cat >conftest.$ac_ext <<_ACEOF |
| 13036 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13037 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13038 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13039 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13040 | #include <sys/socket.h> |
| 13041 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13042 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13044 | #ifdef F77_DUMMY_MAIN |
| 13045 | # ifdef __cplusplus |
| 13046 | extern "C" |
| 13047 | # endif |
| 13048 | int F77_DUMMY_MAIN() { return 1; } |
| 13049 | #endif |
| 13050 | int |
| 13051 | main () |
| 13052 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13053 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13054 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | ; |
| 13057 | return 0; |
| 13058 | } |
| 13059 | _ACEOF |
| 13060 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13062 | (eval $ac_link) 2>&5 |
| 13063 | ac_status=$? |
| 13064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13065 | (exit $ac_status); } && |
| 13066 | { ac_try='test -s conftest$ac_exeext' |
| 13067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13068 | (eval $ac_try) 2>&5 |
| 13069 | ac_status=$? |
| 13070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13071 | (exit $ac_status); }; }; then |
| 13072 | |
| 13073 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13074 | echo "${ECHO_T}yes" >&6 |
| 13075 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 13076 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13077 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13079 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13080 | buggygetaddrinfo=yes |
| 13081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13082 | cat >conftest.$ac_ext <<_ACEOF |
| 13083 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13084 | #include "confdefs.h" |
| 13085 | |
| 13086 | #include <sys/types.h> |
| 13087 | #include <netdb.h> |
| 13088 | #include <string.h> |
| 13089 | #include <sys/socket.h> |
| 13090 | #include <netinet/in.h> |
| 13091 | |
| 13092 | main() |
| 13093 | { |
| 13094 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 13095 | struct addrinfo hints, *ai, *aitop; |
| 13096 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 13097 | |
| 13098 | for (passive = 0; passive <= 1; passive++) { |
| 13099 | memset(&hints, 0, sizeof(hints)); |
| 13100 | hints.ai_family = AF_UNSPEC; |
| 13101 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 13102 | hints.ai_socktype = SOCK_STREAM; |
| 13103 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 13104 | (void)gai_strerror(gaierr); |
| 13105 | goto bad; |
| 13106 | } |
| 13107 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 13108 | if (ai->ai_addr == NULL || |
| 13109 | ai->ai_addrlen == 0 || |
| 13110 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 13111 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 13112 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 13113 | goto bad; |
| 13114 | } |
| 13115 | switch (ai->ai_family) { |
| 13116 | case AF_INET: |
| 13117 | if (strcmp(strport, "54321") != 0) { |
| 13118 | goto bad; |
| 13119 | } |
| 13120 | if (passive) { |
| 13121 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 13122 | goto bad; |
| 13123 | } |
| 13124 | } else { |
| 13125 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 13126 | goto bad; |
| 13127 | } |
| 13128 | } |
| 13129 | inet4++; |
| 13130 | break; |
| 13131 | case AF_INET6: |
| 13132 | if (strcmp(strport, "54321") != 0) { |
| 13133 | goto bad; |
| 13134 | } |
| 13135 | if (passive) { |
| 13136 | if (strcmp(straddr, "::") != 0) { |
| 13137 | goto bad; |
| 13138 | } |
| 13139 | } else { |
| 13140 | if (strcmp(straddr, "::1") != 0) { |
| 13141 | goto bad; |
| 13142 | } |
| 13143 | } |
| 13144 | inet6++; |
| 13145 | break; |
| 13146 | case AF_UNSPEC: |
| 13147 | goto bad; |
| 13148 | break; |
| 13149 | default: |
| 13150 | /* another family support? */ |
| 13151 | break; |
| 13152 | } |
| 13153 | } |
| 13154 | } |
| 13155 | |
| 13156 | if (!(inet4 == 0 || inet4 == 2)) |
| 13157 | goto bad; |
| 13158 | if (!(inet6 == 0 || inet6 == 2)) |
| 13159 | goto bad; |
| 13160 | |
| 13161 | if (aitop) |
| 13162 | freeaddrinfo(aitop); |
| 13163 | exit(0); |
| 13164 | |
| 13165 | bad: |
| 13166 | if (aitop) |
| 13167 | freeaddrinfo(aitop); |
| 13168 | exit(1); |
| 13169 | } |
| 13170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13171 | _ACEOF |
| 13172 | rm -f conftest$ac_exeext |
| 13173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13174 | (eval $ac_link) 2>&5 |
| 13175 | ac_status=$? |
| 13176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13177 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13179 | (eval $ac_try) 2>&5 |
| 13180 | ac_status=$? |
| 13181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13182 | (exit $ac_status); }; }; then |
| 13183 | echo "$as_me:$LINENO: result: good" >&5 |
| 13184 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13185 | buggygetaddrinfo=no |
| 13186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13188 | echo "$as_me: failed program was:" >&5 |
| 13189 | cat conftest.$ac_ext >&5 |
| 13190 | ( exit $ac_status ) |
| 13191 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13192 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13193 | buggygetaddrinfo=yes |
| 13194 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13195 | 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] | 13196 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13198 | echo "$as_me: failed program was:" >&5 |
| 13199 | cat conftest.$ac_ext >&5 |
| 13200 | |
| 13201 | echo "$as_me:$LINENO: result: no" >&5 |
| 13202 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13203 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13204 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13205 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13206 | 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] | 13207 | |
| 13208 | if test "$buggygetaddrinfo" = "yes"; then |
| 13209 | if test "$ipv6" = "yes"; then |
| 13210 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13211 | echo ' or you can specify "--disable-ipv6"'. |
| 13212 | exit 1 |
| 13213 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | |
| 13216 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13217 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13218 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13219 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13220 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13221 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13222 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13223 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13224 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13225 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13226 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13227 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13230 | cat >conftest.$ac_ext <<_ACEOF |
| 13231 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13232 | #include "confdefs.h" |
| 13233 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13234 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13235 | #include <assert.h> |
| 13236 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | #ifdef __cplusplus |
| 13238 | extern "C" |
| 13239 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13240 | /* 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] | 13241 | builtin and then its argument prototype would still apply. */ |
| 13242 | char $ac_func (); |
| 13243 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13245 | #ifdef F77_DUMMY_MAIN |
| 13246 | # ifdef __cplusplus |
| 13247 | extern "C" |
| 13248 | # endif |
| 13249 | int F77_DUMMY_MAIN() { return 1; } |
| 13250 | #endif |
| 13251 | int |
| 13252 | main () |
| 13253 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13254 | /* The GNU C library defines this for functions which it implements |
| 13255 | to always fail with ENOSYS. Some functions are actually named |
| 13256 | something starting with __ and the normal name is an alias. */ |
| 13257 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13258 | choke me |
| 13259 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13260 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13261 | #endif |
| 13262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | ; |
| 13264 | return 0; |
| 13265 | } |
| 13266 | _ACEOF |
| 13267 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13269 | (eval $ac_link) 2>&5 |
| 13270 | ac_status=$? |
| 13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13272 | (exit $ac_status); } && |
| 13273 | { ac_try='test -s conftest$ac_exeext' |
| 13274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13275 | (eval $ac_try) 2>&5 |
| 13276 | ac_status=$? |
| 13277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13278 | (exit $ac_status); }; }; then |
| 13279 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13281 | echo "$as_me: failed program was:" >&5 |
| 13282 | cat conftest.$ac_ext >&5 |
| 13283 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13284 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13286 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13288 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13289 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13290 | cat >>confdefs.h <<_ACEOF |
| 13291 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13292 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13293 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13294 | fi |
| 13295 | done |
| 13296 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13297 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13298 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13299 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13300 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13301 | if test "${ac_cv_header_time+set}" = set; then |
| 13302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13304 | cat >conftest.$ac_ext <<_ACEOF |
| 13305 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13306 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13307 | #include <sys/types.h> |
| 13308 | #include <sys/time.h> |
| 13309 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13310 | |
| 13311 | #ifdef F77_DUMMY_MAIN |
| 13312 | # ifdef __cplusplus |
| 13313 | extern "C" |
| 13314 | # endif |
| 13315 | int F77_DUMMY_MAIN() { return 1; } |
| 13316 | #endif |
| 13317 | int |
| 13318 | main () |
| 13319 | { |
| 13320 | if ((struct tm *) 0) |
| 13321 | return 0; |
| 13322 | ; |
| 13323 | return 0; |
| 13324 | } |
| 13325 | _ACEOF |
| 13326 | rm -f conftest.$ac_objext |
| 13327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13328 | (eval $ac_compile) 2>&5 |
| 13329 | ac_status=$? |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); } && |
| 13332 | { ac_try='test -s conftest.$ac_objext' |
| 13333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13334 | (eval $ac_try) 2>&5 |
| 13335 | ac_status=$? |
| 13336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13337 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13338 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13340 | echo "$as_me: failed program was:" >&5 |
| 13341 | cat conftest.$ac_ext >&5 |
| 13342 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13343 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13347 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13348 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 | |
| 13350 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13351 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13352 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13353 | |
| 13354 | fi |
| 13355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13356 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13357 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13358 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | cat >conftest.$ac_ext <<_ACEOF |
| 13362 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13363 | #include "confdefs.h" |
| 13364 | #include <sys/types.h> |
| 13365 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 | |
| 13367 | #ifdef F77_DUMMY_MAIN |
| 13368 | # ifdef __cplusplus |
| 13369 | extern "C" |
| 13370 | # endif |
| 13371 | int F77_DUMMY_MAIN() { return 1; } |
| 13372 | #endif |
| 13373 | int |
| 13374 | main () |
| 13375 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13376 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13377 | ; |
| 13378 | return 0; |
| 13379 | } |
| 13380 | _ACEOF |
| 13381 | rm -f conftest.$ac_objext |
| 13382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13383 | (eval $ac_compile) 2>&5 |
| 13384 | ac_status=$? |
| 13385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13386 | (exit $ac_status); } && |
| 13387 | { ac_try='test -s conftest.$ac_objext' |
| 13388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13389 | (eval $ac_try) 2>&5 |
| 13390 | ac_status=$? |
| 13391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13392 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13393 | ac_cv_struct_tm=time.h |
| 13394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13395 | echo "$as_me: failed program was:" >&5 |
| 13396 | cat conftest.$ac_ext >&5 |
| 13397 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13398 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13399 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13400 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13401 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13402 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13403 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 | |
| 13405 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13406 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13408 | |
| 13409 | fi |
| 13410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13411 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13412 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13413 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 13414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13416 | cat >conftest.$ac_ext <<_ACEOF |
| 13417 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13418 | #include "confdefs.h" |
| 13419 | #include <sys/types.h> |
| 13420 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13421 | |
| 13422 | |
| 13423 | #ifdef F77_DUMMY_MAIN |
| 13424 | # ifdef __cplusplus |
| 13425 | extern "C" |
| 13426 | # endif |
| 13427 | int F77_DUMMY_MAIN() { return 1; } |
| 13428 | #endif |
| 13429 | int |
| 13430 | main () |
| 13431 | { |
| 13432 | static struct tm ac_aggr; |
| 13433 | if (ac_aggr.tm_zone) |
| 13434 | return 0; |
| 13435 | ; |
| 13436 | return 0; |
| 13437 | } |
| 13438 | _ACEOF |
| 13439 | rm -f conftest.$ac_objext |
| 13440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13441 | (eval $ac_compile) 2>&5 |
| 13442 | ac_status=$? |
| 13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13444 | (exit $ac_status); } && |
| 13445 | { ac_try='test -s conftest.$ac_objext' |
| 13446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13447 | (eval $ac_try) 2>&5 |
| 13448 | ac_status=$? |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13450 | (exit $ac_status); }; }; then |
| 13451 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13453 | echo "$as_me: failed program was:" >&5 |
| 13454 | cat conftest.$ac_ext >&5 |
| 13455 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13456 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13458 | fi |
| 13459 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13460 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13461 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13462 | |
| 13463 | cat >>confdefs.h <<_ACEOF |
| 13464 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13465 | _ACEOF |
| 13466 | |
| 13467 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13468 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13471 | |
| 13472 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13473 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13474 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13475 | |
| 13476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13477 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13478 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13479 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | cat >conftest.$ac_ext <<_ACEOF |
| 13483 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13484 | #include "confdefs.h" |
| 13485 | #include <time.h> |
| 13486 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13487 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13488 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 | |
| 13490 | #ifdef F77_DUMMY_MAIN |
| 13491 | # ifdef __cplusplus |
| 13492 | extern "C" |
| 13493 | # endif |
| 13494 | int F77_DUMMY_MAIN() { return 1; } |
| 13495 | #endif |
| 13496 | int |
| 13497 | main () |
| 13498 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13499 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | ; |
| 13501 | return 0; |
| 13502 | } |
| 13503 | _ACEOF |
| 13504 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13506 | (eval $ac_link) 2>&5 |
| 13507 | ac_status=$? |
| 13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13509 | (exit $ac_status); } && |
| 13510 | { ac_try='test -s conftest$ac_exeext' |
| 13511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13512 | (eval $ac_try) 2>&5 |
| 13513 | ac_status=$? |
| 13514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13515 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13516 | ac_cv_var_tzname=yes |
| 13517 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 | echo "$as_me: failed program was:" >&5 |
| 13519 | cat conftest.$ac_ext >&5 |
| 13520 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13521 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13523 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 13525 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13526 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | |
| 13528 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13529 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13530 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13531 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13532 | fi |
| 13533 | fi |
| 13534 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13535 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13536 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13537 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13539 | else |
| 13540 | cat >conftest.$ac_ext <<_ACEOF |
| 13541 | #line $LINENO "configure" |
| 13542 | #include "confdefs.h" |
| 13543 | $ac_includes_default |
| 13544 | #ifdef F77_DUMMY_MAIN |
| 13545 | # ifdef __cplusplus |
| 13546 | extern "C" |
| 13547 | # endif |
| 13548 | int F77_DUMMY_MAIN() { return 1; } |
| 13549 | #endif |
| 13550 | int |
| 13551 | main () |
| 13552 | { |
| 13553 | static struct stat ac_aggr; |
| 13554 | if (ac_aggr.st_rdev) |
| 13555 | return 0; |
| 13556 | ; |
| 13557 | return 0; |
| 13558 | } |
| 13559 | _ACEOF |
| 13560 | rm -f conftest.$ac_objext |
| 13561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13562 | (eval $ac_compile) 2>&5 |
| 13563 | ac_status=$? |
| 13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13565 | (exit $ac_status); } && |
| 13566 | { ac_try='test -s conftest.$ac_objext' |
| 13567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13568 | (eval $ac_try) 2>&5 |
| 13569 | ac_status=$? |
| 13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13571 | (exit $ac_status); }; }; then |
| 13572 | ac_cv_member_struct_stat_st_rdev=yes |
| 13573 | else |
| 13574 | echo "$as_me: failed program was:" >&5 |
| 13575 | cat conftest.$ac_ext >&5 |
| 13576 | ac_cv_member_struct_stat_st_rdev=no |
| 13577 | fi |
| 13578 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13579 | fi |
| 13580 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13581 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13582 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13583 | |
| 13584 | cat >>confdefs.h <<_ACEOF |
| 13585 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13586 | _ACEOF |
| 13587 | |
| 13588 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13589 | fi |
| 13590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13591 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13592 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13593 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 | cat >conftest.$ac_ext <<_ACEOF |
| 13597 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13598 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13599 | $ac_includes_default |
| 13600 | #ifdef F77_DUMMY_MAIN |
| 13601 | # ifdef __cplusplus |
| 13602 | extern "C" |
| 13603 | # endif |
| 13604 | int F77_DUMMY_MAIN() { return 1; } |
| 13605 | #endif |
| 13606 | int |
| 13607 | main () |
| 13608 | { |
| 13609 | static struct stat ac_aggr; |
| 13610 | if (ac_aggr.st_blksize) |
| 13611 | return 0; |
| 13612 | ; |
| 13613 | return 0; |
| 13614 | } |
| 13615 | _ACEOF |
| 13616 | rm -f conftest.$ac_objext |
| 13617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13618 | (eval $ac_compile) 2>&5 |
| 13619 | ac_status=$? |
| 13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13621 | (exit $ac_status); } && |
| 13622 | { ac_try='test -s conftest.$ac_objext' |
| 13623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13624 | (eval $ac_try) 2>&5 |
| 13625 | ac_status=$? |
| 13626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13627 | (exit $ac_status); }; }; then |
| 13628 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13629 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13630 | echo "$as_me: failed program was:" >&5 |
| 13631 | cat conftest.$ac_ext >&5 |
| 13632 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13636 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13637 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13638 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13640 | cat >>confdefs.h <<_ACEOF |
| 13641 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13642 | _ACEOF |
| 13643 | |
| 13644 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13645 | fi |
| 13646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13647 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13648 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13649 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 | cat >conftest.$ac_ext <<_ACEOF |
| 13653 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13654 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13655 | $ac_includes_default |
| 13656 | #ifdef F77_DUMMY_MAIN |
| 13657 | # ifdef __cplusplus |
| 13658 | extern "C" |
| 13659 | # endif |
| 13660 | int F77_DUMMY_MAIN() { return 1; } |
| 13661 | #endif |
| 13662 | int |
| 13663 | main () |
| 13664 | { |
| 13665 | static struct stat ac_aggr; |
| 13666 | if (ac_aggr.st_blocks) |
| 13667 | return 0; |
| 13668 | ; |
| 13669 | return 0; |
| 13670 | } |
| 13671 | _ACEOF |
| 13672 | rm -f conftest.$ac_objext |
| 13673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13674 | (eval $ac_compile) 2>&5 |
| 13675 | ac_status=$? |
| 13676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13677 | (exit $ac_status); } && |
| 13678 | { ac_try='test -s conftest.$ac_objext' |
| 13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13680 | (eval $ac_try) 2>&5 |
| 13681 | ac_status=$? |
| 13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13683 | (exit $ac_status); }; }; then |
| 13684 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13686 | echo "$as_me: failed program was:" >&5 |
| 13687 | cat conftest.$ac_ext >&5 |
| 13688 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13689 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13690 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13691 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13692 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13693 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13694 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13696 | cat >>confdefs.h <<_ACEOF |
| 13697 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13698 | _ACEOF |
| 13699 | |
| 13700 | |
| 13701 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13702 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13704 | |
| 13705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13706 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13707 | fi |
| 13708 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13710 | |
| 13711 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13712 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13713 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13716 | cat >conftest.$ac_ext <<_ACEOF |
| 13717 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13718 | #include "confdefs.h" |
| 13719 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13720 | #ifdef F77_DUMMY_MAIN |
| 13721 | # ifdef __cplusplus |
| 13722 | extern "C" |
| 13723 | # endif |
| 13724 | int F77_DUMMY_MAIN() { return 1; } |
| 13725 | #endif |
| 13726 | int |
| 13727 | main () |
| 13728 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13729 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 | ; |
| 13731 | return 0; |
| 13732 | } |
| 13733 | _ACEOF |
| 13734 | rm -f conftest.$ac_objext |
| 13735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13736 | (eval $ac_compile) 2>&5 |
| 13737 | ac_status=$? |
| 13738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13739 | (exit $ac_status); } && |
| 13740 | { ac_try='test -s conftest.$ac_objext' |
| 13741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13742 | (eval $ac_try) 2>&5 |
| 13743 | ac_status=$? |
| 13744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13745 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13746 | ac_cv_header_time_altzone=yes |
| 13747 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 | echo "$as_me: failed program was:" >&5 |
| 13749 | cat conftest.$ac_ext >&5 |
| 13750 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13751 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13753 | fi |
| 13754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13755 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13756 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13757 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13758 | |
| 13759 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13760 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13761 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13762 | |
| 13763 | fi |
| 13764 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13765 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13766 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13767 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13768 | cat >conftest.$ac_ext <<_ACEOF |
| 13769 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13770 | #include "confdefs.h" |
| 13771 | |
| 13772 | #include <sys/types.h> |
| 13773 | #include <sys/select.h> |
| 13774 | #include <sys/time.h> |
| 13775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13776 | #ifdef F77_DUMMY_MAIN |
| 13777 | # ifdef __cplusplus |
| 13778 | extern "C" |
| 13779 | # endif |
| 13780 | int F77_DUMMY_MAIN() { return 1; } |
| 13781 | #endif |
| 13782 | int |
| 13783 | main () |
| 13784 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13785 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13786 | ; |
| 13787 | return 0; |
| 13788 | } |
| 13789 | _ACEOF |
| 13790 | rm -f conftest.$ac_objext |
| 13791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13792 | (eval $ac_compile) 2>&5 |
| 13793 | ac_status=$? |
| 13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13795 | (exit $ac_status); } && |
| 13796 | { ac_try='test -s conftest.$ac_objext' |
| 13797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13798 | (eval $ac_try) 2>&5 |
| 13799 | ac_status=$? |
| 13800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13801 | (exit $ac_status); }; }; then |
| 13802 | |
| 13803 | |
| 13804 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13805 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13806 | _ACEOF |
| 13807 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13808 | was_it_defined=yes |
| 13809 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | echo "$as_me: failed program was:" >&5 |
| 13812 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13813 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13814 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13815 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13816 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13818 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13819 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13820 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13823 | cat >conftest.$ac_ext <<_ACEOF |
| 13824 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13825 | #include "confdefs.h" |
| 13826 | |
| 13827 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13828 | #ifdef F77_DUMMY_MAIN |
| 13829 | # ifdef __cplusplus |
| 13830 | extern "C" |
| 13831 | # endif |
| 13832 | int F77_DUMMY_MAIN() { return 1; } |
| 13833 | #endif |
| 13834 | int |
| 13835 | main () |
| 13836 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13837 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13838 | ; |
| 13839 | return 0; |
| 13840 | } |
| 13841 | _ACEOF |
| 13842 | rm -f conftest.$ac_objext |
| 13843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13844 | (eval $ac_compile) 2>&5 |
| 13845 | ac_status=$? |
| 13846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13847 | (exit $ac_status); } && |
| 13848 | { ac_try='test -s conftest.$ac_objext' |
| 13849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13850 | (eval $ac_try) 2>&5 |
| 13851 | ac_status=$? |
| 13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13853 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13854 | ac_cv_struct_addrinfo=yes |
| 13855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13856 | echo "$as_me: failed program was:" >&5 |
| 13857 | cat conftest.$ac_ext >&5 |
| 13858 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13860 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13861 | fi |
| 13862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13863 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13864 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13865 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13866 | |
| 13867 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13868 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13869 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13870 | |
| 13871 | fi |
| 13872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13873 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13874 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13875 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13878 | cat >conftest.$ac_ext <<_ACEOF |
| 13879 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13880 | #include "confdefs.h" |
| 13881 | |
| 13882 | # include <sys/types.h> |
| 13883 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13884 | #ifdef F77_DUMMY_MAIN |
| 13885 | # ifdef __cplusplus |
| 13886 | extern "C" |
| 13887 | # endif |
| 13888 | int F77_DUMMY_MAIN() { return 1; } |
| 13889 | #endif |
| 13890 | int |
| 13891 | main () |
| 13892 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13893 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13894 | ; |
| 13895 | return 0; |
| 13896 | } |
| 13897 | _ACEOF |
| 13898 | rm -f conftest.$ac_objext |
| 13899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13900 | (eval $ac_compile) 2>&5 |
| 13901 | ac_status=$? |
| 13902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13903 | (exit $ac_status); } && |
| 13904 | { ac_try='test -s conftest.$ac_objext' |
| 13905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13906 | (eval $ac_try) 2>&5 |
| 13907 | ac_status=$? |
| 13908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13909 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13910 | ac_cv_struct_sockaddr_storage=yes |
| 13911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13912 | echo "$as_me: failed program was:" >&5 |
| 13913 | cat conftest.$ac_ext >&5 |
| 13914 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13915 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13916 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13917 | fi |
| 13918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13919 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13920 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13921 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13922 | |
| 13923 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13924 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13925 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13926 | |
| 13927 | fi |
| 13928 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13929 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13930 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13932 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13933 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13934 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13937 | cat >conftest.$ac_ext <<_ACEOF |
| 13938 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13939 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13940 | $ac_includes_default |
| 13941 | #ifdef F77_DUMMY_MAIN |
| 13942 | # ifdef __cplusplus |
| 13943 | extern "C" |
| 13944 | # endif |
| 13945 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13946 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13947 | int |
| 13948 | main () |
| 13949 | { |
| 13950 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13951 | test_array [0] = 0 |
| 13952 | |
| 13953 | ; |
| 13954 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13955 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | _ACEOF |
| 13957 | rm -f conftest.$ac_objext |
| 13958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13959 | (eval $ac_compile) 2>&5 |
| 13960 | ac_status=$? |
| 13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13962 | (exit $ac_status); } && |
| 13963 | { ac_try='test -s conftest.$ac_objext' |
| 13964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13965 | (eval $ac_try) 2>&5 |
| 13966 | ac_status=$? |
| 13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13968 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13969 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13970 | else |
| 13971 | echo "$as_me: failed program was:" >&5 |
| 13972 | cat conftest.$ac_ext >&5 |
| 13973 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13974 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13976 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13977 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13978 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13979 | 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] | 13980 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13981 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13982 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13983 | |
| 13984 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13986 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13987 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13988 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13991 | ac_cv_prog_cc_stdc=no |
| 13992 | ac_save_CC=$CC |
| 13993 | cat >conftest.$ac_ext <<_ACEOF |
| 13994 | #line $LINENO "configure" |
| 13995 | #include "confdefs.h" |
| 13996 | #include <stdarg.h> |
| 13997 | #include <stdio.h> |
| 13998 | #include <sys/types.h> |
| 13999 | #include <sys/stat.h> |
| 14000 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 14001 | struct buf { int x; }; |
| 14002 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 14003 | static char *e (p, i) |
| 14004 | char **p; |
| 14005 | int i; |
| 14006 | { |
| 14007 | return p[i]; |
| 14008 | } |
| 14009 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 14010 | { |
| 14011 | char *s; |
| 14012 | va_list v; |
| 14013 | va_start (v,p); |
| 14014 | s = g (p, va_arg (v,int)); |
| 14015 | va_end (v); |
| 14016 | return s; |
| 14017 | } |
| 14018 | int test (int i, double x); |
| 14019 | struct s1 {int (*f) (int a);}; |
| 14020 | struct s2 {int (*f) (double a);}; |
| 14021 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 14022 | int argc; |
| 14023 | char **argv; |
| 14024 | #ifdef F77_DUMMY_MAIN |
| 14025 | # ifdef __cplusplus |
| 14026 | extern "C" |
| 14027 | # endif |
| 14028 | int F77_DUMMY_MAIN() { return 1; } |
| 14029 | #endif |
| 14030 | int |
| 14031 | main () |
| 14032 | { |
| 14033 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 14034 | ; |
| 14035 | return 0; |
| 14036 | } |
| 14037 | _ACEOF |
| 14038 | # Don't try gcc -ansi; that turns off useful extensions and |
| 14039 | # breaks some systems' header files. |
| 14040 | # AIX -qlanglvl=ansi |
| 14041 | # Ultrix and OSF/1 -std1 |
| 14042 | # HP-UX 10.20 and later -Ae |
| 14043 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 14044 | # SVR4 -Xc -D__EXTENSIONS__ |
| 14045 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 14046 | do |
| 14047 | CC="$ac_save_CC $ac_arg" |
| 14048 | rm -f conftest.$ac_objext |
| 14049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14050 | (eval $ac_compile) 2>&5 |
| 14051 | ac_status=$? |
| 14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14053 | (exit $ac_status); } && |
| 14054 | { ac_try='test -s conftest.$ac_objext' |
| 14055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14056 | (eval $ac_try) 2>&5 |
| 14057 | ac_status=$? |
| 14058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14059 | (exit $ac_status); }; }; then |
| 14060 | ac_cv_prog_cc_stdc=$ac_arg |
| 14061 | break |
| 14062 | else |
| 14063 | echo "$as_me: failed program was:" >&5 |
| 14064 | cat conftest.$ac_ext >&5 |
| 14065 | fi |
| 14066 | rm -f conftest.$ac_objext |
| 14067 | done |
| 14068 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 14069 | CC=$ac_save_CC |
| 14070 | |
| 14071 | fi |
| 14072 | |
| 14073 | case "x$ac_cv_prog_cc_stdc" in |
| 14074 | x|xno) |
| 14075 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 14076 | echo "${ECHO_T}none needed" >&6 ;; |
| 14077 | *) |
| 14078 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 14079 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 14080 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 14081 | esac |
| 14082 | |
| 14083 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14084 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14085 | if test "${ac_cv_c_const+set}" = set; then |
| 14086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14087 | else |
| 14088 | cat >conftest.$ac_ext <<_ACEOF |
| 14089 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14090 | #include "confdefs.h" |
| 14091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 | #ifdef F77_DUMMY_MAIN |
| 14093 | # ifdef __cplusplus |
| 14094 | extern "C" |
| 14095 | # endif |
| 14096 | int F77_DUMMY_MAIN() { return 1; } |
| 14097 | #endif |
| 14098 | int |
| 14099 | main () |
| 14100 | { |
| 14101 | /* FIXME: Include the comments suggested by Paul. */ |
| 14102 | #ifndef __cplusplus |
| 14103 | /* Ultrix mips cc rejects this. */ |
| 14104 | typedef int charset[2]; |
| 14105 | const charset x; |
| 14106 | /* SunOS 4.1.1 cc rejects this. */ |
| 14107 | char const *const *ccp; |
| 14108 | char **p; |
| 14109 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14110 | struct point {int x, y;}; |
| 14111 | static struct point const zero = {0,0}; |
| 14112 | /* AIX XL C 1.02.0.0 rejects this. |
| 14113 | It does not let you subtract one const X* pointer from another in |
| 14114 | an arm of an if-expression whose if-part is not a constant |
| 14115 | expression */ |
| 14116 | const char *g = "string"; |
| 14117 | ccp = &g + (g ? g-g : 0); |
| 14118 | /* HPUX 7.0 cc rejects these. */ |
| 14119 | ++ccp; |
| 14120 | p = (char**) ccp; |
| 14121 | ccp = (char const *const *) p; |
| 14122 | { /* SCO 3.2v4 cc rejects this. */ |
| 14123 | char *t; |
| 14124 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14126 | *t++ = 0; |
| 14127 | } |
| 14128 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14129 | int x[] = {25, 17}; |
| 14130 | const int *foo = &x[0]; |
| 14131 | ++foo; |
| 14132 | } |
| 14133 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14134 | typedef const int *iptr; |
| 14135 | iptr p = 0; |
| 14136 | ++p; |
| 14137 | } |
| 14138 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14139 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14140 | struct s { int j; const int *ap[3]; }; |
| 14141 | struct s *b; b->j = 5; |
| 14142 | } |
| 14143 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14144 | const int foo = 10; |
| 14145 | } |
| 14146 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14148 | ; |
| 14149 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14150 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | _ACEOF |
| 14152 | rm -f conftest.$ac_objext |
| 14153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14154 | (eval $ac_compile) 2>&5 |
| 14155 | ac_status=$? |
| 14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14157 | (exit $ac_status); } && |
| 14158 | { ac_try='test -s conftest.$ac_objext' |
| 14159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14160 | (eval $ac_try) 2>&5 |
| 14161 | ac_status=$? |
| 14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14163 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14164 | ac_cv_c_const=yes |
| 14165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14166 | echo "$as_me: failed program was:" >&5 |
| 14167 | cat conftest.$ac_ext >&5 |
| 14168 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14169 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14170 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14171 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14173 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14174 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14175 | |
| 14176 | cat >>confdefs.h <<\_ACEOF |
| 14177 | #define const |
| 14178 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14179 | |
| 14180 | fi |
| 14181 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14182 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14183 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14184 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14185 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14186 | cat >conftest.$ac_ext <<_ACEOF |
| 14187 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14188 | #include "confdefs.h" |
| 14189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14190 | #ifdef F77_DUMMY_MAIN |
| 14191 | # ifdef __cplusplus |
| 14192 | extern "C" |
| 14193 | # endif |
| 14194 | int F77_DUMMY_MAIN() { return 1; } |
| 14195 | #endif |
| 14196 | int |
| 14197 | main () |
| 14198 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14199 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14200 | ; |
| 14201 | return 0; |
| 14202 | } |
| 14203 | _ACEOF |
| 14204 | rm -f conftest.$ac_objext |
| 14205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14206 | (eval $ac_compile) 2>&5 |
| 14207 | ac_status=$? |
| 14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14209 | (exit $ac_status); } && |
| 14210 | { ac_try='test -s conftest.$ac_objext' |
| 14211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14212 | (eval $ac_try) 2>&5 |
| 14213 | ac_status=$? |
| 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14215 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14216 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14218 | echo "$as_me: failed program was:" >&5 |
| 14219 | cat conftest.$ac_ext >&5 |
| 14220 | |
| 14221 | cat >>confdefs.h <<\_ACEOF |
| 14222 | #define volatile |
| 14223 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14224 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14225 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14226 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14227 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14228 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14229 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14230 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14231 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14232 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14233 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14234 | cat >conftest.$ac_ext <<_ACEOF |
| 14235 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14236 | #include "confdefs.h" |
| 14237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14238 | #ifdef F77_DUMMY_MAIN |
| 14239 | # ifdef __cplusplus |
| 14240 | extern "C" |
| 14241 | # endif |
| 14242 | int F77_DUMMY_MAIN() { return 1; } |
| 14243 | #endif |
| 14244 | int |
| 14245 | main () |
| 14246 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14247 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14248 | ; |
| 14249 | return 0; |
| 14250 | } |
| 14251 | _ACEOF |
| 14252 | rm -f conftest.$ac_objext |
| 14253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14254 | (eval $ac_compile) 2>&5 |
| 14255 | ac_status=$? |
| 14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14257 | (exit $ac_status); } && |
| 14258 | { ac_try='test -s conftest.$ac_objext' |
| 14259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14260 | (eval $ac_try) 2>&5 |
| 14261 | ac_status=$? |
| 14262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14263 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14264 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14266 | echo "$as_me: failed program was:" >&5 |
| 14267 | cat conftest.$ac_ext >&5 |
| 14268 | |
| 14269 | cat >>confdefs.h <<\_ACEOF |
| 14270 | #define signed |
| 14271 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14272 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14273 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14275 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14276 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14277 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14278 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14279 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14280 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14281 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 14282 | cat >conftest.$ac_ext <<_ACEOF |
| 14283 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14284 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14285 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14286 | #ifdef F77_DUMMY_MAIN |
| 14287 | # ifdef __cplusplus |
| 14288 | extern "C" |
| 14289 | # endif |
| 14290 | int F77_DUMMY_MAIN() { return 1; } |
| 14291 | #endif |
| 14292 | int |
| 14293 | main () |
| 14294 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14295 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14296 | ; |
| 14297 | return 0; |
| 14298 | } |
| 14299 | _ACEOF |
| 14300 | rm -f conftest.$ac_objext |
| 14301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14302 | (eval $ac_compile) 2>&5 |
| 14303 | ac_status=$? |
| 14304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14305 | (exit $ac_status); } && |
| 14306 | { ac_try='test -s conftest.$ac_objext' |
| 14307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14308 | (eval $ac_try) 2>&5 |
| 14309 | ac_status=$? |
| 14310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14311 | (exit $ac_status); }; }; then |
| 14312 | |
| 14313 | |
| 14314 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14315 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14316 | _ACEOF |
| 14317 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14318 | have_prototypes=yes |
| 14319 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14321 | echo "$as_me: failed program was:" >&5 |
| 14322 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14324 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14325 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14326 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14327 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14328 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14330 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14331 | cat >conftest.$ac_ext <<_ACEOF |
| 14332 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14333 | #include "confdefs.h" |
| 14334 | |
| 14335 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14336 | int foo(int x, ...) { |
| 14337 | va_list va; |
| 14338 | va_start(va, x); |
| 14339 | va_arg(va, int); |
| 14340 | va_arg(va, char *); |
| 14341 | va_arg(va, double); |
| 14342 | return 0; |
| 14343 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14345 | #ifdef F77_DUMMY_MAIN |
| 14346 | # ifdef __cplusplus |
| 14347 | extern "C" |
| 14348 | # endif |
| 14349 | int F77_DUMMY_MAIN() { return 1; } |
| 14350 | #endif |
| 14351 | int |
| 14352 | main () |
| 14353 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14354 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14355 | ; |
| 14356 | return 0; |
| 14357 | } |
| 14358 | _ACEOF |
| 14359 | rm -f conftest.$ac_objext |
| 14360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14361 | (eval $ac_compile) 2>&5 |
| 14362 | ac_status=$? |
| 14363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14364 | (exit $ac_status); } && |
| 14365 | { ac_try='test -s conftest.$ac_objext' |
| 14366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14367 | (eval $ac_try) 2>&5 |
| 14368 | ac_status=$? |
| 14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14370 | (exit $ac_status); }; }; then |
| 14371 | |
| 14372 | |
| 14373 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14374 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14375 | _ACEOF |
| 14376 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14377 | works=yes |
| 14378 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14380 | echo "$as_me: failed program was:" >&5 |
| 14381 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14382 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14384 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14385 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14386 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14387 | if test "$have_prototypes" = yes; then |
| 14388 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14389 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14390 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14391 | cat >conftest.$ac_ext <<_ACEOF |
| 14392 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14393 | #include "confdefs.h" |
| 14394 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14395 | #ifdef F77_DUMMY_MAIN |
| 14396 | # ifdef __cplusplus |
| 14397 | extern "C" |
| 14398 | # endif |
| 14399 | int F77_DUMMY_MAIN() { return 1; } |
| 14400 | #endif |
| 14401 | int |
| 14402 | main () |
| 14403 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14404 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | ; |
| 14406 | return 0; |
| 14407 | } |
| 14408 | _ACEOF |
| 14409 | rm -f conftest.$ac_objext |
| 14410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14411 | (eval $ac_compile) 2>&5 |
| 14412 | ac_status=$? |
| 14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14414 | (exit $ac_status); } && |
| 14415 | { ac_try='test -s conftest.$ac_objext' |
| 14416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14417 | (eval $ac_try) 2>&5 |
| 14418 | ac_status=$? |
| 14419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14420 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14421 | : |
| 14422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14423 | echo "$as_me: failed program was:" >&5 |
| 14424 | cat conftest.$ac_ext >&5 |
| 14425 | |
| 14426 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14427 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14428 | _ACEOF |
| 14429 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14430 | bad_prototypes=yes |
| 14431 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14433 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14434 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14435 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14436 | fi |
| 14437 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14438 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14439 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14440 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14441 | cat >conftest.$ac_ext <<_ACEOF |
| 14442 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14443 | #include "confdefs.h" |
| 14444 | #include <sys/types.h> |
| 14445 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14446 | #ifdef F77_DUMMY_MAIN |
| 14447 | # ifdef __cplusplus |
| 14448 | extern "C" |
| 14449 | # endif |
| 14450 | int F77_DUMMY_MAIN() { return 1; } |
| 14451 | #endif |
| 14452 | int |
| 14453 | main () |
| 14454 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14455 | struct sockaddr x; |
| 14456 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14457 | ; |
| 14458 | return 0; |
| 14459 | } |
| 14460 | _ACEOF |
| 14461 | rm -f conftest.$ac_objext |
| 14462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14463 | (eval $ac_compile) 2>&5 |
| 14464 | ac_status=$? |
| 14465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14466 | (exit $ac_status); } && |
| 14467 | { ac_try='test -s conftest.$ac_objext' |
| 14468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14469 | (eval $ac_try) 2>&5 |
| 14470 | ac_status=$? |
| 14471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14472 | (exit $ac_status); }; }; then |
| 14473 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14474 | echo "${ECHO_T}yes" >&6 |
| 14475 | |
| 14476 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14477 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14478 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14479 | |
| 14480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14481 | echo "$as_me: failed program was:" >&5 |
| 14482 | cat conftest.$ac_ext >&5 |
| 14483 | echo "$as_me:$LINENO: result: no" >&5 |
| 14484 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14487 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14488 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14489 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 14490 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 14491 | cat >conftest.$ac_ext <<_ACEOF |
| 14492 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14493 | #include "confdefs.h" |
| 14494 | |
| 14495 | #ifdef HAVE_STDARG_PROTOTYPES |
| 14496 | #include <stdarg.h> |
| 14497 | #else |
| 14498 | #include <varargs.h> |
| 14499 | #endif |
| 14500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14501 | #ifdef F77_DUMMY_MAIN |
| 14502 | # ifdef __cplusplus |
| 14503 | extern "C" |
| 14504 | # endif |
| 14505 | int F77_DUMMY_MAIN() { return 1; } |
| 14506 | #endif |
| 14507 | int |
| 14508 | main () |
| 14509 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14510 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 | ; |
| 14512 | return 0; |
| 14513 | } |
| 14514 | _ACEOF |
| 14515 | rm -f conftest.$ac_objext |
| 14516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14517 | (eval $ac_compile) 2>&5 |
| 14518 | ac_status=$? |
| 14519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14520 | (exit $ac_status); } && |
| 14521 | { ac_try='test -s conftest.$ac_objext' |
| 14522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14523 | (eval $ac_try) 2>&5 |
| 14524 | ac_status=$? |
| 14525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14526 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14527 | : |
| 14528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | echo "$as_me: failed program was:" >&5 |
| 14530 | cat conftest.$ac_ext >&5 |
| 14531 | |
| 14532 | |
| 14533 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14534 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14535 | _ACEOF |
| 14536 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14537 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14538 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14539 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14540 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14541 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14542 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14543 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14544 | # 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] | 14545 | |
| 14546 | |
| 14547 | |
| 14548 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14549 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14550 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14552 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14553 | cat >conftest.$ac_ext <<_ACEOF |
| 14554 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14555 | #include "confdefs.h" |
| 14556 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14558 | #include <assert.h> |
| 14559 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14560 | #ifdef __cplusplus |
| 14561 | extern "C" |
| 14562 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14563 | /* 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] | 14564 | builtin and then its argument prototype would still apply. */ |
| 14565 | char gethostbyname_r (); |
| 14566 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 | #ifdef F77_DUMMY_MAIN |
| 14569 | # ifdef __cplusplus |
| 14570 | extern "C" |
| 14571 | # endif |
| 14572 | int F77_DUMMY_MAIN() { return 1; } |
| 14573 | #endif |
| 14574 | int |
| 14575 | main () |
| 14576 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14577 | /* The GNU C library defines this for functions which it implements |
| 14578 | to always fail with ENOSYS. Some functions are actually named |
| 14579 | something starting with __ and the normal name is an alias. */ |
| 14580 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14581 | choke me |
| 14582 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14583 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14584 | #endif |
| 14585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14586 | ; |
| 14587 | return 0; |
| 14588 | } |
| 14589 | _ACEOF |
| 14590 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14592 | (eval $ac_link) 2>&5 |
| 14593 | ac_status=$? |
| 14594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14595 | (exit $ac_status); } && |
| 14596 | { ac_try='test -s conftest$ac_exeext' |
| 14597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14598 | (eval $ac_try) 2>&5 |
| 14599 | ac_status=$? |
| 14600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14601 | (exit $ac_status); }; }; then |
| 14602 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14604 | echo "$as_me: failed program was:" >&5 |
| 14605 | cat conftest.$ac_ext >&5 |
| 14606 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14607 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14609 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14610 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14611 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14612 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14615 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14619 | 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] | 14620 | OLD_CFLAGS=$CFLAGS |
| 14621 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14622 | cat >conftest.$ac_ext <<_ACEOF |
| 14623 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14624 | #include "confdefs.h" |
| 14625 | |
| 14626 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14627 | |
| 14628 | #ifdef F77_DUMMY_MAIN |
| 14629 | # ifdef __cplusplus |
| 14630 | extern "C" |
| 14631 | # endif |
| 14632 | int F77_DUMMY_MAIN() { return 1; } |
| 14633 | #endif |
| 14634 | int |
| 14635 | main () |
| 14636 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14637 | |
| 14638 | char *name; |
| 14639 | struct hostent *he, *res; |
| 14640 | char buffer[2048]; |
| 14641 | int buflen = 2048; |
| 14642 | int h_errnop; |
| 14643 | |
| 14644 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14645 | |
| 14646 | ; |
| 14647 | return 0; |
| 14648 | } |
| 14649 | _ACEOF |
| 14650 | rm -f conftest.$ac_objext |
| 14651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14652 | (eval $ac_compile) 2>&5 |
| 14653 | ac_status=$? |
| 14654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14655 | (exit $ac_status); } && |
| 14656 | { ac_try='test -s conftest.$ac_objext' |
| 14657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14658 | (eval $ac_try) 2>&5 |
| 14659 | ac_status=$? |
| 14660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14661 | (exit $ac_status); }; }; then |
| 14662 | |
| 14663 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14664 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14665 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14667 | |
| 14668 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14669 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14672 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14673 | echo "${ECHO_T}yes" >&6 |
| 14674 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14676 | echo "$as_me: failed program was:" >&5 |
| 14677 | cat conftest.$ac_ext >&5 |
| 14678 | |
| 14679 | echo "$as_me:$LINENO: result: no" >&5 |
| 14680 | echo "${ECHO_T}no" >&6 |
| 14681 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14682 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14683 | cat >conftest.$ac_ext <<_ACEOF |
| 14684 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14685 | #include "confdefs.h" |
| 14686 | |
| 14687 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | |
| 14689 | #ifdef F77_DUMMY_MAIN |
| 14690 | # ifdef __cplusplus |
| 14691 | extern "C" |
| 14692 | # endif |
| 14693 | int F77_DUMMY_MAIN() { return 1; } |
| 14694 | #endif |
| 14695 | int |
| 14696 | main () |
| 14697 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14698 | |
| 14699 | char *name; |
| 14700 | struct hostent *he; |
| 14701 | char buffer[2048]; |
| 14702 | int buflen = 2048; |
| 14703 | int h_errnop; |
| 14704 | |
| 14705 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14706 | |
| 14707 | ; |
| 14708 | return 0; |
| 14709 | } |
| 14710 | _ACEOF |
| 14711 | rm -f conftest.$ac_objext |
| 14712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14713 | (eval $ac_compile) 2>&5 |
| 14714 | ac_status=$? |
| 14715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14716 | (exit $ac_status); } && |
| 14717 | { ac_try='test -s conftest.$ac_objext' |
| 14718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14719 | (eval $ac_try) 2>&5 |
| 14720 | ac_status=$? |
| 14721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14722 | (exit $ac_status); }; }; then |
| 14723 | |
| 14724 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14725 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14726 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | |
| 14729 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14730 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14733 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14734 | echo "${ECHO_T}yes" >&6 |
| 14735 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14737 | echo "$as_me: failed program was:" >&5 |
| 14738 | cat conftest.$ac_ext >&5 |
| 14739 | |
| 14740 | echo "$as_me:$LINENO: result: no" >&5 |
| 14741 | echo "${ECHO_T}no" >&6 |
| 14742 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14743 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14744 | cat >conftest.$ac_ext <<_ACEOF |
| 14745 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14746 | #include "confdefs.h" |
| 14747 | |
| 14748 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14749 | |
| 14750 | #ifdef F77_DUMMY_MAIN |
| 14751 | # ifdef __cplusplus |
| 14752 | extern "C" |
| 14753 | # endif |
| 14754 | int F77_DUMMY_MAIN() { return 1; } |
| 14755 | #endif |
| 14756 | int |
| 14757 | main () |
| 14758 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14759 | |
| 14760 | char *name; |
| 14761 | struct hostent *he; |
| 14762 | struct hostent_data data; |
| 14763 | |
| 14764 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14765 | |
| 14766 | ; |
| 14767 | return 0; |
| 14768 | } |
| 14769 | _ACEOF |
| 14770 | rm -f conftest.$ac_objext |
| 14771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14772 | (eval $ac_compile) 2>&5 |
| 14773 | ac_status=$? |
| 14774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14775 | (exit $ac_status); } && |
| 14776 | { ac_try='test -s conftest.$ac_objext' |
| 14777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14778 | (eval $ac_try) 2>&5 |
| 14779 | ac_status=$? |
| 14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14781 | (exit $ac_status); }; }; then |
| 14782 | |
| 14783 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14784 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14785 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14787 | |
| 14788 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14789 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14790 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14793 | echo "${ECHO_T}yes" >&6 |
| 14794 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14796 | echo "$as_me: failed program was:" >&5 |
| 14797 | cat conftest.$ac_ext >&5 |
| 14798 | |
| 14799 | echo "$as_me:$LINENO: result: no" >&5 |
| 14800 | echo "${ECHO_T}no" >&6 |
| 14801 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14802 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14803 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14804 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14807 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14808 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14809 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14810 | CFLAGS=$OLD_CFLAGS |
| 14811 | |
| 14812 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14814 | |
| 14815 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14816 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14817 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14818 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14819 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14820 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 | cat >conftest.$ac_ext <<_ACEOF |
| 14824 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14825 | #include "confdefs.h" |
| 14826 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14827 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14828 | #include <assert.h> |
| 14829 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14830 | #ifdef __cplusplus |
| 14831 | extern "C" |
| 14832 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14833 | /* 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] | 14834 | builtin and then its argument prototype would still apply. */ |
| 14835 | char $ac_func (); |
| 14836 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14838 | #ifdef F77_DUMMY_MAIN |
| 14839 | # ifdef __cplusplus |
| 14840 | extern "C" |
| 14841 | # endif |
| 14842 | int F77_DUMMY_MAIN() { return 1; } |
| 14843 | #endif |
| 14844 | int |
| 14845 | main () |
| 14846 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14847 | /* The GNU C library defines this for functions which it implements |
| 14848 | to always fail with ENOSYS. Some functions are actually named |
| 14849 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14850 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14851 | choke me |
| 14852 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14853 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14854 | #endif |
| 14855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14856 | ; |
| 14857 | return 0; |
| 14858 | } |
| 14859 | _ACEOF |
| 14860 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14862 | (eval $ac_link) 2>&5 |
| 14863 | ac_status=$? |
| 14864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14865 | (exit $ac_status); } && |
| 14866 | { ac_try='test -s conftest$ac_exeext' |
| 14867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14868 | (eval $ac_try) 2>&5 |
| 14869 | ac_status=$? |
| 14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14871 | (exit $ac_status); }; }; then |
| 14872 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14873 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14874 | echo "$as_me: failed program was:" >&5 |
| 14875 | cat conftest.$ac_ext >&5 |
| 14876 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14877 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14878 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14879 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14881 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14882 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14883 | cat >>confdefs.h <<_ACEOF |
| 14884 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14885 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14886 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14887 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14888 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14889 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14890 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14891 | fi |
| 14892 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14893 | |
| 14894 | |
| 14895 | |
| 14896 | |
| 14897 | |
| 14898 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14899 | # checks for system services |
| 14900 | # (none yet) |
| 14901 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14902 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14903 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14904 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14905 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14907 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14908 | cat >conftest.$ac_ext <<_ACEOF |
| 14909 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14910 | #include "confdefs.h" |
| 14911 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14912 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14913 | #include <assert.h> |
| 14914 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14915 | #ifdef __cplusplus |
| 14916 | extern "C" |
| 14917 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14918 | /* 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] | 14919 | builtin and then its argument prototype would still apply. */ |
| 14920 | char __fpu_control (); |
| 14921 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | #ifdef F77_DUMMY_MAIN |
| 14924 | # ifdef __cplusplus |
| 14925 | extern "C" |
| 14926 | # endif |
| 14927 | int F77_DUMMY_MAIN() { return 1; } |
| 14928 | #endif |
| 14929 | int |
| 14930 | main () |
| 14931 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14932 | /* The GNU C library defines this for functions which it implements |
| 14933 | to always fail with ENOSYS. Some functions are actually named |
| 14934 | something starting with __ and the normal name is an alias. */ |
| 14935 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14936 | choke me |
| 14937 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14938 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14939 | #endif |
| 14940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | ; |
| 14942 | return 0; |
| 14943 | } |
| 14944 | _ACEOF |
| 14945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14947 | (eval $ac_link) 2>&5 |
| 14948 | ac_status=$? |
| 14949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14950 | (exit $ac_status); } && |
| 14951 | { ac_try='test -s conftest$ac_exeext' |
| 14952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14953 | (eval $ac_try) 2>&5 |
| 14954 | ac_status=$? |
| 14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14956 | (exit $ac_status); }; }; then |
| 14957 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14959 | echo "$as_me: failed program was:" >&5 |
| 14960 | cat conftest.$ac_ext >&5 |
| 14961 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14963 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14964 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14965 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14966 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14967 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14968 | : |
| 14969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | |
| 14971 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14972 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14973 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14977 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14978 | cat >conftest.$ac_ext <<_ACEOF |
| 14979 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14980 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14981 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14982 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14983 | #ifdef __cplusplus |
| 14984 | extern "C" |
| 14985 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14986 | /* 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] | 14987 | builtin and then its argument prototype would still apply. */ |
| 14988 | char __fpu_control (); |
| 14989 | #ifdef F77_DUMMY_MAIN |
| 14990 | # ifdef __cplusplus |
| 14991 | extern "C" |
| 14992 | # endif |
| 14993 | int F77_DUMMY_MAIN() { return 1; } |
| 14994 | #endif |
| 14995 | int |
| 14996 | main () |
| 14997 | { |
| 14998 | __fpu_control (); |
| 14999 | ; |
| 15000 | return 0; |
| 15001 | } |
| 15002 | _ACEOF |
| 15003 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15005 | (eval $ac_link) 2>&5 |
| 15006 | ac_status=$? |
| 15007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15008 | (exit $ac_status); } && |
| 15009 | { ac_try='test -s conftest$ac_exeext' |
| 15010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15011 | (eval $ac_try) 2>&5 |
| 15012 | ac_status=$? |
| 15013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15014 | (exit $ac_status); }; }; then |
| 15015 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15017 | echo "$as_me: failed program was:" >&5 |
| 15018 | cat conftest.$ac_ext >&5 |
| 15019 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15020 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15022 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 15025 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 15026 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 15027 | cat >>confdefs.h <<_ACEOF |
| 15028 | #define HAVE_LIBIEEE 1 |
| 15029 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15030 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15031 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15032 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15033 | fi |
| 15034 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15035 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15036 | fi |
| 15037 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15038 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15039 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 15041 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 15042 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15043 | # Check whether --with-fpectl or --without-fpectl was given. |
| 15044 | if test "${with_fpectl+set}" = set; then |
| 15045 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15047 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | then |
| 15049 | |
| 15050 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15051 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15052 | _ACEOF |
| 15053 | |
| 15054 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15055 | echo "${ECHO_T}yes" >&6 |
| 15056 | else echo "$as_me:$LINENO: result: no" >&5 |
| 15057 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15058 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15060 | echo "$as_me:$LINENO: result: no" >&5 |
| 15061 | echo "${ECHO_T}no" >&6 |
| 15062 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15063 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15064 | # check for --with-libm=... |
| 15065 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15066 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 15067 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15068 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15069 | *) LIBM=-lm |
| 15070 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15071 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 15072 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 15073 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15074 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15075 | if test "${with_libm+set}" = set; then |
| 15076 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15077 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15078 | if test "$withval" = no |
| 15079 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 15081 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15082 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15083 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15084 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 15085 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 15086 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 15087 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 15088 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15089 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 15092 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 15093 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15094 | |
| 15095 | # check for --with-libc=... |
| 15096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 15098 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 15099 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15100 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15101 | if test "${with_libc+set}" = set; then |
| 15102 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15103 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15104 | if test "$withval" = no |
| 15105 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15106 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 15107 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15108 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15109 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 15111 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 15112 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 15113 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 15114 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15115 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15117 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 15118 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 15119 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15120 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15121 | # check for hypot() in math library |
| 15122 | LIBS_SAVE=$LIBS |
| 15123 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15124 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15125 | for ac_func in hypot |
| 15126 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15128 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15129 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15130 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | cat >conftest.$ac_ext <<_ACEOF |
| 15134 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15135 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15136 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15138 | #include <assert.h> |
| 15139 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15140 | #ifdef __cplusplus |
| 15141 | extern "C" |
| 15142 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15143 | /* 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] | 15144 | builtin and then its argument prototype would still apply. */ |
| 15145 | char $ac_func (); |
| 15146 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 | #ifdef F77_DUMMY_MAIN |
| 15149 | # ifdef __cplusplus |
| 15150 | extern "C" |
| 15151 | # endif |
| 15152 | int F77_DUMMY_MAIN() { return 1; } |
| 15153 | #endif |
| 15154 | int |
| 15155 | main () |
| 15156 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15157 | /* The GNU C library defines this for functions which it implements |
| 15158 | to always fail with ENOSYS. Some functions are actually named |
| 15159 | something starting with __ and the normal name is an alias. */ |
| 15160 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15161 | choke me |
| 15162 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15164 | #endif |
| 15165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | ; |
| 15167 | return 0; |
| 15168 | } |
| 15169 | _ACEOF |
| 15170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15172 | (eval $ac_link) 2>&5 |
| 15173 | ac_status=$? |
| 15174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15175 | (exit $ac_status); } && |
| 15176 | { ac_try='test -s conftest$ac_exeext' |
| 15177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15178 | (eval $ac_try) 2>&5 |
| 15179 | ac_status=$? |
| 15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15181 | (exit $ac_status); }; }; then |
| 15182 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 | echo "$as_me: failed program was:" >&5 |
| 15185 | cat conftest.$ac_ext >&5 |
| 15186 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15187 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15189 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15191 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15192 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15193 | cat >>confdefs.h <<_ACEOF |
| 15194 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15195 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15196 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15198 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15199 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15200 | done |
| 15201 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15202 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15203 | LIBS=$LIBS_SAVE |
| 15204 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15205 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15206 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 15207 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 15208 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 15209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15210 | else |
| 15211 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15212 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15214 | cat >conftest.$ac_ext <<_ACEOF |
| 15215 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15216 | #include "confdefs.h" |
| 15217 | #include <stdio.h> |
| 15218 | #ifdef HAVE_STDLIB |
| 15219 | #include <stdlib.h> |
| 15220 | #else |
| 15221 | char *malloc(), *realloc(); |
| 15222 | int *free(); |
| 15223 | #endif |
| 15224 | main() { |
| 15225 | char *p; |
| 15226 | p = malloc(0); |
| 15227 | if (p == NULL) exit(1); |
| 15228 | p = realloc(p, 0); |
| 15229 | if (p == NULL) exit(1); |
| 15230 | free(p); |
| 15231 | exit(0); |
| 15232 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15233 | _ACEOF |
| 15234 | rm -f conftest$ac_exeext |
| 15235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15236 | (eval $ac_link) 2>&5 |
| 15237 | ac_status=$? |
| 15238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15239 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15241 | (eval $ac_try) 2>&5 |
| 15242 | ac_status=$? |
| 15243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15244 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15245 | ac_cv_malloc_zero=nonnull |
| 15246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15247 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15248 | echo "$as_me: failed program was:" >&5 |
| 15249 | cat conftest.$ac_ext >&5 |
| 15250 | ( exit $ac_status ) |
| 15251 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15252 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15253 | 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] | 15254 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15255 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15256 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15257 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 15258 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15259 | if test "$ac_cv_malloc_zero" = null |
| 15260 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15261 | |
| 15262 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15263 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15264 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15265 | |
| 15266 | fi |
| 15267 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15268 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15269 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15270 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15271 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15272 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15274 | fi |
| 15275 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15276 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15278 | # Is the header compilable? |
| 15279 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15280 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15281 | cat >conftest.$ac_ext <<_ACEOF |
| 15282 | #line $LINENO "configure" |
| 15283 | #include "confdefs.h" |
| 15284 | $ac_includes_default |
| 15285 | #include <wchar.h> |
| 15286 | _ACEOF |
| 15287 | rm -f conftest.$ac_objext |
| 15288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15289 | (eval $ac_compile) 2>&5 |
| 15290 | ac_status=$? |
| 15291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15292 | (exit $ac_status); } && |
| 15293 | { ac_try='test -s conftest.$ac_objext' |
| 15294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15295 | (eval $ac_try) 2>&5 |
| 15296 | ac_status=$? |
| 15297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15298 | (exit $ac_status); }; }; then |
| 15299 | ac_header_compiler=yes |
| 15300 | else |
| 15301 | echo "$as_me: failed program was:" >&5 |
| 15302 | cat conftest.$ac_ext >&5 |
| 15303 | ac_header_compiler=no |
| 15304 | fi |
| 15305 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15306 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15307 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15308 | |
| 15309 | # Is the header present? |
| 15310 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15311 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15312 | cat >conftest.$ac_ext <<_ACEOF |
| 15313 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15314 | #include "confdefs.h" |
| 15315 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15316 | _ACEOF |
| 15317 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15318 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15319 | ac_status=$? |
| 15320 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 15321 | rm -f conftest.er1 |
| 15322 | cat conftest.err >&5 |
| 15323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15324 | (exit $ac_status); } >/dev/null; then |
| 15325 | if test -s conftest.err; then |
| 15326 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15327 | else |
| 15328 | ac_cpp_err= |
| 15329 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | ac_cpp_err=yes |
| 15332 | fi |
| 15333 | if test -z "$ac_cpp_err"; then |
| 15334 | ac_header_preproc=yes |
| 15335 | else |
| 15336 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15337 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15338 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15339 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15340 | rm -f conftest.err conftest.$ac_ext |
| 15341 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15342 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15343 | |
| 15344 | # So? What about this header? |
| 15345 | case $ac_header_compiler:$ac_header_preproc in |
| 15346 | yes:no ) |
| 15347 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15348 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15349 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15350 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15351 | no:yes ) |
| 15352 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15353 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15354 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15355 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15356 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15357 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15358 | esac |
| 15359 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15360 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15361 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15363 | else |
| 15364 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15366 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15367 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15368 | |
| 15369 | fi |
| 15370 | if test $ac_cv_header_wchar_h = yes; then |
| 15371 | |
| 15372 | |
| 15373 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15374 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15375 | _ACEOF |
| 15376 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15377 | wchar_h="yes" |
| 15378 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15380 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15381 | |
| 15382 | fi |
| 15383 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15385 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15386 | # determine wchar_t size |
| 15387 | if test "$wchar_h" = yes |
| 15388 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15389 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15390 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15391 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15393 | else |
| 15394 | cat >conftest.$ac_ext <<_ACEOF |
| 15395 | #line $LINENO "configure" |
| 15396 | #include "confdefs.h" |
| 15397 | #include <wchar.h> |
| 15398 | |
| 15399 | #ifdef F77_DUMMY_MAIN |
| 15400 | # ifdef __cplusplus |
| 15401 | extern "C" |
| 15402 | # endif |
| 15403 | int F77_DUMMY_MAIN() { return 1; } |
| 15404 | #endif |
| 15405 | int |
| 15406 | main () |
| 15407 | { |
| 15408 | if ((wchar_t *) 0) |
| 15409 | return 0; |
| 15410 | if (sizeof (wchar_t)) |
| 15411 | return 0; |
| 15412 | ; |
| 15413 | return 0; |
| 15414 | } |
| 15415 | _ACEOF |
| 15416 | rm -f conftest.$ac_objext |
| 15417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15418 | (eval $ac_compile) 2>&5 |
| 15419 | ac_status=$? |
| 15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15421 | (exit $ac_status); } && |
| 15422 | { ac_try='test -s conftest.$ac_objext' |
| 15423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15424 | (eval $ac_try) 2>&5 |
| 15425 | ac_status=$? |
| 15426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15427 | (exit $ac_status); }; }; then |
| 15428 | ac_cv_type_wchar_t=yes |
| 15429 | else |
| 15430 | echo "$as_me: failed program was:" >&5 |
| 15431 | cat conftest.$ac_ext >&5 |
| 15432 | ac_cv_type_wchar_t=no |
| 15433 | fi |
| 15434 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15435 | fi |
| 15436 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15437 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15438 | |
| 15439 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15440 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15441 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15443 | else |
| 15444 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15445 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15446 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15447 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15448 | # This bug is HP SR number 8606223364. |
| 15449 | if test "$cross_compiling" = yes; then |
| 15450 | # Depending upon the size, compute the lo and hi bounds. |
| 15451 | cat >conftest.$ac_ext <<_ACEOF |
| 15452 | #line $LINENO "configure" |
| 15453 | #include "confdefs.h" |
| 15454 | #include <wchar.h> |
| 15455 | |
| 15456 | #ifdef F77_DUMMY_MAIN |
| 15457 | # ifdef __cplusplus |
| 15458 | extern "C" |
| 15459 | # endif |
| 15460 | int F77_DUMMY_MAIN() { return 1; } |
| 15461 | #endif |
| 15462 | int |
| 15463 | main () |
| 15464 | { |
| 15465 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 15466 | test_array [0] = 0 |
| 15467 | |
| 15468 | ; |
| 15469 | return 0; |
| 15470 | } |
| 15471 | _ACEOF |
| 15472 | rm -f conftest.$ac_objext |
| 15473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15474 | (eval $ac_compile) 2>&5 |
| 15475 | ac_status=$? |
| 15476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15477 | (exit $ac_status); } && |
| 15478 | { ac_try='test -s conftest.$ac_objext' |
| 15479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15480 | (eval $ac_try) 2>&5 |
| 15481 | ac_status=$? |
| 15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15483 | (exit $ac_status); }; }; then |
| 15484 | ac_lo=0 ac_mid=0 |
| 15485 | while :; do |
| 15486 | cat >conftest.$ac_ext <<_ACEOF |
| 15487 | #line $LINENO "configure" |
| 15488 | #include "confdefs.h" |
| 15489 | #include <wchar.h> |
| 15490 | |
| 15491 | #ifdef F77_DUMMY_MAIN |
| 15492 | # ifdef __cplusplus |
| 15493 | extern "C" |
| 15494 | # endif |
| 15495 | int F77_DUMMY_MAIN() { return 1; } |
| 15496 | #endif |
| 15497 | int |
| 15498 | main () |
| 15499 | { |
| 15500 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15501 | test_array [0] = 0 |
| 15502 | |
| 15503 | ; |
| 15504 | return 0; |
| 15505 | } |
| 15506 | _ACEOF |
| 15507 | rm -f conftest.$ac_objext |
| 15508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15509 | (eval $ac_compile) 2>&5 |
| 15510 | ac_status=$? |
| 15511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15512 | (exit $ac_status); } && |
| 15513 | { ac_try='test -s conftest.$ac_objext' |
| 15514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15515 | (eval $ac_try) 2>&5 |
| 15516 | ac_status=$? |
| 15517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15518 | (exit $ac_status); }; }; then |
| 15519 | ac_hi=$ac_mid; break |
| 15520 | else |
| 15521 | echo "$as_me: failed program was:" >&5 |
| 15522 | cat conftest.$ac_ext >&5 |
| 15523 | ac_lo=`expr $ac_mid + 1` |
| 15524 | if test $ac_lo -le $ac_mid; then |
| 15525 | ac_lo= ac_hi= |
| 15526 | break |
| 15527 | fi |
| 15528 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 15529 | fi |
| 15530 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15531 | done |
| 15532 | else |
| 15533 | echo "$as_me: failed program was:" >&5 |
| 15534 | cat conftest.$ac_ext >&5 |
| 15535 | cat >conftest.$ac_ext <<_ACEOF |
| 15536 | #line $LINENO "configure" |
| 15537 | #include "confdefs.h" |
| 15538 | #include <wchar.h> |
| 15539 | |
| 15540 | #ifdef F77_DUMMY_MAIN |
| 15541 | # ifdef __cplusplus |
| 15542 | extern "C" |
| 15543 | # endif |
| 15544 | int F77_DUMMY_MAIN() { return 1; } |
| 15545 | #endif |
| 15546 | int |
| 15547 | main () |
| 15548 | { |
| 15549 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 15550 | test_array [0] = 0 |
| 15551 | |
| 15552 | ; |
| 15553 | return 0; |
| 15554 | } |
| 15555 | _ACEOF |
| 15556 | rm -f conftest.$ac_objext |
| 15557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15558 | (eval $ac_compile) 2>&5 |
| 15559 | ac_status=$? |
| 15560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15561 | (exit $ac_status); } && |
| 15562 | { ac_try='test -s conftest.$ac_objext' |
| 15563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15564 | (eval $ac_try) 2>&5 |
| 15565 | ac_status=$? |
| 15566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15567 | (exit $ac_status); }; }; then |
| 15568 | ac_hi=-1 ac_mid=-1 |
| 15569 | while :; do |
| 15570 | cat >conftest.$ac_ext <<_ACEOF |
| 15571 | #line $LINENO "configure" |
| 15572 | #include "confdefs.h" |
| 15573 | #include <wchar.h> |
| 15574 | |
| 15575 | #ifdef F77_DUMMY_MAIN |
| 15576 | # ifdef __cplusplus |
| 15577 | extern "C" |
| 15578 | # endif |
| 15579 | int F77_DUMMY_MAIN() { return 1; } |
| 15580 | #endif |
| 15581 | int |
| 15582 | main () |
| 15583 | { |
| 15584 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 15585 | test_array [0] = 0 |
| 15586 | |
| 15587 | ; |
| 15588 | return 0; |
| 15589 | } |
| 15590 | _ACEOF |
| 15591 | rm -f conftest.$ac_objext |
| 15592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15593 | (eval $ac_compile) 2>&5 |
| 15594 | ac_status=$? |
| 15595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15596 | (exit $ac_status); } && |
| 15597 | { ac_try='test -s conftest.$ac_objext' |
| 15598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15599 | (eval $ac_try) 2>&5 |
| 15600 | ac_status=$? |
| 15601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15602 | (exit $ac_status); }; }; then |
| 15603 | ac_lo=$ac_mid; break |
| 15604 | else |
| 15605 | echo "$as_me: failed program was:" >&5 |
| 15606 | cat conftest.$ac_ext >&5 |
| 15607 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15608 | if test $ac_mid -le $ac_hi; then |
| 15609 | ac_lo= ac_hi= |
| 15610 | break |
| 15611 | fi |
| 15612 | ac_mid=`expr 2 '*' $ac_mid` |
| 15613 | fi |
| 15614 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15615 | done |
| 15616 | else |
| 15617 | echo "$as_me: failed program was:" >&5 |
| 15618 | cat conftest.$ac_ext >&5 |
| 15619 | ac_lo= ac_hi= |
| 15620 | fi |
| 15621 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15622 | fi |
| 15623 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15624 | # Binary search between lo and hi bounds. |
| 15625 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15626 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15627 | cat >conftest.$ac_ext <<_ACEOF |
| 15628 | #line $LINENO "configure" |
| 15629 | #include "confdefs.h" |
| 15630 | #include <wchar.h> |
| 15631 | |
| 15632 | #ifdef F77_DUMMY_MAIN |
| 15633 | # ifdef __cplusplus |
| 15634 | extern "C" |
| 15635 | # endif |
| 15636 | int F77_DUMMY_MAIN() { return 1; } |
| 15637 | #endif |
| 15638 | int |
| 15639 | main () |
| 15640 | { |
| 15641 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15642 | test_array [0] = 0 |
| 15643 | |
| 15644 | ; |
| 15645 | return 0; |
| 15646 | } |
| 15647 | _ACEOF |
| 15648 | rm -f conftest.$ac_objext |
| 15649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15650 | (eval $ac_compile) 2>&5 |
| 15651 | ac_status=$? |
| 15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15653 | (exit $ac_status); } && |
| 15654 | { ac_try='test -s conftest.$ac_objext' |
| 15655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15656 | (eval $ac_try) 2>&5 |
| 15657 | ac_status=$? |
| 15658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15659 | (exit $ac_status); }; }; then |
| 15660 | ac_hi=$ac_mid |
| 15661 | else |
| 15662 | echo "$as_me: failed program was:" >&5 |
| 15663 | cat conftest.$ac_ext >&5 |
| 15664 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15665 | fi |
| 15666 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15667 | done |
| 15668 | case $ac_lo in |
| 15669 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15670 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15671 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15672 | { (exit 1); exit 1; }; } ;; |
| 15673 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15674 | else |
| 15675 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15676 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15677 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15678 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15680 | cat >conftest.$ac_ext <<_ACEOF |
| 15681 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15682 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | #include <wchar.h> |
| 15684 | |
| 15685 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15686 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15687 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15688 | #include <stdlib.h> |
| 15689 | #ifdef F77_DUMMY_MAIN |
| 15690 | # ifdef __cplusplus |
| 15691 | extern "C" |
| 15692 | # endif |
| 15693 | int F77_DUMMY_MAIN() { return 1; } |
| 15694 | #endif |
| 15695 | int |
| 15696 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15697 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15698 | |
| 15699 | FILE *f = fopen ("conftest.val", "w"); |
| 15700 | if (! f) |
| 15701 | exit (1); |
| 15702 | if (((long) (sizeof (wchar_t))) < 0) |
| 15703 | { |
| 15704 | long i = longval (); |
| 15705 | if (i != ((long) (sizeof (wchar_t)))) |
| 15706 | exit (1); |
| 15707 | fprintf (f, "%ld\n", i); |
| 15708 | } |
| 15709 | else |
| 15710 | { |
| 15711 | unsigned long i = ulongval (); |
| 15712 | if (i != ((long) (sizeof (wchar_t)))) |
| 15713 | exit (1); |
| 15714 | fprintf (f, "%lu\n", i); |
| 15715 | } |
| 15716 | exit (ferror (f) || fclose (f) != 0); |
| 15717 | |
| 15718 | ; |
| 15719 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15720 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15721 | _ACEOF |
| 15722 | rm -f conftest$ac_exeext |
| 15723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15724 | (eval $ac_link) 2>&5 |
| 15725 | ac_status=$? |
| 15726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15727 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 |
| 15733 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15736 | echo "$as_me: failed program was:" >&5 |
| 15737 | cat conftest.$ac_ext >&5 |
| 15738 | ( exit $ac_status ) |
| 15739 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15740 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15741 | { (exit 1); exit 1; }; } |
| 15742 | fi |
| 15743 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15744 | fi |
| 15745 | fi |
| 15746 | rm -f conftest.val |
| 15747 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15748 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15749 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15750 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15751 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15752 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15753 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15754 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15756 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15757 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15758 | fi |
| 15759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15760 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15761 | 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] | 15762 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15763 | if test "${enable_unicode+set}" = set; then |
| 15764 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15765 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15766 | else |
| 15767 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15768 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15769 | |
| 15770 | if test $enable_unicode = yes |
| 15771 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15772 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15773 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15774 | fi |
| 15775 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15776 | |
| 15777 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15778 | case "$enable_unicode" in |
| 15779 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15781 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15783 | |
| 15784 | ;; |
| 15785 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15786 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15787 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15788 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15789 | |
| 15790 | ;; |
| 15791 | esac |
| 15792 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15794 | |
| 15795 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15796 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15797 | if test "$enable_unicode" = "no" |
| 15798 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15799 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15800 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15801 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15802 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15803 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15804 | |
| 15805 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15806 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15808 | |
| 15809 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15810 | then |
| 15811 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15813 | cat >>confdefs.h <<\_ACEOF |
| 15814 | #define HAVE_USABLE_WCHAR_T 1 |
| 15815 | _ACEOF |
| 15816 | |
| 15817 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15818 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15819 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15820 | |
| 15821 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15822 | then |
| 15823 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15824 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15825 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15826 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15827 | |
| 15828 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15829 | then |
| 15830 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15832 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15834 | |
| 15835 | else |
| 15836 | PY_UNICODE_TYPE="no type found" |
| 15837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15838 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15839 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15840 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15841 | |
| 15842 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15843 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15844 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15845 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15848 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15849 | cat >conftest.$ac_ext <<_ACEOF |
| 15850 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15851 | #include "confdefs.h" |
| 15852 | #include <sys/types.h> |
| 15853 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15855 | #ifdef F77_DUMMY_MAIN |
| 15856 | # ifdef __cplusplus |
| 15857 | extern "C" |
| 15858 | # endif |
| 15859 | int F77_DUMMY_MAIN() { return 1; } |
| 15860 | #endif |
| 15861 | int |
| 15862 | main () |
| 15863 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15864 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15865 | bogus endian macros |
| 15866 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | |
| 15868 | ; |
| 15869 | return 0; |
| 15870 | } |
| 15871 | _ACEOF |
| 15872 | rm -f conftest.$ac_objext |
| 15873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15874 | (eval $ac_compile) 2>&5 |
| 15875 | ac_status=$? |
| 15876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15877 | (exit $ac_status); } && |
| 15878 | { ac_try='test -s conftest.$ac_objext' |
| 15879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15880 | (eval $ac_try) 2>&5 |
| 15881 | ac_status=$? |
| 15882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15883 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15884 | # 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] | 15885 | cat >conftest.$ac_ext <<_ACEOF |
| 15886 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15887 | #include "confdefs.h" |
| 15888 | #include <sys/types.h> |
| 15889 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15891 | #ifdef F77_DUMMY_MAIN |
| 15892 | # ifdef __cplusplus |
| 15893 | extern "C" |
| 15894 | # endif |
| 15895 | int F77_DUMMY_MAIN() { return 1; } |
| 15896 | #endif |
| 15897 | int |
| 15898 | main () |
| 15899 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15900 | #if BYTE_ORDER != BIG_ENDIAN |
| 15901 | not big endian |
| 15902 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15903 | |
| 15904 | ; |
| 15905 | return 0; |
| 15906 | } |
| 15907 | _ACEOF |
| 15908 | rm -f conftest.$ac_objext |
| 15909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15910 | (eval $ac_compile) 2>&5 |
| 15911 | ac_status=$? |
| 15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15913 | (exit $ac_status); } && |
| 15914 | { ac_try='test -s conftest.$ac_objext' |
| 15915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15916 | (eval $ac_try) 2>&5 |
| 15917 | ac_status=$? |
| 15918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15919 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15920 | ac_cv_c_bigendian=yes |
| 15921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | echo "$as_me: failed program was:" >&5 |
| 15923 | cat conftest.$ac_ext >&5 |
| 15924 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15925 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15926 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | echo "$as_me: failed program was:" >&5 |
| 15929 | cat conftest.$ac_ext >&5 |
| 15930 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15931 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | # try to guess the endianess by grep'ing values into an object file |
| 15933 | ac_cv_c_bigendian=unknown |
| 15934 | cat >conftest.$ac_ext <<_ACEOF |
| 15935 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15936 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15938 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15939 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15940 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15941 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15942 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15943 | #ifdef F77_DUMMY_MAIN |
| 15944 | # ifdef __cplusplus |
| 15945 | extern "C" |
| 15946 | # endif |
| 15947 | int F77_DUMMY_MAIN() { return 1; } |
| 15948 | #endif |
| 15949 | int |
| 15950 | main () |
| 15951 | { |
| 15952 | _ascii (); _ebcdic (); |
| 15953 | ; |
| 15954 | return 0; |
| 15955 | } |
| 15956 | _ACEOF |
| 15957 | rm -f conftest.$ac_objext |
| 15958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15959 | (eval $ac_compile) 2>&5 |
| 15960 | ac_status=$? |
| 15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15962 | (exit $ac_status); } && |
| 15963 | { ac_try='test -s conftest.$ac_objext' |
| 15964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15965 | (eval $ac_try) 2>&5 |
| 15966 | ac_status=$? |
| 15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15968 | (exit $ac_status); }; }; then |
| 15969 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15970 | ac_cv_c_bigendian=yes |
| 15971 | fi |
| 15972 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15973 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15974 | ac_cv_c_bigendian=no |
| 15975 | else |
| 15976 | # finding both strings is unlikely to happen, but who knows? |
| 15977 | ac_cv_c_bigendian=unknown |
| 15978 | fi |
| 15979 | fi |
| 15980 | else |
| 15981 | echo "$as_me: failed program was:" >&5 |
| 15982 | cat conftest.$ac_ext >&5 |
| 15983 | fi |
| 15984 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15985 | else |
| 15986 | cat >conftest.$ac_ext <<_ACEOF |
| 15987 | #line $LINENO "configure" |
| 15988 | #include "confdefs.h" |
| 15989 | int |
| 15990 | main () |
| 15991 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15992 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15993 | union |
| 15994 | { |
| 15995 | long l; |
| 15996 | char c[sizeof (long)]; |
| 15997 | } u; |
| 15998 | u.l = 1; |
| 15999 | exit (u.c[sizeof (long) - 1] == 1); |
| 16000 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16001 | _ACEOF |
| 16002 | rm -f conftest$ac_exeext |
| 16003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16004 | (eval $ac_link) 2>&5 |
| 16005 | ac_status=$? |
| 16006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16007 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16009 | (eval $ac_try) 2>&5 |
| 16010 | ac_status=$? |
| 16011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16012 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16013 | ac_cv_c_bigendian=no |
| 16014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16015 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16016 | echo "$as_me: failed program was:" >&5 |
| 16017 | cat conftest.$ac_ext >&5 |
| 16018 | ( exit $ac_status ) |
| 16019 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16020 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | 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] | 16022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16023 | fi |
| 16024 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16025 | fi |
| 16026 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16027 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16028 | case $ac_cv_c_bigendian in |
| 16029 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16031 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16032 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16033 | _ACEOF |
| 16034 | ;; |
| 16035 | no) |
| 16036 | ;; |
| 16037 | *) |
| 16038 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 16039 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 16040 | echo "$as_me: error: unknown endianess |
| 16041 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16042 | { (exit 1); exit 1; }; } ;; |
| 16043 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16044 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16045 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16046 | # Check whether right shifting a negative integer extends the sign bit |
| 16047 | # 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] | 16048 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 16049 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 16050 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 16051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16053 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16054 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16055 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16057 | cat >conftest.$ac_ext <<_ACEOF |
| 16058 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16059 | #include "confdefs.h" |
| 16060 | |
| 16061 | int main() |
| 16062 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16063 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16064 | } |
| 16065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16066 | _ACEOF |
| 16067 | rm -f conftest$ac_exeext |
| 16068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16069 | (eval $ac_link) 2>&5 |
| 16070 | ac_status=$? |
| 16071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16074 | (eval $ac_try) 2>&5 |
| 16075 | ac_status=$? |
| 16076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16077 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16078 | ac_cv_rshift_extends_sign=yes |
| 16079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16081 | echo "$as_me: failed program was:" >&5 |
| 16082 | cat conftest.$ac_ext >&5 |
| 16083 | ( exit $ac_status ) |
| 16084 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16085 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16086 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16087 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16088 | fi |
| 16089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16090 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 16091 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16092 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16093 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | |
| 16095 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16096 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16098 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16099 | fi |
| 16100 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16101 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16102 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 16103 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 16104 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 16105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16107 | |
| 16108 | cat >conftest.$ac_ext <<_ACEOF |
| 16109 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16110 | #include "confdefs.h" |
| 16111 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16112 | #ifdef F77_DUMMY_MAIN |
| 16113 | # ifdef __cplusplus |
| 16114 | extern "C" |
| 16115 | # endif |
| 16116 | int F77_DUMMY_MAIN() { return 1; } |
| 16117 | #endif |
| 16118 | int |
| 16119 | main () |
| 16120 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16121 | |
| 16122 | FILE *f = fopen("/dev/null", "r"); |
| 16123 | flockfile(f); |
| 16124 | getc_unlocked(f); |
| 16125 | funlockfile(f); |
| 16126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16127 | ; |
| 16128 | return 0; |
| 16129 | } |
| 16130 | _ACEOF |
| 16131 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16133 | (eval $ac_link) 2>&5 |
| 16134 | ac_status=$? |
| 16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16136 | (exit $ac_status); } && |
| 16137 | { ac_try='test -s conftest$ac_exeext' |
| 16138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16139 | (eval $ac_try) 2>&5 |
| 16140 | ac_status=$? |
| 16141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16142 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16143 | ac_cv_have_getc_unlocked=yes |
| 16144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | echo "$as_me: failed program was:" >&5 |
| 16146 | cat conftest.$ac_ext >&5 |
| 16147 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16148 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16149 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16150 | fi |
| 16151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16152 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 16153 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16154 | if test "$ac_cv_have_getc_unlocked" = yes |
| 16155 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16156 | |
| 16157 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16158 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16159 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16160 | |
| 16161 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16162 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16163 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16164 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 16165 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 16166 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 16167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16169 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16170 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | cat >conftest.$ac_ext <<_ACEOF |
| 16172 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16173 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16174 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16175 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16176 | #ifdef __cplusplus |
| 16177 | extern "C" |
| 16178 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16179 | /* 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] | 16180 | builtin and then its argument prototype would still apply. */ |
| 16181 | char rl_pre_input_hook (); |
| 16182 | #ifdef F77_DUMMY_MAIN |
| 16183 | # ifdef __cplusplus |
| 16184 | extern "C" |
| 16185 | # endif |
| 16186 | int F77_DUMMY_MAIN() { return 1; } |
| 16187 | #endif |
| 16188 | int |
| 16189 | main () |
| 16190 | { |
| 16191 | rl_pre_input_hook (); |
| 16192 | ; |
| 16193 | return 0; |
| 16194 | } |
| 16195 | _ACEOF |
| 16196 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16198 | (eval $ac_link) 2>&5 |
| 16199 | ac_status=$? |
| 16200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16201 | (exit $ac_status); } && |
| 16202 | { ac_try='test -s conftest$ac_exeext' |
| 16203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16204 | (eval $ac_try) 2>&5 |
| 16205 | ac_status=$? |
| 16206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16207 | (exit $ac_status); }; }; then |
| 16208 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16210 | echo "$as_me: failed program was:" >&5 |
| 16211 | cat conftest.$ac_ext >&5 |
| 16212 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16213 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16214 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16215 | LIBS=$ac_check_lib_save_LIBS |
| 16216 | fi |
| 16217 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16218 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16219 | 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] | 16220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16221 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16222 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16223 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16224 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16225 | fi |
| 16226 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16227 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16228 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16229 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16230 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16231 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16235 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16236 | cat >conftest.$ac_ext <<_ACEOF |
| 16237 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16238 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16239 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16240 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | #ifdef __cplusplus |
| 16242 | extern "C" |
| 16243 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16244 | /* 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] | 16245 | builtin and then its argument prototype would still apply. */ |
| 16246 | char rl_completion_matches (); |
| 16247 | #ifdef F77_DUMMY_MAIN |
| 16248 | # ifdef __cplusplus |
| 16249 | extern "C" |
| 16250 | # endif |
| 16251 | int F77_DUMMY_MAIN() { return 1; } |
| 16252 | #endif |
| 16253 | int |
| 16254 | main () |
| 16255 | { |
| 16256 | rl_completion_matches (); |
| 16257 | ; |
| 16258 | return 0; |
| 16259 | } |
| 16260 | _ACEOF |
| 16261 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16263 | (eval $ac_link) 2>&5 |
| 16264 | ac_status=$? |
| 16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16266 | (exit $ac_status); } && |
| 16267 | { ac_try='test -s conftest$ac_exeext' |
| 16268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16269 | (eval $ac_try) 2>&5 |
| 16270 | ac_status=$? |
| 16271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16272 | (exit $ac_status); }; }; then |
| 16273 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16275 | echo "$as_me: failed program was:" >&5 |
| 16276 | cat conftest.$ac_ext >&5 |
| 16277 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16278 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16279 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16280 | LIBS=$ac_check_lib_save_LIBS |
| 16281 | fi |
| 16282 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16283 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16284 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16287 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16288 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16289 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16290 | fi |
| 16291 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16293 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16294 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16295 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16298 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16299 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16300 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16302 | cat >conftest.$ac_ext <<_ACEOF |
| 16303 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16304 | #include "confdefs.h" |
| 16305 | |
| 16306 | int main() |
| 16307 | { |
| 16308 | int val1 = nice(1); |
| 16309 | if (val1 != -1 && val1 == nice(2)) |
| 16310 | exit(0); |
| 16311 | exit(1); |
| 16312 | } |
| 16313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16314 | _ACEOF |
| 16315 | rm -f conftest$ac_exeext |
| 16316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16317 | (eval $ac_link) 2>&5 |
| 16318 | ac_status=$? |
| 16319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16320 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16322 | (eval $ac_try) 2>&5 |
| 16323 | ac_status=$? |
| 16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16325 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16326 | ac_cv_broken_nice=yes |
| 16327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16328 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16329 | echo "$as_me: failed program was:" >&5 |
| 16330 | cat conftest.$ac_ext >&5 |
| 16331 | ( exit $ac_status ) |
| 16332 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16333 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16334 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16335 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16336 | fi |
| 16337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16338 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16339 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16340 | if test "$ac_cv_broken_nice" = yes |
| 16341 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | |
| 16343 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16344 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16345 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16346 | |
| 16347 | fi |
| 16348 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16349 | # Look for subsecond timestamps in struct stat |
| 16350 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16351 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16352 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16354 | else |
| 16355 | cat >conftest.$ac_ext <<_ACEOF |
| 16356 | #line $LINENO "configure" |
| 16357 | #include "confdefs.h" |
| 16358 | #include <sys/stat.h> |
| 16359 | #ifdef F77_DUMMY_MAIN |
| 16360 | # ifdef __cplusplus |
| 16361 | extern "C" |
| 16362 | # endif |
| 16363 | int F77_DUMMY_MAIN() { return 1; } |
| 16364 | #endif |
| 16365 | int |
| 16366 | main () |
| 16367 | { |
| 16368 | |
| 16369 | struct stat st; |
| 16370 | st.st_mtim.tv_nsec = 1; |
| 16371 | |
| 16372 | ; |
| 16373 | return 0; |
| 16374 | } |
| 16375 | _ACEOF |
| 16376 | rm -f conftest.$ac_objext |
| 16377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16378 | (eval $ac_compile) 2>&5 |
| 16379 | ac_status=$? |
| 16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16381 | (exit $ac_status); } && |
| 16382 | { ac_try='test -s conftest.$ac_objext' |
| 16383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16384 | (eval $ac_try) 2>&5 |
| 16385 | ac_status=$? |
| 16386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16387 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16388 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16389 | else |
| 16390 | echo "$as_me: failed program was:" >&5 |
| 16391 | cat conftest.$ac_ext >&5 |
| 16392 | ac_cv_stat_tv_nsec=no |
| 16393 | fi |
| 16394 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16395 | fi |
| 16396 | |
| 16397 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16398 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16399 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16400 | then |
| 16401 | |
| 16402 | cat >>confdefs.h <<\_ACEOF |
| 16403 | #define HAVE_STAT_TV_NSEC 1 |
| 16404 | _ACEOF |
| 16405 | |
| 16406 | fi |
| 16407 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16408 | # 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] | 16409 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 16410 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 16411 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 16412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16414 | cat >conftest.$ac_ext <<_ACEOF |
| 16415 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16416 | #include "confdefs.h" |
| 16417 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16418 | #ifdef F77_DUMMY_MAIN |
| 16419 | # ifdef __cplusplus |
| 16420 | extern "C" |
| 16421 | # endif |
| 16422 | int F77_DUMMY_MAIN() { return 1; } |
| 16423 | #endif |
| 16424 | int |
| 16425 | main () |
| 16426 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16427 | |
| 16428 | int rtn; |
| 16429 | rtn = mvwdelch(0,0,0); |
| 16430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16431 | ; |
| 16432 | return 0; |
| 16433 | } |
| 16434 | _ACEOF |
| 16435 | rm -f conftest.$ac_objext |
| 16436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16437 | (eval $ac_compile) 2>&5 |
| 16438 | ac_status=$? |
| 16439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16440 | (exit $ac_status); } && |
| 16441 | { ac_try='test -s conftest.$ac_objext' |
| 16442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16443 | (eval $ac_try) 2>&5 |
| 16444 | ac_status=$? |
| 16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16446 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16447 | ac_cv_mvwdelch_is_expression=yes |
| 16448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16449 | echo "$as_me: failed program was:" >&5 |
| 16450 | cat conftest.$ac_ext >&5 |
| 16451 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16452 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16453 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16454 | fi |
| 16455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16456 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 16457 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16458 | |
| 16459 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 16460 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16461 | |
| 16462 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16463 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16464 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16465 | |
| 16466 | fi |
| 16467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16468 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 16469 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 16470 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 16471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16473 | cat >conftest.$ac_ext <<_ACEOF |
| 16474 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16475 | #include "confdefs.h" |
| 16476 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16477 | #ifdef F77_DUMMY_MAIN |
| 16478 | # ifdef __cplusplus |
| 16479 | extern "C" |
| 16480 | # endif |
| 16481 | int F77_DUMMY_MAIN() { return 1; } |
| 16482 | #endif |
| 16483 | int |
| 16484 | main () |
| 16485 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16486 | |
| 16487 | WINDOW *w; |
| 16488 | w->_flags = 0; |
| 16489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16490 | ; |
| 16491 | return 0; |
| 16492 | } |
| 16493 | _ACEOF |
| 16494 | rm -f conftest.$ac_objext |
| 16495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16496 | (eval $ac_compile) 2>&5 |
| 16497 | ac_status=$? |
| 16498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16499 | (exit $ac_status); } && |
| 16500 | { ac_try='test -s conftest.$ac_objext' |
| 16501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16502 | (eval $ac_try) 2>&5 |
| 16503 | ac_status=$? |
| 16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16505 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16506 | ac_cv_window_has_flags=yes |
| 16507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16508 | echo "$as_me: failed program was:" >&5 |
| 16509 | cat conftest.$ac_ext >&5 |
| 16510 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16511 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16512 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16513 | fi |
| 16514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16515 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 16516 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16517 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16518 | |
| 16519 | if test "$ac_cv_window_has_flags" = yes |
| 16520 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16521 | |
| 16522 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16523 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16524 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16525 | |
| 16526 | fi |
| 16527 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16528 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 16529 | # Add sys/socket.h to confdefs.h |
| 16530 | cat >> confdefs.h <<\EOF |
| 16531 | #ifdef HAVE_SYS_SOCKET_H |
| 16532 | #include <sys/socket.h> |
| 16533 | #endif |
| 16534 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16535 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16536 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16537 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16540 | cat >conftest.$ac_ext <<_ACEOF |
| 16541 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16542 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | $ac_includes_default |
| 16544 | #ifdef F77_DUMMY_MAIN |
| 16545 | # ifdef __cplusplus |
| 16546 | extern "C" |
| 16547 | # endif |
| 16548 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16549 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16550 | int |
| 16551 | main () |
| 16552 | { |
| 16553 | if ((socklen_t *) 0) |
| 16554 | return 0; |
| 16555 | if (sizeof (socklen_t)) |
| 16556 | return 0; |
| 16557 | ; |
| 16558 | return 0; |
| 16559 | } |
| 16560 | _ACEOF |
| 16561 | rm -f conftest.$ac_objext |
| 16562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16563 | (eval $ac_compile) 2>&5 |
| 16564 | ac_status=$? |
| 16565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16566 | (exit $ac_status); } && |
| 16567 | { ac_try='test -s conftest.$ac_objext' |
| 16568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16569 | (eval $ac_try) 2>&5 |
| 16570 | ac_status=$? |
| 16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16572 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16573 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16575 | echo "$as_me: failed program was:" >&5 |
| 16576 | cat conftest.$ac_ext >&5 |
| 16577 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16578 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16579 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16580 | fi |
| 16581 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16582 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16583 | if test $ac_cv_type_socklen_t = yes; then |
| 16584 | : |
| 16585 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16587 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16588 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16589 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16590 | |
| 16591 | fi |
| 16592 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16593 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16594 | #AC_MSG_CHECKING(for Modules/Setup) |
| 16595 | #if test ! -f Modules/Setup ; then |
| 16596 | # if test ! -d Modules ; then |
| 16597 | # mkdir Modules |
| 16598 | # fi |
| 16599 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 16600 | # AC_MSG_RESULT(creating) |
| 16601 | #else |
| 16602 | # AC_MSG_RESULT(already exists) |
| 16603 | #fi |
| 16604 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16605 | |
| 16606 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16607 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16608 | do |
| 16609 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16610 | done |
| 16611 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16612 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 16613 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16614 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 16615 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16616 | for dir in $SRCDIRS; do |
| 16617 | if test ! -d $dir; then |
| 16618 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16619 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16620 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16621 | echo "$as_me:$LINENO: result: done" >&5 |
| 16622 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16623 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16624 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16625 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16627 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16628 | # This file is a shell script that caches the results of configure |
| 16629 | # 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] | 16630 | # scripts and configure runs, see configure's option --config-cache. |
| 16631 | # It is not useful on other systems. If it contains results you don't |
| 16632 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16633 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16634 | # config.status only pays attention to the cache file if you give it |
| 16635 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16636 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16637 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 16638 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16639 | # following values. |
| 16640 | |
| 16641 | _ACEOF |
| 16642 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16643 | # The following way of writing the cache mishandles newlines in values, |
| 16644 | # but we know of no workaround that is simple, portable, and efficient. |
| 16645 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16646 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16647 | # 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] | 16648 | { |
| 16649 | (set) 2>&1 | |
| 16650 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16651 | *ac_space=\ *) |
| 16652 | # `set' does not quote correctly, so add quotes (double-quote |
| 16653 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16654 | sed -n \ |
| 16655 | "s/'/'\\\\''/g; |
| 16656 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16657 | ;; |
| 16658 | *) |
| 16659 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16660 | sed -n \ |
| 16661 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16662 | ;; |
| 16663 | esac; |
| 16664 | } | |
| 16665 | sed ' |
| 16666 | t clear |
| 16667 | : clear |
| 16668 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16669 | t end |
| 16670 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16671 | : end' >>confcache |
| 16672 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16673 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16675 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16676 | else |
| 16677 | echo "not updating unwritable cache $cache_file" |
| 16678 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16679 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16680 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16681 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16682 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16683 | # Let make expand exec_prefix. |
| 16684 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16687 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16688 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16689 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16690 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16691 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16692 | s/:*\$(srcdir):*/:/; |
| 16693 | s/:*\${srcdir}:*/:/; |
| 16694 | s/:*@srcdir@:*/:/; |
| 16695 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16696 | s/:*$//; |
| 16697 | s/^[^=]*=[ ]*$//; |
| 16698 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16699 | fi |
| 16700 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16701 | DEFS=-DHAVE_CONFIG_H |
| 16702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16704 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16705 | ac_clean_files_save=$ac_clean_files |
| 16706 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16707 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16708 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16709 | cat >$CONFIG_STATUS <<_ACEOF |
| 16710 | #! $SHELL |
| 16711 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16712 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16713 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16714 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 | debug=false |
| 16717 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16718 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16722 | ## --------------------- ## |
| 16723 | ## M4sh Initialization. ## |
| 16724 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | # Be Bourne compatible |
| 16727 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16728 | emulate sh |
| 16729 | NULLCMD=: |
| 16730 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16731 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16732 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | # NLS nuisances. |
| 16735 | # Support unset when possible. |
| 16736 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16737 | as_unset=unset |
| 16738 | else |
| 16739 | as_unset=false |
| 16740 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16743 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16744 | { LANG=C; export LANG; } |
| 16745 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16746 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16747 | { LC_ALL=C; export LC_ALL; } |
| 16748 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16749 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16750 | { LC_TIME=C; export LC_TIME; } |
| 16751 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16752 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16753 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16754 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16755 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16756 | { LANGUAGE=C; export LANGUAGE; } |
| 16757 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16758 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16759 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16760 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16761 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16762 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16763 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16764 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16765 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16766 | |
| 16767 | |
| 16768 | # Name of the executable. |
| 16769 | as_me=`(basename "$0") 2>/dev/null || |
| 16770 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16771 | X"$0" : 'X\(//\)$' \| \ |
| 16772 | X"$0" : 'X\(/\)$' \| \ |
| 16773 | . : '\(.\)' 2>/dev/null || |
| 16774 | echo X/"$0" | |
| 16775 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16776 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16777 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16778 | s/.*/./; q'` |
| 16779 | |
| 16780 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16781 | # Avoid depending upon Character Ranges. |
| 16782 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16783 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16784 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16785 | as_cr_digits='0123456789' |
| 16786 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16787 | |
| 16788 | # The user is always right. |
| 16789 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16790 | echo "#! /bin/sh" >conftest.sh |
| 16791 | echo "exit 0" >>conftest.sh |
| 16792 | chmod +x conftest.sh |
| 16793 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16794 | PATH_SEPARATOR=';' |
| 16795 | else |
| 16796 | PATH_SEPARATOR=: |
| 16797 | fi |
| 16798 | rm -f conftest.sh |
| 16799 | fi |
| 16800 | |
| 16801 | |
| 16802 | as_lineno_1=$LINENO |
| 16803 | as_lineno_2=$LINENO |
| 16804 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16805 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16806 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16807 | # Find who we are. Look in the path if we contain no path at all |
| 16808 | # relative or not. |
| 16809 | case $0 in |
| 16810 | *[\\/]* ) as_myself=$0 ;; |
| 16811 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16812 | for as_dir in $PATH |
| 16813 | do |
| 16814 | IFS=$as_save_IFS |
| 16815 | test -z "$as_dir" && as_dir=. |
| 16816 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16817 | done |
| 16818 | |
| 16819 | ;; |
| 16820 | esac |
| 16821 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16822 | # in which case we are not to be found in the path. |
| 16823 | if test "x$as_myself" = x; then |
| 16824 | as_myself=$0 |
| 16825 | fi |
| 16826 | if test ! -f "$as_myself"; then |
| 16827 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16828 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16829 | { (exit 1); exit 1; }; } |
| 16830 | fi |
| 16831 | case $CONFIG_SHELL in |
| 16832 | '') |
| 16833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16834 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16835 | do |
| 16836 | IFS=$as_save_IFS |
| 16837 | test -z "$as_dir" && as_dir=. |
| 16838 | for as_base in sh bash ksh sh5; do |
| 16839 | case $as_dir in |
| 16840 | /*) |
| 16841 | if ("$as_dir/$as_base" -c ' |
| 16842 | as_lineno_1=$LINENO |
| 16843 | as_lineno_2=$LINENO |
| 16844 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16845 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16846 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16847 | CONFIG_SHELL=$as_dir/$as_base |
| 16848 | export CONFIG_SHELL |
| 16849 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16850 | fi;; |
| 16851 | esac |
| 16852 | done |
| 16853 | done |
| 16854 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16855 | esac |
| 16856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16857 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16858 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16859 | # line-number line before each line; the second 'sed' does the real |
| 16860 | # work. The second script uses 'N' to pair each line-number line |
| 16861 | # with the numbered line, and appends trailing '-' during |
| 16862 | # substitution so that $LINENO is not a special case at line end. |
| 16863 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16864 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16865 | sed '=' <$as_myself | |
| 16866 | sed ' |
| 16867 | N |
| 16868 | s,$,-, |
| 16869 | : loop |
| 16870 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16871 | t loop |
| 16872 | s,-$,, |
| 16873 | s,^['$as_cr_digits']*\n,, |
| 16874 | ' >$as_me.lineno && |
| 16875 | chmod +x $as_me.lineno || |
| 16876 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16877 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16878 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16880 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16881 | # (the dirname of $[0] is not the place where we might find the |
| 16882 | # original and so on. Autoconf is especially sensible to this). |
| 16883 | . ./$as_me.lineno |
| 16884 | # Exit status is that of the last command. |
| 16885 | exit |
| 16886 | } |
| 16887 | |
| 16888 | |
| 16889 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16890 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16891 | ' ECHO_T=' ' ;; |
| 16892 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16893 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16894 | esac |
| 16895 | |
| 16896 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16897 | as_expr=expr |
| 16898 | else |
| 16899 | as_expr=false |
| 16900 | fi |
| 16901 | |
| 16902 | rm -f conf$$ conf$$.exe conf$$.file |
| 16903 | echo >conf$$.file |
| 16904 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16905 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16906 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16907 | if test -f conf$$.exe; then |
| 16908 | # Don't use ln at all; we don't have any links |
| 16909 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16911 | as_ln_s='ln -s' |
| 16912 | fi |
| 16913 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16914 | as_ln_s=ln |
| 16915 | else |
| 16916 | as_ln_s='cp -p' |
| 16917 | fi |
| 16918 | rm -f conf$$ conf$$.exe conf$$.file |
| 16919 | |
| 16920 | as_executable_p="test -f" |
| 16921 | |
| 16922 | # Sed expression to map a string onto a valid CPP name. |
| 16923 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16924 | |
| 16925 | # Sed expression to map a string onto a valid variable name. |
| 16926 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16927 | |
| 16928 | |
| 16929 | # IFS |
| 16930 | # We need space, tab and new line, in precisely that order. |
| 16931 | as_nl=' |
| 16932 | ' |
| 16933 | IFS=" $as_nl" |
| 16934 | |
| 16935 | # CDPATH. |
| 16936 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16937 | |
| 16938 | exec 6>&1 |
| 16939 | |
| 16940 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16941 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16942 | # values after options handling. Logging --version etc. is OK. |
| 16943 | exec 5>>config.log |
| 16944 | { |
| 16945 | echo |
| 16946 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16947 | ## Running $as_me. ## |
| 16948 | _ASBOX |
| 16949 | } >&5 |
| 16950 | cat >&5 <<_CSEOF |
| 16951 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16952 | This file was extended by python $as_me 2.3, which was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16953 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16954 | |
| 16955 | CONFIG_FILES = $CONFIG_FILES |
| 16956 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16957 | CONFIG_LINKS = $CONFIG_LINKS |
| 16958 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16959 | $ $0 $@ |
| 16960 | |
| 16961 | _CSEOF |
| 16962 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16963 | echo >&5 |
| 16964 | _ACEOF |
| 16965 | |
| 16966 | # Files that config.status was made for. |
| 16967 | if test -n "$ac_config_files"; then |
| 16968 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16969 | fi |
| 16970 | |
| 16971 | if test -n "$ac_config_headers"; then |
| 16972 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16973 | fi |
| 16974 | |
| 16975 | if test -n "$ac_config_links"; then |
| 16976 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16977 | fi |
| 16978 | |
| 16979 | if test -n "$ac_config_commands"; then |
| 16980 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16981 | fi |
| 16982 | |
| 16983 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16984 | |
| 16985 | ac_cs_usage="\ |
| 16986 | \`$as_me' instantiates files from templates according to the |
| 16987 | current configuration. |
| 16988 | |
| 16989 | Usage: $0 [OPTIONS] [FILE]... |
| 16990 | |
| 16991 | -h, --help print this help, then exit |
| 16992 | -V, --version print version number, then exit |
| 16993 | -d, --debug don't remove temporary files |
| 16994 | --recheck update $as_me by reconfiguring in the same conditions |
| 16995 | --file=FILE[:TEMPLATE] |
| 16996 | instantiate the configuration file FILE |
| 16997 | --header=FILE[:TEMPLATE] |
| 16998 | instantiate the configuration header FILE |
| 16999 | |
| 17000 | Configuration files: |
| 17001 | $config_files |
| 17002 | |
| 17003 | Configuration headers: |
| 17004 | $config_headers |
| 17005 | |
| 17006 | Report bugs to <bug-autoconf@gnu.org>." |
| 17007 | _ACEOF |
| 17008 | |
| 17009 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17010 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17011 | python config.status 2.3 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17012 | configured by $0, generated by GNU Autoconf 2.53, |
| 17013 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 17014 | |
| 17015 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 17016 | Free Software Foundation, Inc. |
| 17017 | This config.status script is free software; the Free Software Foundation |
| 17018 | gives unlimited permission to copy, distribute and modify it." |
| 17019 | srcdir=$srcdir |
| 17020 | INSTALL="$INSTALL" |
| 17021 | _ACEOF |
| 17022 | |
| 17023 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17024 | # If no file are specified by the user, then we need to provide default |
| 17025 | # value. By we need to know if files were specified by the user. |
| 17026 | ac_need_defaults=: |
| 17027 | while test $# != 0 |
| 17028 | do |
| 17029 | case $1 in |
| 17030 | --*=*) |
| 17031 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 17032 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 17033 | shift |
| 17034 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 17035 | shift |
| 17036 | ;; |
| 17037 | -*);; |
| 17038 | *) # This is not an option, so the user has probably given explicit |
| 17039 | # arguments. |
| 17040 | ac_need_defaults=false;; |
| 17041 | esac |
| 17042 | |
| 17043 | case $1 in |
| 17044 | # Handling of the options. |
| 17045 | _ACEOF |
| 17046 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17047 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17048 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 17049 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 17050 | _ACEOF |
| 17051 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17052 | --version | --vers* | -V ) |
| 17053 | echo "$ac_cs_version"; exit 0 ;; |
| 17054 | --he | --h) |
| 17055 | # Conflict between --help and --header |
| 17056 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 17057 | Try \`$0 --help' for more information." >&5 |
| 17058 | echo "$as_me: error: ambiguous option: $1 |
| 17059 | Try \`$0 --help' for more information." >&2;} |
| 17060 | { (exit 1); exit 1; }; };; |
| 17061 | --help | --hel | -h ) |
| 17062 | echo "$ac_cs_usage"; exit 0 ;; |
| 17063 | --debug | --d* | -d ) |
| 17064 | debug=: ;; |
| 17065 | --file | --fil | --fi | --f ) |
| 17066 | shift |
| 17067 | CONFIG_FILES="$CONFIG_FILES $1" |
| 17068 | ac_need_defaults=false;; |
| 17069 | --header | --heade | --head | --hea ) |
| 17070 | shift |
| 17071 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 17072 | ac_need_defaults=false;; |
| 17073 | |
| 17074 | # This is an error. |
| 17075 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 17076 | Try \`$0 --help' for more information." >&5 |
| 17077 | echo "$as_me: error: unrecognized option: $1 |
| 17078 | Try \`$0 --help' for more information." >&2;} |
| 17079 | { (exit 1); exit 1; }; } ;; |
| 17080 | |
| 17081 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 17082 | |
| 17083 | esac |
| 17084 | shift |
| 17085 | done |
| 17086 | |
| 17087 | _ACEOF |
| 17088 | |
| 17089 | |
| 17090 | |
| 17091 | |
| 17092 | |
| 17093 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17094 | for ac_config_target in $ac_config_targets |
| 17095 | do |
| 17096 | case "$ac_config_target" in |
| 17097 | # Handling of arguments. |
| 17098 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 17099 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 17100 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17101 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17102 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17103 | { (exit 1); exit 1; }; };; |
| 17104 | esac |
| 17105 | done |
| 17106 | |
| 17107 | # If the user did not use the arguments to specify the items to instantiate, |
| 17108 | # then the envvar interface is used. Set only those that are not. |
| 17109 | # We use the long form for the default assignment because of an extremely |
| 17110 | # bizarre bug on SunOS 4.1.3. |
| 17111 | if $ac_need_defaults; then |
| 17112 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17113 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17114 | fi |
| 17115 | |
| 17116 | # Create a temporary directory, and hook for its removal unless debugging. |
| 17117 | $debug || |
| 17118 | { |
| 17119 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 17120 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17121 | } |
| 17122 | |
| 17123 | # Create a (secure) tmp directory for tmp files. |
| 17124 | : ${TMPDIR=/tmp} |
| 17125 | { |
| 17126 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 17127 | test -n "$tmp" && test -d "$tmp" |
| 17128 | } || |
| 17129 | { |
| 17130 | tmp=$TMPDIR/cs$$-$RANDOM |
| 17131 | (umask 077 && mkdir $tmp) |
| 17132 | } || |
| 17133 | { |
| 17134 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 17135 | { (exit 1); exit 1; } |
| 17136 | } |
| 17137 | |
| 17138 | _ACEOF |
| 17139 | |
| 17140 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17141 | |
| 17142 | # |
| 17143 | # CONFIG_FILES section. |
| 17144 | # |
| 17145 | |
| 17146 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17147 | # This happens for instance when ./config.status config.h |
| 17148 | if test -n "\$CONFIG_FILES"; then |
| 17149 | # Protect against being on the right side of a sed subst in config.status. |
| 17150 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 17151 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 17152 | s,@SHELL@,$SHELL,;t t |
| 17153 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 17154 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 17155 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 17156 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 17157 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 17158 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 17159 | s,@exec_prefix@,$exec_prefix,;t t |
| 17160 | s,@prefix@,$prefix,;t t |
| 17161 | s,@program_transform_name@,$program_transform_name,;t t |
| 17162 | s,@bindir@,$bindir,;t t |
| 17163 | s,@sbindir@,$sbindir,;t t |
| 17164 | s,@libexecdir@,$libexecdir,;t t |
| 17165 | s,@datadir@,$datadir,;t t |
| 17166 | s,@sysconfdir@,$sysconfdir,;t t |
| 17167 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 17168 | s,@localstatedir@,$localstatedir,;t t |
| 17169 | s,@libdir@,$libdir,;t t |
| 17170 | s,@includedir@,$includedir,;t t |
| 17171 | s,@oldincludedir@,$oldincludedir,;t t |
| 17172 | s,@infodir@,$infodir,;t t |
| 17173 | s,@mandir@,$mandir,;t t |
| 17174 | s,@build_alias@,$build_alias,;t t |
| 17175 | s,@host_alias@,$host_alias,;t t |
| 17176 | s,@target_alias@,$target_alias,;t t |
| 17177 | s,@DEFS@,$DEFS,;t t |
| 17178 | s,@ECHO_C@,$ECHO_C,;t t |
| 17179 | s,@ECHO_N@,$ECHO_N,;t t |
| 17180 | s,@ECHO_T@,$ECHO_T,;t t |
| 17181 | s,@LIBS@,$LIBS,;t t |
| 17182 | s,@VERSION@,$VERSION,;t t |
| 17183 | s,@SOVERSION@,$SOVERSION,;t t |
| 17184 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 17185 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 17186 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 17187 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17188 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17189 | s,@MACHDEP@,$MACHDEP,;t t |
| 17190 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 17191 | s,@CXX@,$CXX,;t t |
| 17192 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17193 | s,@EXEEXT@,$EXEEXT,;t t |
| 17194 | s,@CC@,$CC,;t t |
| 17195 | s,@CFLAGS@,$CFLAGS,;t t |
| 17196 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17197 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17198 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17199 | s,@OBJEXT@,$OBJEXT,;t t |
| 17200 | s,@CPP@,$CPP,;t t |
| 17201 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17202 | s,@LIBRARY@,$LIBRARY,;t t |
| 17203 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17204 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17205 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17206 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17207 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17208 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17209 | s,@LINKCC@,$LINKCC,;t t |
| 17210 | s,@RANLIB@,$RANLIB,;t t |
| 17211 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17212 | s,@AR@,$AR,;t t |
| 17213 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17214 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17215 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17216 | s,@LN@,$LN,;t t |
| 17217 | s,@OPT@,$OPT,;t t |
| 17218 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17219 | s,@SO@,$SO,;t t |
| 17220 | s,@LDSHARED@,$LDSHARED,;t t |
| 17221 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17222 | s,@CCSHARED@,$CCSHARED,;t t |
| 17223 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17224 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17225 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17226 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17227 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17228 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17229 | s,@LDLAST@,$LDLAST,;t t |
| 17230 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17231 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17232 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17233 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17234 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17235 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17236 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17237 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17238 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17239 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17240 | s,@LIBM@,$LIBM,;t t |
| 17241 | s,@LIBC@,$LIBC,;t t |
| 17242 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17243 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17244 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17245 | CEOF |
| 17246 | |
| 17247 | _ACEOF |
| 17248 | |
| 17249 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17250 | # Split the substitutions into bite-sized pieces for seds with |
| 17251 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17252 | ac_max_sed_lines=48 |
| 17253 | ac_sed_frag=1 # Number of current file. |
| 17254 | ac_beg=1 # First line for current file. |
| 17255 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17256 | ac_more_lines=: |
| 17257 | ac_sed_cmds= |
| 17258 | while $ac_more_lines; do |
| 17259 | if test $ac_beg -gt 1; then |
| 17260 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17261 | else |
| 17262 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17263 | fi |
| 17264 | if test ! -s $tmp/subs.frag; then |
| 17265 | ac_more_lines=false |
| 17266 | else |
| 17267 | # The purpose of the label and of the branching condition is to |
| 17268 | # speed up the sed processing (if there are no `@' at all, there |
| 17269 | # is no need to browse any of the substitutions). |
| 17270 | # These are the two extra sed commands mentioned above. |
| 17271 | (echo ':t |
| 17272 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17273 | if test -z "$ac_sed_cmds"; then |
| 17274 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17275 | else |
| 17276 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17277 | fi |
| 17278 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17279 | ac_beg=$ac_end |
| 17280 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17281 | fi |
| 17282 | done |
| 17283 | if test -z "$ac_sed_cmds"; then |
| 17284 | ac_sed_cmds=cat |
| 17285 | fi |
| 17286 | fi # test -n "$CONFIG_FILES" |
| 17287 | |
| 17288 | _ACEOF |
| 17289 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17290 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17291 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17292 | case $ac_file in |
| 17293 | - | *:- | *:-:* ) # input from stdin |
| 17294 | cat >$tmp/stdin |
| 17295 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17296 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17297 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17298 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17299 | * ) ac_file_in=$ac_file.in ;; |
| 17300 | esac |
| 17301 | |
| 17302 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17303 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17304 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17305 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17306 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17307 | X"$ac_file" : 'X\(/\)' \| \ |
| 17308 | . : '\(.\)' 2>/dev/null || |
| 17309 | echo X"$ac_file" | |
| 17310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17311 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17312 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17313 | /^X\(\/\).*/{ s//\1/; q; } |
| 17314 | s/.*/./; q'` |
| 17315 | { case "$ac_dir" in |
| 17316 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17317 | *) as_incr_dir=.;; |
| 17318 | esac |
| 17319 | as_dummy="$ac_dir" |
| 17320 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17321 | case $as_mkdir_dir in |
| 17322 | # Skip DOS drivespec |
| 17323 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17324 | *) |
| 17325 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17326 | test -d "$as_incr_dir" || |
| 17327 | mkdir "$as_incr_dir" || |
| 17328 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17329 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17330 | { (exit 1); exit 1; }; } |
| 17331 | ;; |
| 17332 | esac |
| 17333 | done; } |
| 17334 | |
| 17335 | ac_builddir=. |
| 17336 | |
| 17337 | if test "$ac_dir" != .; then |
| 17338 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17339 | # A "../" for each directory in $ac_dir_suffix. |
| 17340 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17341 | else |
| 17342 | ac_dir_suffix= ac_top_builddir= |
| 17343 | fi |
| 17344 | |
| 17345 | case $srcdir in |
| 17346 | .) # No --srcdir option. We are building in place. |
| 17347 | ac_srcdir=. |
| 17348 | if test -z "$ac_top_builddir"; then |
| 17349 | ac_top_srcdir=. |
| 17350 | else |
| 17351 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17352 | fi ;; |
| 17353 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17354 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17355 | ac_top_srcdir=$srcdir ;; |
| 17356 | *) # Relative path. |
| 17357 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17358 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17359 | esac |
| 17360 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17361 | # absolute. |
| 17362 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 17363 | 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] | 17364 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17365 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17366 | |
| 17367 | |
| 17368 | case $INSTALL in |
| 17369 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17370 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17371 | esac |
| 17372 | |
| 17373 | if test x"$ac_file" != x-; then |
| 17374 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17375 | echo "$as_me: creating $ac_file" >&6;} |
| 17376 | rm -f "$ac_file" |
| 17377 | fi |
| 17378 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17379 | # use $as_me), people would be surprised to read: |
| 17380 | # /* config.h. Generated by config.status. */ |
| 17381 | if test x"$ac_file" = x-; then |
| 17382 | configure_input= |
| 17383 | else |
| 17384 | configure_input="$ac_file. " |
| 17385 | fi |
| 17386 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17387 | sed 's,.*/,,'` by configure." |
| 17388 | |
| 17389 | # First look for the input files in the build tree, otherwise in the |
| 17390 | # src tree. |
| 17391 | ac_file_inputs=`IFS=: |
| 17392 | for f in $ac_file_in; do |
| 17393 | case $f in |
| 17394 | -) echo $tmp/stdin ;; |
| 17395 | [\\/$]*) |
| 17396 | # Absolute (can't be DOS-style, as IFS=:) |
| 17397 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17398 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17399 | { (exit 1); exit 1; }; } |
| 17400 | echo $f;; |
| 17401 | *) # Relative |
| 17402 | if test -f "$f"; then |
| 17403 | # Build tree |
| 17404 | echo $f |
| 17405 | elif test -f "$srcdir/$f"; then |
| 17406 | # Source tree |
| 17407 | echo $srcdir/$f |
| 17408 | else |
| 17409 | # /dev/null tree |
| 17410 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17411 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17412 | { (exit 1); exit 1; }; } |
| 17413 | fi;; |
| 17414 | esac |
| 17415 | done` || { (exit 1); exit 1; } |
| 17416 | _ACEOF |
| 17417 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17418 | sed "$ac_vpsub |
| 17419 | $extrasub |
| 17420 | _ACEOF |
| 17421 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17422 | :t |
| 17423 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17424 | s,@configure_input@,$configure_input,;t t |
| 17425 | s,@srcdir@,$ac_srcdir,;t t |
| 17426 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17427 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17428 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17429 | s,@builddir@,$ac_builddir,;t t |
| 17430 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17431 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17432 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17433 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17434 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17435 | rm -f $tmp/stdin |
| 17436 | if test x"$ac_file" != x-; then |
| 17437 | mv $tmp/out $ac_file |
| 17438 | else |
| 17439 | cat $tmp/out |
| 17440 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17441 | fi |
| 17442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17443 | done |
| 17444 | _ACEOF |
| 17445 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17447 | # |
| 17448 | # CONFIG_HEADER section. |
| 17449 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17450 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17451 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17452 | # 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] | 17453 | # |
| 17454 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17455 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17456 | ac_dB='[ ].*$,\1#\2' |
| 17457 | ac_dC=' ' |
| 17458 | ac_dD=',;t' |
| 17459 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17460 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17461 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17462 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17465 | 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] | 17466 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17467 | case $ac_file in |
| 17468 | - | *:- | *:-:* ) # input from stdin |
| 17469 | cat >$tmp/stdin |
| 17470 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17471 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17472 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17473 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17474 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17475 | esac |
| 17476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17477 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17478 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17480 | # First look for the input files in the build tree, otherwise in the |
| 17481 | # src tree. |
| 17482 | ac_file_inputs=`IFS=: |
| 17483 | for f in $ac_file_in; do |
| 17484 | case $f in |
| 17485 | -) echo $tmp/stdin ;; |
| 17486 | [\\/$]*) |
| 17487 | # Absolute (can't be DOS-style, as IFS=:) |
| 17488 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17489 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17490 | { (exit 1); exit 1; }; } |
| 17491 | echo $f;; |
| 17492 | *) # Relative |
| 17493 | if test -f "$f"; then |
| 17494 | # Build tree |
| 17495 | echo $f |
| 17496 | elif test -f "$srcdir/$f"; then |
| 17497 | # Source tree |
| 17498 | echo $srcdir/$f |
| 17499 | else |
| 17500 | # /dev/null tree |
| 17501 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17502 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17503 | { (exit 1); exit 1; }; } |
| 17504 | fi;; |
| 17505 | esac |
| 17506 | done` || { (exit 1); exit 1; } |
| 17507 | # Remove the trailing spaces. |
| 17508 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17510 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17512 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17513 | # `conftest.undefs', that substitutes the proper values into |
| 17514 | # config.h.in to produce config.h. The first handles `#define' |
| 17515 | # templates, and the second `#undef' templates. |
| 17516 | # And first: Protect against being on the right side of a sed subst in |
| 17517 | # config.status. Protect against being in an unquoted here document |
| 17518 | # in config.status. |
| 17519 | rm -f conftest.defines conftest.undefs |
| 17520 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17521 | # Putting comments in sed scripts is not portable. |
| 17522 | # |
| 17523 | # `end' is used to avoid that the second main sed command (meant for |
| 17524 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17525 | # See the Autoconf documentation for `clear'. |
| 17526 | cat >confdef2sed.sed <<\_ACEOF |
| 17527 | s/[\\&,]/\\&/g |
| 17528 | s,[\\$`],\\&,g |
| 17529 | t clear |
| 17530 | : clear |
| 17531 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17532 | t end |
| 17533 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17534 | : end |
| 17535 | _ACEOF |
| 17536 | # If some macros were called several times there might be several times |
| 17537 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17538 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17539 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17540 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17541 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17542 | |
| 17543 | # This sed command replaces #undef with comments. This is necessary, for |
| 17544 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17545 | # 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] | 17546 | cat >>conftest.undefs <<\_ACEOF |
| 17547 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17548 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17550 | # Break up conftest.defines because some shells have a limit on the size |
| 17551 | # of here documents, and old seds have small limits too (100 cmds). |
| 17552 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 17553 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 17554 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17555 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17556 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17557 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17558 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17559 | # Write a limited-size here document to $tmp/defines.sed. |
| 17560 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17561 | # Speed up: don't consider the non `#define' lines. |
| 17562 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17563 | # Work around the forget-to-reset-the-flag bug. |
| 17564 | echo 't clr' >>$CONFIG_STATUS |
| 17565 | echo ': clr' >>$CONFIG_STATUS |
| 17566 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17567 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17568 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17569 | rm -f $tmp/in |
| 17570 | mv $tmp/out $tmp/in |
| 17571 | ' >>$CONFIG_STATUS |
| 17572 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17573 | rm -f conftest.defines |
| 17574 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17575 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17576 | rm -f conftest.defines |
| 17577 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 17578 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17580 | # Break up conftest.undefs because some shells have a limit on the size |
| 17581 | # of here documents, and old seds have small limits too (100 cmds). |
| 17582 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17583 | rm -f conftest.tail |
| 17584 | while grep . conftest.undefs >/dev/null |
| 17585 | do |
| 17586 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17587 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17588 | # Speed up: don't consider the non `#undef' |
| 17589 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17590 | # Work around the forget-to-reset-the-flag bug. |
| 17591 | echo 't clr' >>$CONFIG_STATUS |
| 17592 | echo ': clr' >>$CONFIG_STATUS |
| 17593 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17594 | echo 'CEOF |
| 17595 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17596 | rm -f $tmp/in |
| 17597 | mv $tmp/out $tmp/in |
| 17598 | ' >>$CONFIG_STATUS |
| 17599 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17600 | rm -f conftest.undefs |
| 17601 | mv conftest.tail conftest.undefs |
| 17602 | done |
| 17603 | rm -f conftest.undefs |
| 17604 | |
| 17605 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17606 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17607 | # use $as_me), people would be surprised to read: |
| 17608 | # /* config.h. Generated by config.status. */ |
| 17609 | if test x"$ac_file" = x-; then |
| 17610 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17612 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17613 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17614 | cat $tmp/in >>$tmp/config.h |
| 17615 | rm -f $tmp/in |
| 17616 | if test x"$ac_file" != x-; then |
| 17617 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 17618 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17619 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17620 | else |
| 17621 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17622 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17623 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17624 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17625 | X"$ac_file" : 'X\(/\)' \| \ |
| 17626 | . : '\(.\)' 2>/dev/null || |
| 17627 | echo X"$ac_file" | |
| 17628 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17629 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17630 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17631 | /^X\(\/\).*/{ s//\1/; q; } |
| 17632 | s/.*/./; q'` |
| 17633 | { case "$ac_dir" in |
| 17634 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17635 | *) as_incr_dir=.;; |
| 17636 | esac |
| 17637 | as_dummy="$ac_dir" |
| 17638 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17639 | case $as_mkdir_dir in |
| 17640 | # Skip DOS drivespec |
| 17641 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17642 | *) |
| 17643 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17644 | test -d "$as_incr_dir" || |
| 17645 | mkdir "$as_incr_dir" || |
| 17646 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17647 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17648 | { (exit 1); exit 1; }; } |
| 17649 | ;; |
| 17650 | esac |
| 17651 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17653 | rm -f $ac_file |
| 17654 | mv $tmp/config.h $ac_file |
| 17655 | fi |
| 17656 | else |
| 17657 | cat $tmp/config.h |
| 17658 | rm -f $tmp/config.h |
| 17659 | fi |
| 17660 | done |
| 17661 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17663 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17665 | { (exit 0); exit 0; } |
| 17666 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17667 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17668 | ac_clean_files=$ac_clean_files_save |
| 17669 | |
| 17670 | |
| 17671 | # configure is writing to config.log, and then calls config.status. |
| 17672 | # config.status does its own redirection, appending to config.log. |
| 17673 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17674 | # by configure, so config.status won't be able to write to it; its |
| 17675 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17676 | # effectively closing config.log, so it can be properly (re)opened and |
| 17677 | # appended to by config.status. When coming back to configure, we |
| 17678 | # need to make the FD available again. |
| 17679 | if test "$no_create" != yes; then |
| 17680 | ac_cs_success=: |
| 17681 | exec 5>/dev/null |
| 17682 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17683 | exec 5>>config.log |
| 17684 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17685 | # would make configure fail if this is the last instruction. |
| 17686 | $ac_cs_success || { (exit 1); exit 1; } |
| 17687 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17688 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17689 | |
| 17690 | echo "creating Setup" |
| 17691 | if test ! -f Modules/Setup |
| 17692 | then |
| 17693 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17694 | fi |
| 17695 | |
| 17696 | echo "creating Setup.local" |
| 17697 | if test ! -f Modules/Setup.local |
| 17698 | then |
| 17699 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17700 | fi |
| 17701 | |
| 17702 | echo "creating Makefile" |
| 17703 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17704 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17705 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17706 | mv config.c Modules |