Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.369 . |
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 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1255 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1256 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1257 | # Arguments passed to configure. |
| 1258 | |
| 1259 | CONFIG_ARGS="$ac_configure_args" |
| 1260 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1261 | # Check whether --enable-framework or --disable-framework was given. |
| 1262 | if test "${enable_framework+set}" = set; then |
| 1263 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1264 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1265 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1266 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1267 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1268 | esac |
| 1269 | case $enableval in |
| 1270 | no) |
| 1271 | PYTHONFRAMEWORK= |
| 1272 | PYTHONFRAMEWORKDIR=no-framework |
| 1273 | PYTHONFRAMEWORKPREFIX= |
| 1274 | PYTHONFRAMEWORKINSTALLDIR= |
| 1275 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1276 | ;; |
| 1277 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1278 | PYTHONFRAMEWORK=Python |
| 1279 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1280 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1281 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1282 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1283 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1286 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1287 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1288 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1289 | PYTHONFRAMEWORKPREFIX= |
| 1290 | PYTHONFRAMEWORKINSTALLDIR= |
| 1291 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1293 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1298 | |
| 1299 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1300 | ## AC_HELP_STRING(--with-dyld, |
| 1301 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1302 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1303 | # Set name for machine-dependent library files |
| 1304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1306 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1307 | if test -z "$MACHDEP" |
| 1308 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1309 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1310 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1311 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1312 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1313 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1314 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1315 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1316 | ac_md_system=`echo $ac_sys_system | |
| 1317 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1318 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1319 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1320 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1321 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1322 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1323 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1324 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1325 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1326 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1327 | esac |
| 1328 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1329 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1330 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1331 | # disable features if it is defined, without any means to access these |
| 1332 | # features as extensions. For these systems, we skip the definition of |
| 1333 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1334 | # some feature, make sure there is no alternative way to access this |
| 1335 | # feature. Also, when using wildcards, make sure you have verified the |
| 1336 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1337 | # wildcard, and that the wildcard does not include future systems |
| 1338 | # (which may remove their limitations). |
| 1339 | case $ac_sys_system/$ac_sys_release in |
| 1340 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1341 | # even though select is a POSIX function. Reported by J. Ribbens. |
| 1342 | OpenBSD/2.* | OpenBSD/3.[012]) |
| 1343 | define_xopen_source=no;; |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1344 | # On FreeBSD 5.0, chroot and setgroups are not declared if _XOPEN_SOURCE |
| 1345 | # is define. Reported by M. Recht. |
| 1346 | FreeBSD/5.0*) |
| 1347 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1348 | esac |
| 1349 | |
| 1350 | if test $define_xopen_source = yes |
| 1351 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1352 | |
| 1353 | cat >>confdefs.h <<\_ACEOF |
| 1354 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1355 | _ACEOF |
| 1356 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1357 | |
| 1358 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1359 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1360 | # several APIs are not declared. Since this is also needed in some |
| 1361 | # cases for HP-UX, we define it globally. |
| 1362 | |
| 1363 | |
| 1364 | cat >>confdefs.h <<\_ACEOF |
| 1365 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1366 | _ACEOF |
| 1367 | |
| 1368 | |
| 1369 | cat >>confdefs.h <<\_ACEOF |
| 1370 | #define _POSIX_C_SOURCE 200112L |
| 1371 | _ACEOF |
| 1372 | |
| 1373 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1374 | fi |
| 1375 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1376 | # |
| 1377 | # SGI compilers allow the specification of the both the ABI and the |
| 1378 | # ISA on the command line. Depending on the values of these switches, |
| 1379 | # different and often incompatable code will be generated. |
| 1380 | # |
| 1381 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1382 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1383 | # variable is also adjusted. |
| 1384 | # |
| 1385 | |
| 1386 | if test ! -z "$SGI_ABI" |
| 1387 | then |
| 1388 | CC="cc $SGI_ABI" |
| 1389 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1390 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1393 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1394 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1395 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1396 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1397 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1398 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1399 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1400 | if test "${with_gcc+set}" = set; then |
| 1401 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1402 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1403 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1404 | no) CC=cc |
| 1405 | without_gcc=yes;; |
| 1406 | yes) CC=gcc |
| 1407 | without_gcc=no;; |
| 1408 | *) CC=$withval |
| 1409 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1410 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1413 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1414 | AIX*) CC=cc_r |
| 1415 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1416 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1417 | case $BE_HOST_CPU in |
| 1418 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1419 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1420 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1421 | OPT="-O -export pragma" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1422 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1423 | ;; |
| 1424 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1425 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1426 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1427 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1428 | ;; |
| 1429 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1431 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1432 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1433 | ;; |
| 1434 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1435 | AR="\$(srcdir)/Modules/ar_beos" |
| 1436 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1437 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1438 | Monterey*) |
| 1439 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1440 | without_gcc=;; |
| 1441 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1442 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1443 | fi; |
| 1444 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1445 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1446 | |
| 1447 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1448 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1449 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1451 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1452 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1453 | # Check whether --with-cxx or --without-cxx was given. |
| 1454 | if test "${with_cxx+set}" = set; then |
| 1455 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1456 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1457 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1458 | case $withval in |
| 1459 | no) CXX= |
| 1460 | with_cxx=no;; |
| 1461 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1462 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1463 | with_cxx=$withval;; |
| 1464 | esac |
| 1465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1467 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1468 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1470 | fi; |
| 1471 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1472 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1473 | |
| 1474 | if test "$with_cxx" = "yes" |
| 1475 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1477 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1478 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1479 | fi |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1484 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1485 | then |
| 1486 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1487 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1488 | # 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] | 1489 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1492 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1494 | else |
| 1495 | if test -n "$CXX"; then |
| 1496 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1499 | for as_dir in $PATH |
| 1500 | do |
| 1501 | IFS=$as_save_IFS |
| 1502 | test -z "$as_dir" && as_dir=. |
| 1503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1505 | ac_cv_prog_CXX="$ac_prog" |
| 1506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1507 | break 2 |
| 1508 | fi |
| 1509 | done |
| 1510 | done |
| 1511 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1512 | fi |
| 1513 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1515 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1516 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1517 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1519 | echo "$as_me:$LINENO: result: no" >&5 |
| 1520 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1521 | fi |
| 1522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1523 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1524 | done |
| 1525 | test -n "$CXX" || CXX="notfound" |
| 1526 | |
| 1527 | if test "$CXX" = "notfound" |
| 1528 | then |
| 1529 | CXX= |
| 1530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1531 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1532 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1533 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1534 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1535 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1536 | cat >conftest.$ac_ext <<_ACEOF |
| 1537 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1538 | #include "confdefs.h" |
| 1539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1540 | #ifdef F77_DUMMY_MAIN |
| 1541 | # ifdef __cplusplus |
| 1542 | extern "C" |
| 1543 | # endif |
| 1544 | int F77_DUMMY_MAIN() { return 1; } |
| 1545 | #endif |
| 1546 | int |
| 1547 | main () |
| 1548 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | ; |
| 1551 | return 0; |
| 1552 | } |
| 1553 | _ACEOF |
| 1554 | ac_clean_files_save=$ac_clean_files |
| 1555 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1556 | # Try to create an executable without -o first, disregard a.out. |
| 1557 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1558 | # of exeext. |
| 1559 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1560 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1561 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1562 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1563 | (eval $ac_link_default) 2>&5 |
| 1564 | ac_status=$? |
| 1565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1566 | (exit $ac_status); }; then |
| 1567 | # Find the output, starting from the most likely. This scheme is |
| 1568 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1569 | # resort. |
| 1570 | |
| 1571 | # Be careful to initialize this variable, since it used to be cached. |
| 1572 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1573 | ac_cv_exeext= |
| 1574 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1575 | ls a.out conftest 2>/dev/null; |
| 1576 | ls a.* conftest.* 2>/dev/null`; do |
| 1577 | case $ac_file in |
| 1578 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1579 | a.out ) # We found the default executable, but exeext='' is most |
| 1580 | # certainly right. |
| 1581 | break;; |
| 1582 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1583 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1584 | export ac_cv_exeext |
| 1585 | break;; |
| 1586 | * ) break;; |
| 1587 | esac |
| 1588 | done |
| 1589 | else |
| 1590 | echo "$as_me: failed program was:" >&5 |
| 1591 | cat conftest.$ac_ext >&5 |
| 1592 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1593 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1594 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1596 | |
| 1597 | ac_exeext=$ac_cv_exeext |
| 1598 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1599 | echo "${ECHO_T}$ac_file" >&6 |
| 1600 | |
| 1601 | # Check the compiler produces executables we can run. If not, either |
| 1602 | # the compiler is broken, or we cross compile. |
| 1603 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1604 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1605 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1606 | # If not cross compiling, check that we can run a simple program. |
| 1607 | if test "$cross_compiling" != yes; then |
| 1608 | if { ac_try='./$ac_file' |
| 1609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1610 | (eval $ac_try) 2>&5 |
| 1611 | ac_status=$? |
| 1612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1613 | (exit $ac_status); }; }; then |
| 1614 | cross_compiling=no |
| 1615 | else |
| 1616 | if test "$cross_compiling" = maybe; then |
| 1617 | cross_compiling=yes |
| 1618 | else |
| 1619 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1620 | If you meant to cross compile, use \`--host'." >&5 |
| 1621 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1622 | If you meant to cross compile, use \`--host'." >&2;} |
| 1623 | { (exit 1); exit 1; }; } |
| 1624 | fi |
| 1625 | fi |
| 1626 | fi |
| 1627 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1628 | echo "${ECHO_T}yes" >&6 |
| 1629 | |
| 1630 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1631 | ac_clean_files=$ac_clean_files_save |
| 1632 | # Check the compiler produces executables we can run. If not, either |
| 1633 | # the compiler is broken, or we cross compile. |
| 1634 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1635 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1636 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1637 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1638 | |
| 1639 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1640 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1642 | (eval $ac_link) 2>&5 |
| 1643 | ac_status=$? |
| 1644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1645 | (exit $ac_status); }; then |
| 1646 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1647 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1648 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1649 | # `rm'. |
| 1650 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1651 | case $ac_file in |
| 1652 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1653 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1654 | export ac_cv_exeext |
| 1655 | break;; |
| 1656 | * ) break;; |
| 1657 | esac |
| 1658 | done |
| 1659 | else |
| 1660 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1661 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1662 | { (exit 1); exit 1; }; } |
| 1663 | fi |
| 1664 | |
| 1665 | rm -f conftest$ac_cv_exeext |
| 1666 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1667 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1668 | |
| 1669 | rm -f conftest.$ac_ext |
| 1670 | EXEEXT=$ac_cv_exeext |
| 1671 | ac_exeext=$EXEEXT |
| 1672 | |
| 1673 | ac_ext=c |
| 1674 | ac_cpp='$CPP $CPPFLAGS' |
| 1675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1678 | |
| 1679 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1680 | |
| 1681 | fi |
| 1682 | fi |
| 1683 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1684 | # If the user switches compilers, we can't believe the cache |
| 1685 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1686 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1687 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1688 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1689 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1690 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1691 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1692 | fi |
| 1693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1694 | ac_ext=c |
| 1695 | ac_cpp='$CPP $CPPFLAGS' |
| 1696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1699 | if test -n "$ac_tool_prefix"; then |
| 1700 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1701 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1704 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1706 | else |
| 1707 | if test -n "$CC"; then |
| 1708 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1711 | for as_dir in $PATH |
| 1712 | do |
| 1713 | IFS=$as_save_IFS |
| 1714 | test -z "$as_dir" && as_dir=. |
| 1715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1717 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1719 | break 2 |
| 1720 | fi |
| 1721 | done |
| 1722 | done |
| 1723 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1724 | fi |
| 1725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1726 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1727 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1728 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1729 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1731 | echo "$as_me:$LINENO: result: no" >&5 |
| 1732 | echo "${ECHO_T}no" >&6 |
| 1733 | fi |
| 1734 | |
| 1735 | fi |
| 1736 | if test -z "$ac_cv_prog_CC"; then |
| 1737 | ac_ct_CC=$CC |
| 1738 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1739 | set dummy gcc; ac_word=$2 |
| 1740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1742 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1744 | else |
| 1745 | if test -n "$ac_ct_CC"; then |
| 1746 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1747 | else |
| 1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1749 | for as_dir in $PATH |
| 1750 | do |
| 1751 | IFS=$as_save_IFS |
| 1752 | test -z "$as_dir" && as_dir=. |
| 1753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1755 | ac_cv_prog_ac_ct_CC="gcc" |
| 1756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1757 | break 2 |
| 1758 | fi |
| 1759 | done |
| 1760 | done |
| 1761 | |
| 1762 | fi |
| 1763 | fi |
| 1764 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1765 | if test -n "$ac_ct_CC"; then |
| 1766 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1767 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1768 | else |
| 1769 | echo "$as_me:$LINENO: result: no" >&5 |
| 1770 | echo "${ECHO_T}no" >&6 |
| 1771 | fi |
| 1772 | |
| 1773 | CC=$ac_ct_CC |
| 1774 | else |
| 1775 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1776 | fi |
| 1777 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1778 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1779 | if test -n "$ac_tool_prefix"; then |
| 1780 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1781 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1784 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1786 | else |
| 1787 | if test -n "$CC"; then |
| 1788 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1791 | for as_dir in $PATH |
| 1792 | do |
| 1793 | IFS=$as_save_IFS |
| 1794 | test -z "$as_dir" && as_dir=. |
| 1795 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1797 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1799 | break 2 |
| 1800 | fi |
| 1801 | done |
| 1802 | done |
| 1803 | |
| 1804 | fi |
| 1805 | fi |
| 1806 | CC=$ac_cv_prog_CC |
| 1807 | if test -n "$CC"; then |
| 1808 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1809 | echo "${ECHO_T}$CC" >&6 |
| 1810 | else |
| 1811 | echo "$as_me:$LINENO: result: no" >&5 |
| 1812 | echo "${ECHO_T}no" >&6 |
| 1813 | fi |
| 1814 | |
| 1815 | fi |
| 1816 | if test -z "$ac_cv_prog_CC"; then |
| 1817 | ac_ct_CC=$CC |
| 1818 | # Extract the first word of "cc", so it can be a program name with args. |
| 1819 | set dummy cc; ac_word=$2 |
| 1820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1822 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1824 | else |
| 1825 | if test -n "$ac_ct_CC"; then |
| 1826 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1827 | else |
| 1828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1829 | for as_dir in $PATH |
| 1830 | do |
| 1831 | IFS=$as_save_IFS |
| 1832 | test -z "$as_dir" && as_dir=. |
| 1833 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1835 | ac_cv_prog_ac_ct_CC="cc" |
| 1836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1837 | break 2 |
| 1838 | fi |
| 1839 | done |
| 1840 | done |
| 1841 | |
| 1842 | fi |
| 1843 | fi |
| 1844 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1845 | if test -n "$ac_ct_CC"; then |
| 1846 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1847 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1848 | else |
| 1849 | echo "$as_me:$LINENO: result: no" >&5 |
| 1850 | echo "${ECHO_T}no" >&6 |
| 1851 | fi |
| 1852 | |
| 1853 | CC=$ac_ct_CC |
| 1854 | else |
| 1855 | CC="$ac_cv_prog_CC" |
| 1856 | fi |
| 1857 | |
| 1858 | fi |
| 1859 | if test -z "$CC"; then |
| 1860 | # Extract the first word of "cc", so it can be a program name with args. |
| 1861 | set dummy cc; ac_word=$2 |
| 1862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1864 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1866 | else |
| 1867 | if test -n "$CC"; then |
| 1868 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1869 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1870 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1872 | for as_dir in $PATH |
| 1873 | do |
| 1874 | IFS=$as_save_IFS |
| 1875 | test -z "$as_dir" && as_dir=. |
| 1876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1878 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1879 | ac_prog_rejected=yes |
| 1880 | continue |
| 1881 | fi |
| 1882 | ac_cv_prog_CC="cc" |
| 1883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1884 | break 2 |
| 1885 | fi |
| 1886 | done |
| 1887 | done |
| 1888 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1889 | if test $ac_prog_rejected = yes; then |
| 1890 | # We found a bogon in the path, so make sure we never use it. |
| 1891 | set dummy $ac_cv_prog_CC |
| 1892 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1893 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1894 | # We chose a different compiler from the bogus one. |
| 1895 | # However, it has the same basename, so the bogon will be chosen |
| 1896 | # first if we set CC to just the basename; use the full file name. |
| 1897 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1898 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1899 | shift |
| 1900 | ac_cv_prog_CC="$@" |
| 1901 | fi |
| 1902 | fi |
| 1903 | fi |
| 1904 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1905 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1906 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1907 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1908 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1910 | echo "$as_me:$LINENO: result: no" >&5 |
| 1911 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1912 | fi |
| 1913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1914 | fi |
| 1915 | if test -z "$CC"; then |
| 1916 | if test -n "$ac_tool_prefix"; then |
| 1917 | for ac_prog in cl |
| 1918 | do |
| 1919 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1920 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1923 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1925 | else |
| 1926 | if test -n "$CC"; then |
| 1927 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1930 | for as_dir in $PATH |
| 1931 | do |
| 1932 | IFS=$as_save_IFS |
| 1933 | test -z "$as_dir" && as_dir=. |
| 1934 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1936 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1938 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1940 | done |
| 1941 | done |
| 1942 | |
| 1943 | fi |
| 1944 | fi |
| 1945 | CC=$ac_cv_prog_CC |
| 1946 | if test -n "$CC"; then |
| 1947 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1948 | echo "${ECHO_T}$CC" >&6 |
| 1949 | else |
| 1950 | echo "$as_me:$LINENO: result: no" >&5 |
| 1951 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1952 | fi |
| 1953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1954 | test -n "$CC" && break |
| 1955 | done |
| 1956 | fi |
| 1957 | if test -z "$CC"; then |
| 1958 | ac_ct_CC=$CC |
| 1959 | for ac_prog in cl |
| 1960 | do |
| 1961 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1962 | set dummy $ac_prog; ac_word=$2 |
| 1963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1965 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1967 | else |
| 1968 | if test -n "$ac_ct_CC"; then |
| 1969 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1970 | else |
| 1971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1972 | for as_dir in $PATH |
| 1973 | do |
| 1974 | IFS=$as_save_IFS |
| 1975 | test -z "$as_dir" && as_dir=. |
| 1976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1978 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1980 | break 2 |
| 1981 | fi |
| 1982 | done |
| 1983 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1985 | fi |
| 1986 | fi |
| 1987 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1988 | if test -n "$ac_ct_CC"; then |
| 1989 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1990 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1991 | else |
| 1992 | echo "$as_me:$LINENO: result: no" >&5 |
| 1993 | echo "${ECHO_T}no" >&6 |
| 1994 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1996 | test -n "$ac_ct_CC" && break |
| 1997 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1999 | CC=$ac_ct_CC |
| 2000 | fi |
| 2001 | |
| 2002 | fi |
| 2003 | |
| 2004 | |
| 2005 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2006 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2007 | { (exit 1); exit 1; }; } |
| 2008 | |
| 2009 | # Provide some information about the compiler. |
| 2010 | echo "$as_me:$LINENO:" \ |
| 2011 | "checking for C compiler version" >&5 |
| 2012 | ac_compiler=`set X $ac_compile; echo $2` |
| 2013 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2014 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2015 | ac_status=$? |
| 2016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2017 | (exit $ac_status); } |
| 2018 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2019 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2020 | ac_status=$? |
| 2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2022 | (exit $ac_status); } |
| 2023 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2024 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2025 | ac_status=$? |
| 2026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2027 | (exit $ac_status); } |
| 2028 | |
| 2029 | cat >conftest.$ac_ext <<_ACEOF |
| 2030 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2031 | #include "confdefs.h" |
| 2032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2033 | #ifdef F77_DUMMY_MAIN |
| 2034 | # ifdef __cplusplus |
| 2035 | extern "C" |
| 2036 | # endif |
| 2037 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2038 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2039 | int |
| 2040 | main () |
| 2041 | { |
| 2042 | |
| 2043 | ; |
| 2044 | return 0; |
| 2045 | } |
| 2046 | _ACEOF |
| 2047 | ac_clean_files_save=$ac_clean_files |
| 2048 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2049 | # Try to create an executable without -o first, disregard a.out. |
| 2050 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2051 | # of exeext. |
| 2052 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2053 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2054 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2055 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2056 | (eval $ac_link_default) 2>&5 |
| 2057 | ac_status=$? |
| 2058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2059 | (exit $ac_status); }; then |
| 2060 | # Find the output, starting from the most likely. This scheme is |
| 2061 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2062 | # resort. |
| 2063 | |
| 2064 | # Be careful to initialize this variable, since it used to be cached. |
| 2065 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2066 | ac_cv_exeext= |
| 2067 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2068 | ls a.out conftest 2>/dev/null; |
| 2069 | ls a.* conftest.* 2>/dev/null`; do |
| 2070 | case $ac_file in |
| 2071 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2072 | a.out ) # We found the default executable, but exeext='' is most |
| 2073 | # certainly right. |
| 2074 | break;; |
| 2075 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2076 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2077 | export ac_cv_exeext |
| 2078 | break;; |
| 2079 | * ) break;; |
| 2080 | esac |
| 2081 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2082 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2083 | echo "$as_me: failed program was:" >&5 |
| 2084 | cat conftest.$ac_ext >&5 |
| 2085 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2086 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2087 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2088 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2090 | ac_exeext=$ac_cv_exeext |
| 2091 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2092 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2094 | # Check the compiler produces executables we can run. If not, either |
| 2095 | # the compiler is broken, or we cross compile. |
| 2096 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2097 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2098 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2099 | # If not cross compiling, check that we can run a simple program. |
| 2100 | if test "$cross_compiling" != yes; then |
| 2101 | if { ac_try='./$ac_file' |
| 2102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2103 | (eval $ac_try) 2>&5 |
| 2104 | ac_status=$? |
| 2105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2106 | (exit $ac_status); }; }; then |
| 2107 | cross_compiling=no |
| 2108 | else |
| 2109 | if test "$cross_compiling" = maybe; then |
| 2110 | cross_compiling=yes |
| 2111 | else |
| 2112 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2113 | If you meant to cross compile, use \`--host'." >&5 |
| 2114 | echo "$as_me: error: cannot run C compiled programs. |
| 2115 | If you meant to cross compile, use \`--host'." >&2;} |
| 2116 | { (exit 1); exit 1; }; } |
| 2117 | fi |
| 2118 | fi |
| 2119 | fi |
| 2120 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2121 | echo "${ECHO_T}yes" >&6 |
| 2122 | |
| 2123 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2124 | ac_clean_files=$ac_clean_files_save |
| 2125 | # Check the compiler produces executables we can run. If not, either |
| 2126 | # the compiler is broken, or we cross compile. |
| 2127 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2128 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2129 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2130 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2131 | |
| 2132 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2133 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2135 | (eval $ac_link) 2>&5 |
| 2136 | ac_status=$? |
| 2137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2138 | (exit $ac_status); }; then |
| 2139 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2140 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2141 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2142 | # `rm'. |
| 2143 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2144 | case $ac_file in |
| 2145 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2146 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2147 | export ac_cv_exeext |
| 2148 | break;; |
| 2149 | * ) break;; |
| 2150 | esac |
| 2151 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2153 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2154 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2155 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2156 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2158 | rm -f conftest$ac_cv_exeext |
| 2159 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2160 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2161 | |
| 2162 | rm -f conftest.$ac_ext |
| 2163 | EXEEXT=$ac_cv_exeext |
| 2164 | ac_exeext=$EXEEXT |
| 2165 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2166 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2167 | if test "${ac_cv_objext+set}" = set; then |
| 2168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2170 | cat >conftest.$ac_ext <<_ACEOF |
| 2171 | #line $LINENO "configure" |
| 2172 | #include "confdefs.h" |
| 2173 | |
| 2174 | #ifdef F77_DUMMY_MAIN |
| 2175 | # ifdef __cplusplus |
| 2176 | extern "C" |
| 2177 | # endif |
| 2178 | int F77_DUMMY_MAIN() { return 1; } |
| 2179 | #endif |
| 2180 | int |
| 2181 | main () |
| 2182 | { |
| 2183 | |
| 2184 | ; |
| 2185 | return 0; |
| 2186 | } |
| 2187 | _ACEOF |
| 2188 | rm -f conftest.o conftest.obj |
| 2189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2190 | (eval $ac_compile) 2>&5 |
| 2191 | ac_status=$? |
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2193 | (exit $ac_status); }; then |
| 2194 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2195 | case $ac_file in |
| 2196 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2197 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2198 | break;; |
| 2199 | esac |
| 2200 | done |
| 2201 | else |
| 2202 | echo "$as_me: failed program was:" >&5 |
| 2203 | cat conftest.$ac_ext >&5 |
| 2204 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2205 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2206 | { (exit 1); exit 1; }; } |
| 2207 | fi |
| 2208 | |
| 2209 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2210 | fi |
| 2211 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2212 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2213 | OBJEXT=$ac_cv_objext |
| 2214 | ac_objext=$OBJEXT |
| 2215 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2216 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2217 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2219 | else |
| 2220 | cat >conftest.$ac_ext <<_ACEOF |
| 2221 | #line $LINENO "configure" |
| 2222 | #include "confdefs.h" |
| 2223 | |
| 2224 | #ifdef F77_DUMMY_MAIN |
| 2225 | # ifdef __cplusplus |
| 2226 | extern "C" |
| 2227 | # endif |
| 2228 | int F77_DUMMY_MAIN() { return 1; } |
| 2229 | #endif |
| 2230 | int |
| 2231 | main () |
| 2232 | { |
| 2233 | #ifndef __GNUC__ |
| 2234 | choke me |
| 2235 | #endif |
| 2236 | |
| 2237 | ; |
| 2238 | return 0; |
| 2239 | } |
| 2240 | _ACEOF |
| 2241 | rm -f conftest.$ac_objext |
| 2242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2243 | (eval $ac_compile) 2>&5 |
| 2244 | ac_status=$? |
| 2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2246 | (exit $ac_status); } && |
| 2247 | { ac_try='test -s conftest.$ac_objext' |
| 2248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2249 | (eval $ac_try) 2>&5 |
| 2250 | ac_status=$? |
| 2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2252 | (exit $ac_status); }; }; then |
| 2253 | ac_compiler_gnu=yes |
| 2254 | else |
| 2255 | echo "$as_me: failed program was:" >&5 |
| 2256 | cat conftest.$ac_ext >&5 |
| 2257 | ac_compiler_gnu=no |
| 2258 | fi |
| 2259 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2260 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2261 | |
| 2262 | fi |
| 2263 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2264 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2265 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2266 | ac_test_CFLAGS=${CFLAGS+set} |
| 2267 | ac_save_CFLAGS=$CFLAGS |
| 2268 | CFLAGS="-g" |
| 2269 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2270 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2271 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2273 | else |
| 2274 | cat >conftest.$ac_ext <<_ACEOF |
| 2275 | #line $LINENO "configure" |
| 2276 | #include "confdefs.h" |
| 2277 | |
| 2278 | #ifdef F77_DUMMY_MAIN |
| 2279 | # ifdef __cplusplus |
| 2280 | extern "C" |
| 2281 | # endif |
| 2282 | int F77_DUMMY_MAIN() { return 1; } |
| 2283 | #endif |
| 2284 | int |
| 2285 | main () |
| 2286 | { |
| 2287 | |
| 2288 | ; |
| 2289 | return 0; |
| 2290 | } |
| 2291 | _ACEOF |
| 2292 | rm -f conftest.$ac_objext |
| 2293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2294 | (eval $ac_compile) 2>&5 |
| 2295 | ac_status=$? |
| 2296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2297 | (exit $ac_status); } && |
| 2298 | { ac_try='test -s conftest.$ac_objext' |
| 2299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2300 | (eval $ac_try) 2>&5 |
| 2301 | ac_status=$? |
| 2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2303 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2304 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2306 | echo "$as_me: failed program was:" >&5 |
| 2307 | cat conftest.$ac_ext >&5 |
| 2308 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2310 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2311 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2312 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2313 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2314 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2315 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2316 | elif test $ac_cv_prog_cc_g = yes; then |
| 2317 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2318 | CFLAGS="-g -O2" |
| 2319 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2320 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2321 | fi |
| 2322 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2323 | if test "$GCC" = yes; then |
| 2324 | CFLAGS="-O2" |
| 2325 | else |
| 2326 | CFLAGS= |
| 2327 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2329 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2330 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2331 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2332 | # the declaration of exit, since it's the most demanding environment. |
| 2333 | cat >conftest.$ac_ext <<_ACEOF |
| 2334 | #ifndef __cplusplus |
| 2335 | choke me |
| 2336 | #endif |
| 2337 | _ACEOF |
| 2338 | rm -f conftest.$ac_objext |
| 2339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2340 | (eval $ac_compile) 2>&5 |
| 2341 | ac_status=$? |
| 2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2343 | (exit $ac_status); } && |
| 2344 | { ac_try='test -s conftest.$ac_objext' |
| 2345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2346 | (eval $ac_try) 2>&5 |
| 2347 | ac_status=$? |
| 2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2349 | (exit $ac_status); }; }; then |
| 2350 | for ac_declaration in \ |
| 2351 | ''\ |
| 2352 | '#include <stdlib.h>' \ |
| 2353 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2354 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2355 | 'extern "C" void exit (int) throw ();' \ |
| 2356 | 'extern "C" void exit (int);' \ |
| 2357 | 'void exit (int);' |
| 2358 | do |
| 2359 | cat >conftest.$ac_ext <<_ACEOF |
| 2360 | #line $LINENO "configure" |
| 2361 | #include "confdefs.h" |
| 2362 | #include <stdlib.h> |
| 2363 | $ac_declaration |
| 2364 | #ifdef F77_DUMMY_MAIN |
| 2365 | # ifdef __cplusplus |
| 2366 | extern "C" |
| 2367 | # endif |
| 2368 | int F77_DUMMY_MAIN() { return 1; } |
| 2369 | #endif |
| 2370 | int |
| 2371 | main () |
| 2372 | { |
| 2373 | exit (42); |
| 2374 | ; |
| 2375 | return 0; |
| 2376 | } |
| 2377 | _ACEOF |
| 2378 | rm -f conftest.$ac_objext |
| 2379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2380 | (eval $ac_compile) 2>&5 |
| 2381 | ac_status=$? |
| 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2383 | (exit $ac_status); } && |
| 2384 | { ac_try='test -s conftest.$ac_objext' |
| 2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2386 | (eval $ac_try) 2>&5 |
| 2387 | ac_status=$? |
| 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2389 | (exit $ac_status); }; }; then |
| 2390 | : |
| 2391 | else |
| 2392 | echo "$as_me: failed program was:" >&5 |
| 2393 | cat conftest.$ac_ext >&5 |
| 2394 | continue |
| 2395 | fi |
| 2396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2397 | cat >conftest.$ac_ext <<_ACEOF |
| 2398 | #line $LINENO "configure" |
| 2399 | #include "confdefs.h" |
| 2400 | $ac_declaration |
| 2401 | #ifdef F77_DUMMY_MAIN |
| 2402 | # ifdef __cplusplus |
| 2403 | extern "C" |
| 2404 | # endif |
| 2405 | int F77_DUMMY_MAIN() { return 1; } |
| 2406 | #endif |
| 2407 | int |
| 2408 | main () |
| 2409 | { |
| 2410 | exit (42); |
| 2411 | ; |
| 2412 | return 0; |
| 2413 | } |
| 2414 | _ACEOF |
| 2415 | rm -f conftest.$ac_objext |
| 2416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2417 | (eval $ac_compile) 2>&5 |
| 2418 | ac_status=$? |
| 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2420 | (exit $ac_status); } && |
| 2421 | { ac_try='test -s conftest.$ac_objext' |
| 2422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2423 | (eval $ac_try) 2>&5 |
| 2424 | ac_status=$? |
| 2425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2426 | (exit $ac_status); }; }; then |
| 2427 | break |
| 2428 | else |
| 2429 | echo "$as_me: failed program was:" >&5 |
| 2430 | cat conftest.$ac_ext >&5 |
| 2431 | fi |
| 2432 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2433 | done |
| 2434 | rm -f conftest* |
| 2435 | if test -n "$ac_declaration"; then |
| 2436 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2437 | echo $ac_declaration >>confdefs.h |
| 2438 | echo '#endif' >>confdefs.h |
| 2439 | fi |
| 2440 | |
| 2441 | else |
| 2442 | echo "$as_me: failed program was:" >&5 |
| 2443 | cat conftest.$ac_ext >&5 |
| 2444 | fi |
| 2445 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2446 | ac_ext=c |
| 2447 | ac_cpp='$CPP $CPPFLAGS' |
| 2448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2451 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2452 | |
| 2453 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2454 | |
| 2455 | ac_ext=c |
| 2456 | ac_cpp='$CPP $CPPFLAGS' |
| 2457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2460 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2461 | 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] | 2462 | # On Suns, sometimes $CPP names a directory. |
| 2463 | if test -n "$CPP" && test -d "$CPP"; then |
| 2464 | CPP= |
| 2465 | fi |
| 2466 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2470 | # Double quotes because CPP needs to be expanded |
| 2471 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2472 | do |
| 2473 | ac_preproc_ok=false |
| 2474 | for ac_c_preproc_warn_flag in '' yes |
| 2475 | do |
| 2476 | # Use a header file that comes with gcc, so configuring glibc |
| 2477 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2478 | # 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] | 2479 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2480 | cat >conftest.$ac_ext <<_ACEOF |
| 2481 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2482 | #include "confdefs.h" |
| 2483 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | Syntax error |
| 2485 | _ACEOF |
| 2486 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2487 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2488 | ac_status=$? |
| 2489 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2490 | rm -f conftest.er1 |
| 2491 | cat conftest.err >&5 |
| 2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2493 | (exit $ac_status); } >/dev/null; then |
| 2494 | if test -s conftest.err; then |
| 2495 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2496 | else |
| 2497 | ac_cpp_err= |
| 2498 | fi |
| 2499 | else |
| 2500 | ac_cpp_err=yes |
| 2501 | fi |
| 2502 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2503 | : |
| 2504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2505 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2506 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2507 | # Broken: fails on valid input. |
| 2508 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2510 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2512 | # OK, works on sane cases. Now check whether non-existent headers |
| 2513 | # can be detected and how. |
| 2514 | cat >conftest.$ac_ext <<_ACEOF |
| 2515 | #line $LINENO "configure" |
| 2516 | #include "confdefs.h" |
| 2517 | #include <ac_nonexistent.h> |
| 2518 | _ACEOF |
| 2519 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2520 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2521 | ac_status=$? |
| 2522 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2523 | rm -f conftest.er1 |
| 2524 | cat conftest.err >&5 |
| 2525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2526 | (exit $ac_status); } >/dev/null; then |
| 2527 | if test -s conftest.err; then |
| 2528 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2529 | else |
| 2530 | ac_cpp_err= |
| 2531 | fi |
| 2532 | else |
| 2533 | ac_cpp_err=yes |
| 2534 | fi |
| 2535 | if test -z "$ac_cpp_err"; then |
| 2536 | # Broken: success on invalid input. |
| 2537 | continue |
| 2538 | else |
| 2539 | echo "$as_me: failed program was:" >&5 |
| 2540 | cat conftest.$ac_ext >&5 |
| 2541 | # Passes both tests. |
| 2542 | ac_preproc_ok=: |
| 2543 | break |
| 2544 | fi |
| 2545 | rm -f conftest.err conftest.$ac_ext |
| 2546 | |
| 2547 | done |
| 2548 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2549 | rm -f conftest.err conftest.$ac_ext |
| 2550 | if $ac_preproc_ok; then |
| 2551 | break |
| 2552 | fi |
| 2553 | |
| 2554 | done |
| 2555 | ac_cv_prog_CPP=$CPP |
| 2556 | |
| 2557 | fi |
| 2558 | CPP=$ac_cv_prog_CPP |
| 2559 | else |
| 2560 | ac_cv_prog_CPP=$CPP |
| 2561 | fi |
| 2562 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2563 | echo "${ECHO_T}$CPP" >&6 |
| 2564 | ac_preproc_ok=false |
| 2565 | for ac_c_preproc_warn_flag in '' yes |
| 2566 | do |
| 2567 | # Use a header file that comes with gcc, so configuring glibc |
| 2568 | # with a fresh cross-compiler works. |
| 2569 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2570 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2571 | cat >conftest.$ac_ext <<_ACEOF |
| 2572 | #line $LINENO "configure" |
| 2573 | #include "confdefs.h" |
| 2574 | #include <assert.h> |
| 2575 | Syntax error |
| 2576 | _ACEOF |
| 2577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2579 | ac_status=$? |
| 2580 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2581 | rm -f conftest.er1 |
| 2582 | cat conftest.err >&5 |
| 2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2584 | (exit $ac_status); } >/dev/null; then |
| 2585 | if test -s conftest.err; then |
| 2586 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2587 | else |
| 2588 | ac_cpp_err= |
| 2589 | fi |
| 2590 | else |
| 2591 | ac_cpp_err=yes |
| 2592 | fi |
| 2593 | if test -z "$ac_cpp_err"; then |
| 2594 | : |
| 2595 | else |
| 2596 | echo "$as_me: failed program was:" >&5 |
| 2597 | cat conftest.$ac_ext >&5 |
| 2598 | # Broken: fails on valid input. |
| 2599 | continue |
| 2600 | fi |
| 2601 | rm -f conftest.err conftest.$ac_ext |
| 2602 | |
| 2603 | # OK, works on sane cases. Now check whether non-existent headers |
| 2604 | # can be detected and how. |
| 2605 | cat >conftest.$ac_ext <<_ACEOF |
| 2606 | #line $LINENO "configure" |
| 2607 | #include "confdefs.h" |
| 2608 | #include <ac_nonexistent.h> |
| 2609 | _ACEOF |
| 2610 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2611 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2612 | ac_status=$? |
| 2613 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2614 | rm -f conftest.er1 |
| 2615 | cat conftest.err >&5 |
| 2616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2617 | (exit $ac_status); } >/dev/null; then |
| 2618 | if test -s conftest.err; then |
| 2619 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2620 | else |
| 2621 | ac_cpp_err= |
| 2622 | fi |
| 2623 | else |
| 2624 | ac_cpp_err=yes |
| 2625 | fi |
| 2626 | if test -z "$ac_cpp_err"; then |
| 2627 | # Broken: success on invalid input. |
| 2628 | continue |
| 2629 | else |
| 2630 | echo "$as_me: failed program was:" >&5 |
| 2631 | cat conftest.$ac_ext >&5 |
| 2632 | # Passes both tests. |
| 2633 | ac_preproc_ok=: |
| 2634 | break |
| 2635 | fi |
| 2636 | rm -f conftest.err conftest.$ac_ext |
| 2637 | |
| 2638 | done |
| 2639 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2640 | rm -f conftest.err conftest.$ac_ext |
| 2641 | if $ac_preproc_ok; then |
| 2642 | : |
| 2643 | else |
| 2644 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2645 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2646 | { (exit 1); exit 1; }; } |
| 2647 | fi |
| 2648 | |
| 2649 | ac_ext=c |
| 2650 | ac_cpp='$CPP $CPPFLAGS' |
| 2651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2654 | |
| 2655 | |
| 2656 | |
| 2657 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2658 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2659 | cat >conftest.$ac_ext <<_ACEOF |
| 2660 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2661 | #include "confdefs.h" |
| 2662 | #ifdef _AIX |
| 2663 | yes |
| 2664 | #endif |
| 2665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2666 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2667 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2668 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2670 | echo "${ECHO_T}yes" >&6 |
| 2671 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2672 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2673 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2674 | |
| 2675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | echo "$as_me:$LINENO: result: no" >&5 |
| 2677 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2678 | fi |
| 2679 | rm -f conftest* |
| 2680 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2682 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2683 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2684 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2687 | cat >conftest.$ac_ext <<_ACEOF |
| 2688 | #line $LINENO "configure" |
| 2689 | #include "confdefs.h" |
| 2690 | #include <stdlib.h> |
| 2691 | #include <stdarg.h> |
| 2692 | #include <string.h> |
| 2693 | #include <float.h> |
| 2694 | |
| 2695 | _ACEOF |
| 2696 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2697 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2698 | ac_status=$? |
| 2699 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2700 | rm -f conftest.er1 |
| 2701 | cat conftest.err >&5 |
| 2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2703 | (exit $ac_status); } >/dev/null; then |
| 2704 | if test -s conftest.err; then |
| 2705 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2706 | else |
| 2707 | ac_cpp_err= |
| 2708 | fi |
| 2709 | else |
| 2710 | ac_cpp_err=yes |
| 2711 | fi |
| 2712 | if test -z "$ac_cpp_err"; then |
| 2713 | ac_cv_header_stdc=yes |
| 2714 | else |
| 2715 | echo "$as_me: failed program was:" >&5 |
| 2716 | cat conftest.$ac_ext >&5 |
| 2717 | ac_cv_header_stdc=no |
| 2718 | fi |
| 2719 | rm -f conftest.err conftest.$ac_ext |
| 2720 | |
| 2721 | if test $ac_cv_header_stdc = yes; then |
| 2722 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2723 | cat >conftest.$ac_ext <<_ACEOF |
| 2724 | #line $LINENO "configure" |
| 2725 | #include "confdefs.h" |
| 2726 | #include <string.h> |
| 2727 | |
| 2728 | _ACEOF |
| 2729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2730 | egrep "memchr" >/dev/null 2>&1; then |
| 2731 | : |
| 2732 | else |
| 2733 | ac_cv_header_stdc=no |
| 2734 | fi |
| 2735 | rm -f conftest* |
| 2736 | |
| 2737 | fi |
| 2738 | |
| 2739 | if test $ac_cv_header_stdc = yes; then |
| 2740 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2741 | cat >conftest.$ac_ext <<_ACEOF |
| 2742 | #line $LINENO "configure" |
| 2743 | #include "confdefs.h" |
| 2744 | #include <stdlib.h> |
| 2745 | |
| 2746 | _ACEOF |
| 2747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2748 | egrep "free" >/dev/null 2>&1; then |
| 2749 | : |
| 2750 | else |
| 2751 | ac_cv_header_stdc=no |
| 2752 | fi |
| 2753 | rm -f conftest* |
| 2754 | |
| 2755 | fi |
| 2756 | |
| 2757 | if test $ac_cv_header_stdc = yes; then |
| 2758 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2759 | if test "$cross_compiling" = yes; then |
| 2760 | : |
| 2761 | else |
| 2762 | cat >conftest.$ac_ext <<_ACEOF |
| 2763 | #line $LINENO "configure" |
| 2764 | #include "confdefs.h" |
| 2765 | #include <ctype.h> |
| 2766 | #if ((' ' & 0x0FF) == 0x020) |
| 2767 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2768 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2769 | #else |
| 2770 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2771 | || ('j' <= (c) && (c) <= 'r') \ |
| 2772 | || ('s' <= (c) && (c) <= 'z')) |
| 2773 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2774 | #endif |
| 2775 | |
| 2776 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2777 | int |
| 2778 | main () |
| 2779 | { |
| 2780 | int i; |
| 2781 | for (i = 0; i < 256; i++) |
| 2782 | if (XOR (islower (i), ISLOWER (i)) |
| 2783 | || toupper (i) != TOUPPER (i)) |
| 2784 | exit(2); |
| 2785 | exit (0); |
| 2786 | } |
| 2787 | _ACEOF |
| 2788 | rm -f conftest$ac_exeext |
| 2789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2790 | (eval $ac_link) 2>&5 |
| 2791 | ac_status=$? |
| 2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2795 | (eval $ac_try) 2>&5 |
| 2796 | ac_status=$? |
| 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2798 | (exit $ac_status); }; }; then |
| 2799 | : |
| 2800 | else |
| 2801 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2802 | echo "$as_me: failed program was:" >&5 |
| 2803 | cat conftest.$ac_ext >&5 |
| 2804 | ( exit $ac_status ) |
| 2805 | ac_cv_header_stdc=no |
| 2806 | fi |
| 2807 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2808 | fi |
| 2809 | fi |
| 2810 | fi |
| 2811 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2812 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2813 | if test $ac_cv_header_stdc = yes; then |
| 2814 | |
| 2815 | cat >>confdefs.h <<\_ACEOF |
| 2816 | #define STDC_HEADERS 1 |
| 2817 | _ACEOF |
| 2818 | |
| 2819 | fi |
| 2820 | |
| 2821 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | |
| 2828 | |
| 2829 | |
| 2830 | |
| 2831 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2832 | inttypes.h stdint.h unistd.h |
| 2833 | do |
| 2834 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2835 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2837 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2839 | else |
| 2840 | cat >conftest.$ac_ext <<_ACEOF |
| 2841 | #line $LINENO "configure" |
| 2842 | #include "confdefs.h" |
| 2843 | $ac_includes_default |
| 2844 | |
| 2845 | #include <$ac_header> |
| 2846 | _ACEOF |
| 2847 | rm -f conftest.$ac_objext |
| 2848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2849 | (eval $ac_compile) 2>&5 |
| 2850 | ac_status=$? |
| 2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2852 | (exit $ac_status); } && |
| 2853 | { ac_try='test -s conftest.$ac_objext' |
| 2854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2855 | (eval $ac_try) 2>&5 |
| 2856 | ac_status=$? |
| 2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2858 | (exit $ac_status); }; }; then |
| 2859 | eval "$as_ac_Header=yes" |
| 2860 | else |
| 2861 | echo "$as_me: failed program was:" >&5 |
| 2862 | cat conftest.$ac_ext >&5 |
| 2863 | eval "$as_ac_Header=no" |
| 2864 | fi |
| 2865 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2866 | fi |
| 2867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2868 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2869 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2870 | cat >>confdefs.h <<_ACEOF |
| 2871 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2872 | _ACEOF |
| 2873 | |
| 2874 | fi |
| 2875 | |
| 2876 | done |
| 2877 | |
| 2878 | |
| 2879 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2880 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2881 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2882 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2884 | fi |
| 2885 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2886 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2887 | else |
| 2888 | # Is the header compilable? |
| 2889 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2890 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2891 | cat >conftest.$ac_ext <<_ACEOF |
| 2892 | #line $LINENO "configure" |
| 2893 | #include "confdefs.h" |
| 2894 | $ac_includes_default |
| 2895 | #include <minix/config.h> |
| 2896 | _ACEOF |
| 2897 | rm -f conftest.$ac_objext |
| 2898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2899 | (eval $ac_compile) 2>&5 |
| 2900 | ac_status=$? |
| 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2902 | (exit $ac_status); } && |
| 2903 | { ac_try='test -s conftest.$ac_objext' |
| 2904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2905 | (eval $ac_try) 2>&5 |
| 2906 | ac_status=$? |
| 2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2908 | (exit $ac_status); }; }; then |
| 2909 | ac_header_compiler=yes |
| 2910 | else |
| 2911 | echo "$as_me: failed program was:" >&5 |
| 2912 | cat conftest.$ac_ext >&5 |
| 2913 | ac_header_compiler=no |
| 2914 | fi |
| 2915 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2916 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2917 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2918 | |
| 2919 | # Is the header present? |
| 2920 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2921 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2922 | cat >conftest.$ac_ext <<_ACEOF |
| 2923 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2924 | #include "confdefs.h" |
| 2925 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2926 | _ACEOF |
| 2927 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2929 | ac_status=$? |
| 2930 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2931 | rm -f conftest.er1 |
| 2932 | cat conftest.err >&5 |
| 2933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2934 | (exit $ac_status); } >/dev/null; then |
| 2935 | if test -s conftest.err; then |
| 2936 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2937 | else |
| 2938 | ac_cpp_err= |
| 2939 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2941 | ac_cpp_err=yes |
| 2942 | fi |
| 2943 | if test -z "$ac_cpp_err"; then |
| 2944 | ac_header_preproc=yes |
| 2945 | else |
| 2946 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2947 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2948 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2949 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 | rm -f conftest.err conftest.$ac_ext |
| 2951 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2952 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2953 | |
| 2954 | # So? What about this header? |
| 2955 | case $ac_header_compiler:$ac_header_preproc in |
| 2956 | yes:no ) |
| 2957 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2958 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2959 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2960 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2961 | no:yes ) |
| 2962 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2963 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2964 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2965 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2966 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2967 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2968 | esac |
| 2969 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2970 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2971 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2973 | else |
| 2974 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2975 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2976 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2977 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2978 | |
| 2979 | fi |
| 2980 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2981 | MINIX=yes |
| 2982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2984 | fi |
| 2985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2986 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2987 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2988 | |
| 2989 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2990 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2991 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2993 | |
| 2994 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2995 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2996 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2998 | |
| 2999 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3000 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3002 | |
| 3003 | fi |
| 3004 | |
| 3005 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3007 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3008 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3009 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3010 | # Check whether --with-suffix or --without-suffix was given. |
| 3011 | if test "${with_suffix+set}" = set; then |
| 3012 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3013 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3014 | case $withval in |
| 3015 | no) EXEEXT=;; |
| 3016 | yes) EXEEXT=.exe;; |
| 3017 | *) EXEEXT=$withval;; |
| 3018 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3019 | fi; |
| 3020 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3021 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3022 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3023 | # Test whether we're running on a non-case-sensitive system, in which |
| 3024 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3026 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3027 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3028 | if test ! -d CaseSensitiveTestDir; then |
| 3029 | mkdir CaseSensitiveTestDir |
| 3030 | fi |
| 3031 | |
| 3032 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3033 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3035 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3036 | BUILDEXEEXT=.exe |
| 3037 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3038 | echo "$as_me:$LINENO: result: no" >&5 |
| 3039 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3040 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3041 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3042 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3043 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3044 | case $MACHDEP in |
| 3045 | bsdos*) |
| 3046 | case $CC in |
| 3047 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3048 | esac;; |
| 3049 | esac |
| 3050 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3051 | case $ac_sys_system in |
| 3052 | hp*|HP*) |
| 3053 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3054 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3055 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3056 | Monterey*) |
| 3057 | case $CC in |
| 3058 | cc) CC="$CC -Wl,-Bexport";; |
| 3059 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3060 | SunOS*) |
| 3061 | # 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] | 3062 | |
| 3063 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3064 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3065 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3066 | |
| 3067 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3068 | esac |
| 3069 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3070 | |
| 3071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3072 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3073 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3074 | if test -z "$LIBRARY" |
| 3075 | then |
| 3076 | LIBRARY='libpython$(VERSION).a' |
| 3077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3078 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3079 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3080 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3081 | # 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] | 3082 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3083 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3084 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3085 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3086 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3087 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3088 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3089 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3090 | # RUNSHARED is used to run shared python without installed libraries |
| 3091 | # |
| 3092 | # INSTSONAME is the name of the shared library that will be use to install |
| 3093 | # on the system - some systems like version suffix, others don't |
| 3094 | |
| 3095 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3096 | |
| 3097 | |
| 3098 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3099 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3100 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3101 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3102 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3103 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3104 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3105 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3106 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3107 | # 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] | 3108 | # If CXX is set, and if it is needed to link a main function that was |
| 3109 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3110 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3111 | # 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] | 3112 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3114 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3115 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3116 | if test -z "$LINKCC" |
| 3117 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3118 | if test -z "$CXX"; then |
| 3119 | LINKCC="\$(PURIFY) \$(CC)" |
| 3120 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3121 | 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] | 3122 | $CXX -c conftest.$ac_ext 2>&5 |
| 3123 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3124 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3125 | then |
| 3126 | LINKCC="\$(PURIFY) \$(CC)" |
| 3127 | else |
| 3128 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3129 | fi |
| 3130 | rm -fr conftest* |
| 3131 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3132 | case $ac_sys_system in |
| 3133 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3134 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3135 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3136 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3137 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3138 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3139 | esac |
| 3140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3141 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3142 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3144 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3145 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3146 | # Check whether --enable-shared or --disable-shared was given. |
| 3147 | if test "${enable_shared+set}" = set; then |
| 3148 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3150 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3151 | |
| 3152 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3153 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3154 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3155 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3156 | enable_shared="yes";; |
| 3157 | *) |
| 3158 | enable_shared="no";; |
| 3159 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3161 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3162 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3163 | |
| 3164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3165 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3166 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3167 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3168 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3169 | # library that we build, but we do not want to link against it (we |
| 3170 | # will find it with a -framework option). For this reason there is an |
| 3171 | # extra variable BLDLIBRARY against which Python and the extension |
| 3172 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3173 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3174 | if test "$enable_framework" |
| 3175 | then |
| 3176 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3177 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3178 | BLDLIBRARY='' |
| 3179 | else |
| 3180 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3181 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3182 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3183 | # Other platforms follow |
| 3184 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3185 | |
| 3186 | cat >>confdefs.h <<\_ACEOF |
| 3187 | #define Py_ENABLE_SHARED 1 |
| 3188 | _ACEOF |
| 3189 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3190 | case $ac_sys_system in |
| 3191 | BeOS*) |
| 3192 | LDLIBRARY='libpython$(VERSION).so' |
| 3193 | ;; |
| 3194 | CYGWIN*) |
| 3195 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3196 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3197 | ;; |
| 3198 | SunOS*) |
| 3199 | LDLIBRARY='libpython$(VERSION).so' |
| 3200 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3201 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3202 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3203 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3204 | LDLIBRARY='libpython$(VERSION).so' |
| 3205 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3206 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3207 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3208 | ;; |
| 3209 | hp*|HP*) |
| 3210 | LDLIBRARY='libpython$(VERSION).sl' |
| 3211 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3212 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3213 | ;; |
| 3214 | OSF*) |
| 3215 | LDLIBRARY='libpython$(VERSION).so' |
| 3216 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3217 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3218 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3219 | atheos*) |
| 3220 | LDLIBRARY='libpython$(VERSION).so' |
| 3221 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3222 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3223 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3224 | esac |
| 3225 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3226 | case $MACHDEP in |
| 3227 | dguxR4) |
| 3228 | LDLIBRARY='libpython$(VERSION).so' |
| 3229 | OPT="$OPT -pic" |
| 3230 | ;; |
| 3231 | esac |
| 3232 | fi |
| 3233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3234 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3235 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3237 | if test -n "$ac_tool_prefix"; then |
| 3238 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3239 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3240 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3242 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3244 | else |
| 3245 | if test -n "$RANLIB"; then |
| 3246 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3247 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3249 | for as_dir in $PATH |
| 3250 | do |
| 3251 | IFS=$as_save_IFS |
| 3252 | test -z "$as_dir" && as_dir=. |
| 3253 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3254 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3255 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3257 | break 2 |
| 3258 | fi |
| 3259 | done |
| 3260 | done |
| 3261 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3262 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3263 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3264 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3265 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3266 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3267 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3269 | echo "$as_me:$LINENO: result: no" >&5 |
| 3270 | echo "${ECHO_T}no" >&6 |
| 3271 | fi |
| 3272 | |
| 3273 | fi |
| 3274 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3275 | ac_ct_RANLIB=$RANLIB |
| 3276 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3277 | set dummy ranlib; ac_word=$2 |
| 3278 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3280 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3282 | else |
| 3283 | if test -n "$ac_ct_RANLIB"; then |
| 3284 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3285 | else |
| 3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3287 | for as_dir in $PATH |
| 3288 | do |
| 3289 | IFS=$as_save_IFS |
| 3290 | test -z "$as_dir" && as_dir=. |
| 3291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3292 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3293 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3295 | break 2 |
| 3296 | fi |
| 3297 | done |
| 3298 | done |
| 3299 | |
| 3300 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3301 | fi |
| 3302 | fi |
| 3303 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3304 | if test -n "$ac_ct_RANLIB"; then |
| 3305 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3306 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3307 | else |
| 3308 | echo "$as_me:$LINENO: result: no" >&5 |
| 3309 | echo "${ECHO_T}no" >&6 |
| 3310 | fi |
| 3311 | |
| 3312 | RANLIB=$ac_ct_RANLIB |
| 3313 | else |
| 3314 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3315 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3316 | |
| 3317 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3318 | for ac_prog in ar aal |
| 3319 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 | # 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] | 3321 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3322 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3324 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3326 | else |
| 3327 | if test -n "$AR"; then |
| 3328 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3331 | for as_dir in $PATH |
| 3332 | do |
| 3333 | IFS=$as_save_IFS |
| 3334 | test -z "$as_dir" && as_dir=. |
| 3335 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3336 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3337 | ac_cv_prog_AR="$ac_prog" |
| 3338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3339 | break 2 |
| 3340 | fi |
| 3341 | done |
| 3342 | done |
| 3343 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3344 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3346 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3347 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3348 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3349 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3351 | echo "$as_me:$LINENO: result: no" >&5 |
| 3352 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3353 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3355 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3356 | done |
| 3357 | test -n "$AR" || AR="ar" |
| 3358 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3359 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3360 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3361 | bsdos*|hp*|HP*) |
| 3362 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3363 | if test -z "$INSTALL" |
| 3364 | then |
| 3365 | INSTALL="${srcdir}/install-sh -c" |
| 3366 | fi |
| 3367 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3368 | ac_aux_dir= |
| 3369 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3370 | if test -f $ac_dir/install-sh; then |
| 3371 | ac_aux_dir=$ac_dir |
| 3372 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3373 | break |
| 3374 | elif test -f $ac_dir/install.sh; then |
| 3375 | ac_aux_dir=$ac_dir |
| 3376 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3377 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | elif test -f $ac_dir/shtool; then |
| 3379 | ac_aux_dir=$ac_dir |
| 3380 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3381 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3382 | fi |
| 3383 | done |
| 3384 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3385 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3386 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3387 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3388 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3389 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3390 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3391 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3392 | |
| 3393 | # Find a good install program. We prefer a C program (faster), |
| 3394 | # so one script is as good as another. But avoid the broken or |
| 3395 | # incompatible versions: |
| 3396 | # SysV /etc/install, /usr/sbin/install |
| 3397 | # SunOS /usr/etc/install |
| 3398 | # IRIX /sbin/install |
| 3399 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3400 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3401 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3402 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3403 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3404 | # ./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] | 3405 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3406 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3407 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3408 | if test "${ac_cv_path_install+set}" = set; then |
| 3409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3412 | for as_dir in $PATH |
| 3413 | do |
| 3414 | IFS=$as_save_IFS |
| 3415 | test -z "$as_dir" && as_dir=. |
| 3416 | # Account for people who put trailing slashes in PATH elements. |
| 3417 | case $as_dir/ in |
| 3418 | ./ | .// | /cC/* | \ |
| 3419 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3420 | /usr/ucb/* ) ;; |
| 3421 | *) |
| 3422 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3423 | # Don't use installbsd from OSF since it installs stuff as root |
| 3424 | # by default. |
| 3425 | for ac_prog in ginstall scoinst install; do |
| 3426 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3427 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3428 | if test $ac_prog = install && |
| 3429 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3430 | # AIX install. It has an incompatible calling convention. |
| 3431 | : |
| 3432 | elif test $ac_prog = install && |
| 3433 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3434 | # program-specific install script used by HP pwplus--don't use. |
| 3435 | : |
| 3436 | else |
| 3437 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3438 | break 3 |
| 3439 | fi |
| 3440 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3441 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3442 | done |
| 3443 | ;; |
| 3444 | esac |
| 3445 | done |
| 3446 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3447 | |
| 3448 | fi |
| 3449 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3450 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3451 | else |
| 3452 | # As a last resort, use the slow shell script. We don't cache a |
| 3453 | # path for INSTALL within a source directory, because that will |
| 3454 | # break other packages using the cache if that directory is |
| 3455 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3456 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3457 | fi |
| 3458 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3459 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3460 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3461 | |
| 3462 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3463 | # It thinks the first close brace ends the variable substitution. |
| 3464 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3467 | |
| 3468 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3469 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3470 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3471 | # Not every filesystem supports hard links |
| 3472 | |
| 3473 | if test -z "$LN" ; then |
| 3474 | case $ac_sys_system in |
| 3475 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3476 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3477 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3478 | *) LN=ln;; |
| 3479 | esac |
| 3480 | fi |
| 3481 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3482 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3483 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3484 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3485 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3486 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3487 | if test "${with_pydebug+set}" = set; then |
| 3488 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3489 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3490 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3491 | then |
| 3492 | |
| 3493 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3494 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3495 | _ACEOF |
| 3496 | |
| 3497 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3498 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3499 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3501 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3502 | fi |
| 3503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | echo "$as_me:$LINENO: result: no" >&5 |
| 3505 | echo "${ECHO_T}no" >&6 |
| 3506 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3507 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3508 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3509 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3510 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3511 | then |
Neal Norwitz | d957f39 | 2002-09-25 21:26:19 +0000 | [diff] [blame] | 3512 | case $GCC in |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3513 | yes) |
| 3514 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3515 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3516 | if test "$Py_DEBUG" = 'true' ; then |
| 3517 | # Optimization messes up debuggers, so turn it off for |
| 3518 | # debug builds. |
| 3519 | OPT="-g -Wall -Wstrict-prototypes" |
| 3520 | else |
| 3521 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3522 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3523 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3524 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3525 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3526 | case $ac_sys_system in |
| 3527 | SCO_SV*) OPT="$OPT -m486 -DSCO5";; |
| 3528 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3529 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3530 | *) |
| 3531 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3532 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3533 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3534 | SCO_SV*) |
| 3535 | CFLAGS="$CFLAGS -belf" |
| 3536 | OPT="-belf -O -Ki486 -DSCO5";; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3537 | *) |
| 3538 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3539 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3540 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3541 | case $ac_sys_system in |
| 3542 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3543 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3544 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3545 | fi |
| 3546 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3547 | if test "$Py_DEBUG" = 'true'; then |
| 3548 | : |
| 3549 | else |
| 3550 | OPT="-DNDEBUG $OPT" |
| 3551 | fi |
| 3552 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3553 | # The current (beta) Monterey compiler dies with optimizations |
| 3554 | case $ac_sys_system in |
| 3555 | Monterey*) OPT="";; |
| 3556 | esac |
| 3557 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3558 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3559 | then |
| 3560 | OPT="$OPT $ac_arch_flags" |
| 3561 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3563 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3564 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3565 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3567 | else |
| 3568 | ac_save_cc="$CC" |
| 3569 | CC="$CC -OPT:Olimit=0" |
| 3570 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3571 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3573 | cat >conftest.$ac_ext <<_ACEOF |
| 3574 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3575 | #include "confdefs.h" |
| 3576 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3577 | _ACEOF |
| 3578 | rm -f conftest$ac_exeext |
| 3579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3580 | (eval $ac_link) 2>&5 |
| 3581 | ac_status=$? |
| 3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3583 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3585 | (eval $ac_try) 2>&5 |
| 3586 | ac_status=$? |
| 3587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3588 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3589 | ac_cv_opt_olimit_ok=yes |
| 3590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3591 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3592 | echo "$as_me: failed program was:" >&5 |
| 3593 | cat conftest.$ac_ext >&5 |
| 3594 | ( exit $ac_status ) |
| 3595 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3596 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 | 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] | 3598 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3599 | CC="$ac_save_cc" |
| 3600 | fi |
| 3601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3602 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3603 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3604 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3605 | case $ac_sys_system in |
| 3606 | Darwin*) OPT="$OPT" ;; |
| 3607 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3608 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3610 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3611 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3612 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3614 | else |
| 3615 | ac_save_cc="$CC" |
| 3616 | CC="$CC -Olimit 1500" |
| 3617 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3618 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3620 | cat >conftest.$ac_ext <<_ACEOF |
| 3621 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3622 | #include "confdefs.h" |
| 3623 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3624 | _ACEOF |
| 3625 | rm -f conftest$ac_exeext |
| 3626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3627 | (eval $ac_link) 2>&5 |
| 3628 | ac_status=$? |
| 3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3630 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3632 | (eval $ac_try) 2>&5 |
| 3633 | ac_status=$? |
| 3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3635 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3636 | ac_cv_olimit_ok=yes |
| 3637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3638 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3639 | echo "$as_me: failed program was:" >&5 |
| 3640 | cat conftest.$ac_ext >&5 |
| 3641 | ( exit $ac_status ) |
| 3642 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3643 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | 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] | 3645 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3646 | CC="$ac_save_cc" |
| 3647 | fi |
| 3648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3649 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3650 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3651 | if test $ac_cv_olimit_ok = yes; then |
| 3652 | OPT="$OPT -Olimit 1500" |
| 3653 | fi |
| 3654 | fi |
| 3655 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3656 | # On some compilers, pthreads are available without further options |
| 3657 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3658 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3659 | # So we have to see first whether pthreads are available without |
| 3660 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3662 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3663 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3665 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3666 | if test "$cross_compiling" = yes; then |
| 3667 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3669 | cat >conftest.$ac_ext <<_ACEOF |
| 3670 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3671 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3672 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3673 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3674 | |
| 3675 | void* routine(void* p){return NULL;} |
| 3676 | |
| 3677 | int main(){ |
| 3678 | pthread_t p; |
| 3679 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3680 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3681 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3682 | return 0; |
| 3683 | } |
| 3684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3685 | _ACEOF |
| 3686 | rm -f conftest$ac_exeext |
| 3687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3688 | (eval $ac_link) 2>&5 |
| 3689 | ac_status=$? |
| 3690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3691 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3693 | (eval $ac_try) 2>&5 |
| 3694 | ac_status=$? |
| 3695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3696 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3697 | ac_cv_pthread_is_default=yes |
| 3698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3699 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3700 | echo "$as_me: failed program was:" >&5 |
| 3701 | cat conftest.$ac_ext >&5 |
| 3702 | ( exit $ac_status ) |
| 3703 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3704 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | 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] | 3706 | fi |
| 3707 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3708 | fi |
| 3709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3710 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3711 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3712 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3714 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3715 | then |
| 3716 | ac_cv_kpthread=no |
| 3717 | else |
| 3718 | # -Kpthread, if available, provides the right #defines |
| 3719 | # and linker options to make pthread_create available |
| 3720 | # Some compilers won't report that they do not support -Kpthread, |
| 3721 | # so we need to run a program to see whether it really made the |
| 3722 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3723 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3724 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3725 | if test "${ac_cv_kpthread+set}" = set; then |
| 3726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3727 | else |
| 3728 | ac_save_cc="$CC" |
| 3729 | CC="$CC -Kpthread" |
| 3730 | if test "$cross_compiling" = yes; then |
| 3731 | ac_cv_kpthread=no |
| 3732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3733 | cat >conftest.$ac_ext <<_ACEOF |
| 3734 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3735 | #include "confdefs.h" |
| 3736 | |
| 3737 | #include <pthread.h> |
| 3738 | |
| 3739 | void* routine(void* p){return NULL;} |
| 3740 | |
| 3741 | int main(){ |
| 3742 | pthread_t p; |
| 3743 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3744 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3745 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3746 | return 0; |
| 3747 | } |
| 3748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | _ACEOF |
| 3750 | rm -f conftest$ac_exeext |
| 3751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3752 | (eval $ac_link) 2>&5 |
| 3753 | ac_status=$? |
| 3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3755 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3757 | (eval $ac_try) 2>&5 |
| 3758 | ac_status=$? |
| 3759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3760 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3761 | ac_cv_kpthread=yes |
| 3762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3764 | echo "$as_me: failed program was:" >&5 |
| 3765 | cat conftest.$ac_ext >&5 |
| 3766 | ( exit $ac_status ) |
| 3767 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3768 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 | 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] | 3770 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3771 | CC="$ac_save_cc" |
| 3772 | fi |
| 3773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3774 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3775 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3776 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3777 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3778 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3779 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3780 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3781 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3782 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3785 | cat >conftest.$ac_ext <<_ACEOF |
| 3786 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3787 | #include "confdefs.h" |
| 3788 | #include <stdlib.h> |
| 3789 | #include <stdarg.h> |
| 3790 | #include <string.h> |
| 3791 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3792 | |
| 3793 | _ACEOF |
| 3794 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3795 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3796 | ac_status=$? |
| 3797 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3798 | rm -f conftest.er1 |
| 3799 | cat conftest.err >&5 |
| 3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3801 | (exit $ac_status); } >/dev/null; then |
| 3802 | if test -s conftest.err; then |
| 3803 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3804 | else |
| 3805 | ac_cpp_err= |
| 3806 | fi |
| 3807 | else |
| 3808 | ac_cpp_err=yes |
| 3809 | fi |
| 3810 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3811 | ac_cv_header_stdc=yes |
| 3812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3813 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3814 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3815 | ac_cv_header_stdc=no |
| 3816 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3818 | |
| 3819 | if test $ac_cv_header_stdc = yes; then |
| 3820 | # 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] | 3821 | cat >conftest.$ac_ext <<_ACEOF |
| 3822 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3823 | #include "confdefs.h" |
| 3824 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 | |
| 3826 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3828 | egrep "memchr" >/dev/null 2>&1; then |
| 3829 | : |
| 3830 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3831 | ac_cv_header_stdc=no |
| 3832 | fi |
| 3833 | rm -f conftest* |
| 3834 | |
| 3835 | fi |
| 3836 | |
| 3837 | if test $ac_cv_header_stdc = yes; then |
| 3838 | # 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] | 3839 | cat >conftest.$ac_ext <<_ACEOF |
| 3840 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3841 | #include "confdefs.h" |
| 3842 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3843 | |
| 3844 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3846 | egrep "free" >/dev/null 2>&1; then |
| 3847 | : |
| 3848 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3849 | ac_cv_header_stdc=no |
| 3850 | fi |
| 3851 | rm -f conftest* |
| 3852 | |
| 3853 | fi |
| 3854 | |
| 3855 | if test $ac_cv_header_stdc = yes; then |
| 3856 | # /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] | 3857 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3858 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | cat >conftest.$ac_ext <<_ACEOF |
| 3861 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3862 | #include "confdefs.h" |
| 3863 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3864 | #if ((' ' & 0x0FF) == 0x020) |
| 3865 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3866 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3867 | #else |
| 3868 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3869 | || ('j' <= (c) && (c) <= 'r') \ |
| 3870 | || ('s' <= (c) && (c) <= 'z')) |
| 3871 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3872 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3874 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3875 | int |
| 3876 | main () |
| 3877 | { |
| 3878 | int i; |
| 3879 | for (i = 0; i < 256; i++) |
| 3880 | if (XOR (islower (i), ISLOWER (i)) |
| 3881 | || toupper (i) != TOUPPER (i)) |
| 3882 | exit(2); |
| 3883 | exit (0); |
| 3884 | } |
| 3885 | _ACEOF |
| 3886 | rm -f conftest$ac_exeext |
| 3887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3888 | (eval $ac_link) 2>&5 |
| 3889 | ac_status=$? |
| 3890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3893 | (eval $ac_try) 2>&5 |
| 3894 | ac_status=$? |
| 3895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3896 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3897 | : |
| 3898 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3899 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3900 | echo "$as_me: failed program was:" >&5 |
| 3901 | cat conftest.$ac_ext >&5 |
| 3902 | ( exit $ac_status ) |
| 3903 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3904 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3905 | 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] | 3906 | fi |
| 3907 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3908 | fi |
| 3909 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3910 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3911 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3912 | |
| 3913 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3914 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3915 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3916 | |
| 3917 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 3954 | |
| 3955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3956 | 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] | 3957 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3958 | 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] | 3959 | 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] | 3960 | 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] | 3961 | 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] | 3962 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3963 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3964 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3966 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3970 | fi |
| 3971 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3972 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3973 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3974 | # Is the header compilable? |
| 3975 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3976 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3977 | cat >conftest.$ac_ext <<_ACEOF |
| 3978 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3979 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | $ac_includes_default |
| 3981 | #include <$ac_header> |
| 3982 | _ACEOF |
| 3983 | rm -f conftest.$ac_objext |
| 3984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3985 | (eval $ac_compile) 2>&5 |
| 3986 | ac_status=$? |
| 3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3988 | (exit $ac_status); } && |
| 3989 | { ac_try='test -s conftest.$ac_objext' |
| 3990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3991 | (eval $ac_try) 2>&5 |
| 3992 | ac_status=$? |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); }; }; then |
| 3995 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3997 | echo "$as_me: failed program was:" >&5 |
| 3998 | cat conftest.$ac_ext >&5 |
| 3999 | ac_header_compiler=no |
| 4000 | fi |
| 4001 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4002 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4003 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4004 | |
| 4005 | # Is the header present? |
| 4006 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4007 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4008 | cat >conftest.$ac_ext <<_ACEOF |
| 4009 | #line $LINENO "configure" |
| 4010 | #include "confdefs.h" |
| 4011 | #include <$ac_header> |
| 4012 | _ACEOF |
| 4013 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4014 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4015 | ac_status=$? |
| 4016 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4017 | rm -f conftest.er1 |
| 4018 | cat conftest.err >&5 |
| 4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4020 | (exit $ac_status); } >/dev/null; then |
| 4021 | if test -s conftest.err; then |
| 4022 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4023 | else |
| 4024 | ac_cpp_err= |
| 4025 | fi |
| 4026 | else |
| 4027 | ac_cpp_err=yes |
| 4028 | fi |
| 4029 | if test -z "$ac_cpp_err"; then |
| 4030 | ac_header_preproc=yes |
| 4031 | else |
| 4032 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4033 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4034 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4036 | rm -f conftest.err conftest.$ac_ext |
| 4037 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4038 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4039 | |
| 4040 | # So? What about this header? |
| 4041 | case $ac_header_compiler:$ac_header_preproc in |
| 4042 | yes:no ) |
| 4043 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4044 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4046 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4047 | no:yes ) |
| 4048 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4049 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4050 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4051 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4054 | esac |
| 4055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4060 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4064 | |
| 4065 | fi |
| 4066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4067 | cat >>confdefs.h <<_ACEOF |
| 4068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4069 | _ACEOF |
| 4070 | |
| 4071 | fi |
| 4072 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4073 | done |
| 4074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4075 | |
| 4076 | |
| 4077 | |
| 4078 | |
| 4079 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4080 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4081 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4082 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4083 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4084 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4087 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4088 | cat >conftest.$ac_ext <<_ACEOF |
| 4089 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4090 | #include "confdefs.h" |
| 4091 | #include <sys/types.h> |
| 4092 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | |
| 4094 | #ifdef F77_DUMMY_MAIN |
| 4095 | # ifdef __cplusplus |
| 4096 | extern "C" |
| 4097 | # endif |
| 4098 | int F77_DUMMY_MAIN() { return 1; } |
| 4099 | #endif |
| 4100 | int |
| 4101 | main () |
| 4102 | { |
| 4103 | if ((DIR *) 0) |
| 4104 | return 0; |
| 4105 | ; |
| 4106 | return 0; |
| 4107 | } |
| 4108 | _ACEOF |
| 4109 | rm -f conftest.$ac_objext |
| 4110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4111 | (eval $ac_compile) 2>&5 |
| 4112 | ac_status=$? |
| 4113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4114 | (exit $ac_status); } && |
| 4115 | { ac_try='test -s conftest.$ac_objext' |
| 4116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4117 | (eval $ac_try) 2>&5 |
| 4118 | ac_status=$? |
| 4119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4120 | (exit $ac_status); }; }; then |
| 4121 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 | echo "$as_me: failed program was:" >&5 |
| 4124 | cat conftest.$ac_ext >&5 |
| 4125 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4127 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4128 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4130 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4131 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4132 | cat >>confdefs.h <<_ACEOF |
| 4133 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4134 | _ACEOF |
| 4135 | |
| 4136 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4137 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4138 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4139 | done |
| 4140 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4141 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4142 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4143 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4144 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4147 | ac_func_search_save_LIBS=$LIBS |
| 4148 | ac_cv_search_opendir=no |
| 4149 | cat >conftest.$ac_ext <<_ACEOF |
| 4150 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4151 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4153 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4154 | #ifdef __cplusplus |
| 4155 | extern "C" |
| 4156 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4157 | /* 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] | 4158 | builtin and then its argument prototype would still apply. */ |
| 4159 | char opendir (); |
| 4160 | #ifdef F77_DUMMY_MAIN |
| 4161 | # ifdef __cplusplus |
| 4162 | extern "C" |
| 4163 | # endif |
| 4164 | int F77_DUMMY_MAIN() { return 1; } |
| 4165 | #endif |
| 4166 | int |
| 4167 | main () |
| 4168 | { |
| 4169 | opendir (); |
| 4170 | ; |
| 4171 | return 0; |
| 4172 | } |
| 4173 | _ACEOF |
| 4174 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4176 | (eval $ac_link) 2>&5 |
| 4177 | ac_status=$? |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4179 | (exit $ac_status); } && |
| 4180 | { ac_try='test -s conftest$ac_exeext' |
| 4181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4182 | (eval $ac_try) 2>&5 |
| 4183 | ac_status=$? |
| 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4185 | (exit $ac_status); }; }; then |
| 4186 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4188 | echo "$as_me: failed program was:" >&5 |
| 4189 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4190 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4191 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4192 | if test "$ac_cv_search_opendir" = no; then |
| 4193 | for ac_lib in dir; do |
| 4194 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4195 | cat >conftest.$ac_ext <<_ACEOF |
| 4196 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4197 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4199 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4200 | #ifdef __cplusplus |
| 4201 | extern "C" |
| 4202 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4203 | /* 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] | 4204 | builtin and then its argument prototype would still apply. */ |
| 4205 | char opendir (); |
| 4206 | #ifdef F77_DUMMY_MAIN |
| 4207 | # ifdef __cplusplus |
| 4208 | extern "C" |
| 4209 | # endif |
| 4210 | int F77_DUMMY_MAIN() { return 1; } |
| 4211 | #endif |
| 4212 | int |
| 4213 | main () |
| 4214 | { |
| 4215 | opendir (); |
| 4216 | ; |
| 4217 | return 0; |
| 4218 | } |
| 4219 | _ACEOF |
| 4220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4222 | (eval $ac_link) 2>&5 |
| 4223 | ac_status=$? |
| 4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4225 | (exit $ac_status); } && |
| 4226 | { ac_try='test -s conftest$ac_exeext' |
| 4227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4228 | (eval $ac_try) 2>&5 |
| 4229 | ac_status=$? |
| 4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4231 | (exit $ac_status); }; }; then |
| 4232 | ac_cv_search_opendir="-l$ac_lib" |
| 4233 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4235 | echo "$as_me: failed program was:" >&5 |
| 4236 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4237 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4238 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4239 | done |
| 4240 | fi |
| 4241 | LIBS=$ac_func_search_save_LIBS |
| 4242 | fi |
| 4243 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4244 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4245 | if test "$ac_cv_search_opendir" != no; then |
| 4246 | 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] | 4247 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4248 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4249 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4251 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4252 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4253 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4255 | else |
| 4256 | ac_func_search_save_LIBS=$LIBS |
| 4257 | ac_cv_search_opendir=no |
| 4258 | cat >conftest.$ac_ext <<_ACEOF |
| 4259 | #line $LINENO "configure" |
| 4260 | #include "confdefs.h" |
| 4261 | |
| 4262 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4263 | #ifdef __cplusplus |
| 4264 | extern "C" |
| 4265 | #endif |
| 4266 | /* We use char because int might match the return type of a gcc2 |
| 4267 | builtin and then its argument prototype would still apply. */ |
| 4268 | char opendir (); |
| 4269 | #ifdef F77_DUMMY_MAIN |
| 4270 | # ifdef __cplusplus |
| 4271 | extern "C" |
| 4272 | # endif |
| 4273 | int F77_DUMMY_MAIN() { return 1; } |
| 4274 | #endif |
| 4275 | int |
| 4276 | main () |
| 4277 | { |
| 4278 | opendir (); |
| 4279 | ; |
| 4280 | return 0; |
| 4281 | } |
| 4282 | _ACEOF |
| 4283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4285 | (eval $ac_link) 2>&5 |
| 4286 | ac_status=$? |
| 4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4288 | (exit $ac_status); } && |
| 4289 | { ac_try='test -s conftest$ac_exeext' |
| 4290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4291 | (eval $ac_try) 2>&5 |
| 4292 | ac_status=$? |
| 4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4294 | (exit $ac_status); }; }; then |
| 4295 | ac_cv_search_opendir="none required" |
| 4296 | else |
| 4297 | echo "$as_me: failed program was:" >&5 |
| 4298 | cat conftest.$ac_ext >&5 |
| 4299 | fi |
| 4300 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4301 | if test "$ac_cv_search_opendir" = no; then |
| 4302 | for ac_lib in x; do |
| 4303 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4304 | cat >conftest.$ac_ext <<_ACEOF |
| 4305 | #line $LINENO "configure" |
| 4306 | #include "confdefs.h" |
| 4307 | |
| 4308 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4309 | #ifdef __cplusplus |
| 4310 | extern "C" |
| 4311 | #endif |
| 4312 | /* We use char because int might match the return type of a gcc2 |
| 4313 | builtin and then its argument prototype would still apply. */ |
| 4314 | char opendir (); |
| 4315 | #ifdef F77_DUMMY_MAIN |
| 4316 | # ifdef __cplusplus |
| 4317 | extern "C" |
| 4318 | # endif |
| 4319 | int F77_DUMMY_MAIN() { return 1; } |
| 4320 | #endif |
| 4321 | int |
| 4322 | main () |
| 4323 | { |
| 4324 | opendir (); |
| 4325 | ; |
| 4326 | return 0; |
| 4327 | } |
| 4328 | _ACEOF |
| 4329 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4331 | (eval $ac_link) 2>&5 |
| 4332 | ac_status=$? |
| 4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4334 | (exit $ac_status); } && |
| 4335 | { ac_try='test -s conftest$ac_exeext' |
| 4336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4337 | (eval $ac_try) 2>&5 |
| 4338 | ac_status=$? |
| 4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4340 | (exit $ac_status); }; }; then |
| 4341 | ac_cv_search_opendir="-l$ac_lib" |
| 4342 | break |
| 4343 | else |
| 4344 | echo "$as_me: failed program was:" >&5 |
| 4345 | cat conftest.$ac_ext >&5 |
| 4346 | fi |
| 4347 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4348 | done |
| 4349 | fi |
| 4350 | LIBS=$ac_func_search_save_LIBS |
| 4351 | fi |
| 4352 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4353 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4354 | if test "$ac_cv_search_opendir" != no; then |
| 4355 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4356 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4357 | fi |
| 4358 | |
| 4359 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4360 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4361 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4362 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4363 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4365 | else |
| 4366 | cat >conftest.$ac_ext <<_ACEOF |
| 4367 | #line $LINENO "configure" |
| 4368 | #include "confdefs.h" |
| 4369 | #include <sys/types.h> |
| 4370 | #ifdef F77_DUMMY_MAIN |
| 4371 | # ifdef __cplusplus |
| 4372 | extern "C" |
| 4373 | # endif |
| 4374 | int F77_DUMMY_MAIN() { return 1; } |
| 4375 | #endif |
| 4376 | int |
| 4377 | main () |
| 4378 | { |
| 4379 | return makedev(0, 0); |
| 4380 | ; |
| 4381 | return 0; |
| 4382 | } |
| 4383 | _ACEOF |
| 4384 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4386 | (eval $ac_link) 2>&5 |
| 4387 | ac_status=$? |
| 4388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4389 | (exit $ac_status); } && |
| 4390 | { ac_try='test -s conftest$ac_exeext' |
| 4391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4392 | (eval $ac_try) 2>&5 |
| 4393 | ac_status=$? |
| 4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4395 | (exit $ac_status); }; }; then |
| 4396 | ac_cv_header_sys_types_h_makedev=yes |
| 4397 | else |
| 4398 | echo "$as_me: failed program was:" >&5 |
| 4399 | cat conftest.$ac_ext >&5 |
| 4400 | ac_cv_header_sys_types_h_makedev=no |
| 4401 | fi |
| 4402 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4403 | |
| 4404 | fi |
| 4405 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4406 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4407 | |
| 4408 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4409 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4410 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4411 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4412 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4414 | fi |
| 4415 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4416 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4417 | else |
| 4418 | # Is the header compilable? |
| 4419 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4420 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4421 | cat >conftest.$ac_ext <<_ACEOF |
| 4422 | #line $LINENO "configure" |
| 4423 | #include "confdefs.h" |
| 4424 | $ac_includes_default |
| 4425 | #include <sys/mkdev.h> |
| 4426 | _ACEOF |
| 4427 | rm -f conftest.$ac_objext |
| 4428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4429 | (eval $ac_compile) 2>&5 |
| 4430 | ac_status=$? |
| 4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4432 | (exit $ac_status); } && |
| 4433 | { ac_try='test -s conftest.$ac_objext' |
| 4434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4435 | (eval $ac_try) 2>&5 |
| 4436 | ac_status=$? |
| 4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4438 | (exit $ac_status); }; }; then |
| 4439 | ac_header_compiler=yes |
| 4440 | else |
| 4441 | echo "$as_me: failed program was:" >&5 |
| 4442 | cat conftest.$ac_ext >&5 |
| 4443 | ac_header_compiler=no |
| 4444 | fi |
| 4445 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4446 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4447 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4448 | |
| 4449 | # Is the header present? |
| 4450 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4451 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4452 | cat >conftest.$ac_ext <<_ACEOF |
| 4453 | #line $LINENO "configure" |
| 4454 | #include "confdefs.h" |
| 4455 | #include <sys/mkdev.h> |
| 4456 | _ACEOF |
| 4457 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4458 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4459 | ac_status=$? |
| 4460 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4461 | rm -f conftest.er1 |
| 4462 | cat conftest.err >&5 |
| 4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4464 | (exit $ac_status); } >/dev/null; then |
| 4465 | if test -s conftest.err; then |
| 4466 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4467 | else |
| 4468 | ac_cpp_err= |
| 4469 | fi |
| 4470 | else |
| 4471 | ac_cpp_err=yes |
| 4472 | fi |
| 4473 | if test -z "$ac_cpp_err"; then |
| 4474 | ac_header_preproc=yes |
| 4475 | else |
| 4476 | echo "$as_me: failed program was:" >&5 |
| 4477 | cat conftest.$ac_ext >&5 |
| 4478 | ac_header_preproc=no |
| 4479 | fi |
| 4480 | rm -f conftest.err conftest.$ac_ext |
| 4481 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4482 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4483 | |
| 4484 | # So? What about this header? |
| 4485 | case $ac_header_compiler:$ac_header_preproc in |
| 4486 | yes:no ) |
| 4487 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4488 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4489 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4490 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4491 | no:yes ) |
| 4492 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4493 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4494 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4495 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4496 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4497 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4498 | esac |
| 4499 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4500 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4501 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4503 | else |
| 4504 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4505 | fi |
| 4506 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4507 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4508 | |
| 4509 | fi |
| 4510 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4511 | |
| 4512 | cat >>confdefs.h <<\_ACEOF |
| 4513 | #define MAJOR_IN_MKDEV 1 |
| 4514 | _ACEOF |
| 4515 | |
| 4516 | fi |
| 4517 | |
| 4518 | |
| 4519 | |
| 4520 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4521 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4522 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4523 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4524 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4526 | fi |
| 4527 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4528 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4529 | else |
| 4530 | # Is the header compilable? |
| 4531 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4532 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4533 | cat >conftest.$ac_ext <<_ACEOF |
| 4534 | #line $LINENO "configure" |
| 4535 | #include "confdefs.h" |
| 4536 | $ac_includes_default |
| 4537 | #include <sys/sysmacros.h> |
| 4538 | _ACEOF |
| 4539 | rm -f conftest.$ac_objext |
| 4540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4541 | (eval $ac_compile) 2>&5 |
| 4542 | ac_status=$? |
| 4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4544 | (exit $ac_status); } && |
| 4545 | { ac_try='test -s conftest.$ac_objext' |
| 4546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4547 | (eval $ac_try) 2>&5 |
| 4548 | ac_status=$? |
| 4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4550 | (exit $ac_status); }; }; then |
| 4551 | ac_header_compiler=yes |
| 4552 | else |
| 4553 | echo "$as_me: failed program was:" >&5 |
| 4554 | cat conftest.$ac_ext >&5 |
| 4555 | ac_header_compiler=no |
| 4556 | fi |
| 4557 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4558 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4559 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4560 | |
| 4561 | # Is the header present? |
| 4562 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4563 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4564 | cat >conftest.$ac_ext <<_ACEOF |
| 4565 | #line $LINENO "configure" |
| 4566 | #include "confdefs.h" |
| 4567 | #include <sys/sysmacros.h> |
| 4568 | _ACEOF |
| 4569 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4570 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4571 | ac_status=$? |
| 4572 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4573 | rm -f conftest.er1 |
| 4574 | cat conftest.err >&5 |
| 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4576 | (exit $ac_status); } >/dev/null; then |
| 4577 | if test -s conftest.err; then |
| 4578 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4579 | else |
| 4580 | ac_cpp_err= |
| 4581 | fi |
| 4582 | else |
| 4583 | ac_cpp_err=yes |
| 4584 | fi |
| 4585 | if test -z "$ac_cpp_err"; then |
| 4586 | ac_header_preproc=yes |
| 4587 | else |
| 4588 | echo "$as_me: failed program was:" >&5 |
| 4589 | cat conftest.$ac_ext >&5 |
| 4590 | ac_header_preproc=no |
| 4591 | fi |
| 4592 | rm -f conftest.err conftest.$ac_ext |
| 4593 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4594 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4595 | |
| 4596 | # So? What about this header? |
| 4597 | case $ac_header_compiler:$ac_header_preproc in |
| 4598 | yes:no ) |
| 4599 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4600 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4601 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4602 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4603 | no:yes ) |
| 4604 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4605 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4606 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4607 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4608 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4609 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4610 | esac |
| 4611 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4612 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4613 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4615 | else |
| 4616 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4617 | fi |
| 4618 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4619 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4620 | |
| 4621 | fi |
| 4622 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4623 | |
| 4624 | cat >>confdefs.h <<\_ACEOF |
| 4625 | #define MAJOR_IN_SYSMACROS 1 |
| 4626 | _ACEOF |
| 4627 | |
| 4628 | fi |
| 4629 | |
| 4630 | |
| 4631 | fi |
| 4632 | fi |
| 4633 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4634 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4635 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4636 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4637 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4638 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4639 | cat >conftest.$ac_ext <<_ACEOF |
| 4640 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4641 | #include "confdefs.h" |
| 4642 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4643 | |
| 4644 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4646 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4647 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4649 | |
| 4650 | |
| 4651 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4652 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4653 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4654 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4655 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4656 | fi |
| 4657 | rm -f conftest* |
| 4658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4659 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4660 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4661 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4662 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4663 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4664 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4665 | cat >conftest.$ac_ext <<_ACEOF |
| 4666 | #line $LINENO "configure" |
| 4667 | #include "confdefs.h" |
| 4668 | #include <sys/types.h> |
| 4669 | #ifdef F77_DUMMY_MAIN |
| 4670 | # ifdef __cplusplus |
| 4671 | extern "C" |
| 4672 | # endif |
| 4673 | int F77_DUMMY_MAIN() { return 1; } |
| 4674 | #endif |
| 4675 | int |
| 4676 | main () |
| 4677 | { |
| 4678 | makedev(0, 0) |
| 4679 | ; |
| 4680 | return 0; |
| 4681 | } |
| 4682 | _ACEOF |
| 4683 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4685 | (eval $ac_link) 2>&5 |
| 4686 | ac_status=$? |
| 4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4688 | (exit $ac_status); } && |
| 4689 | { ac_try='test -s conftest$ac_exeext' |
| 4690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4691 | (eval $ac_try) 2>&5 |
| 4692 | ac_status=$? |
| 4693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4694 | (exit $ac_status); }; }; then |
| 4695 | ac_cv_has_makedev=yes |
| 4696 | else |
| 4697 | echo "$as_me: failed program was:" >&5 |
| 4698 | cat conftest.$ac_ext >&5 |
| 4699 | ac_cv_has_makedev=no |
| 4700 | fi |
| 4701 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4702 | if test "$ac_cv_has_makedev" = "no"; then |
| 4703 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4704 | cat >conftest.$ac_ext <<_ACEOF |
| 4705 | #line $LINENO "configure" |
| 4706 | #include "confdefs.h" |
| 4707 | |
| 4708 | #define _OSF_SOURCE 1 |
| 4709 | #include <sys/types.h> |
| 4710 | |
| 4711 | #ifdef F77_DUMMY_MAIN |
| 4712 | # ifdef __cplusplus |
| 4713 | extern "C" |
| 4714 | # endif |
| 4715 | int F77_DUMMY_MAIN() { return 1; } |
| 4716 | #endif |
| 4717 | int |
| 4718 | main () |
| 4719 | { |
| 4720 | makedev(0, 0) |
| 4721 | ; |
| 4722 | return 0; |
| 4723 | } |
| 4724 | _ACEOF |
| 4725 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4727 | (eval $ac_link) 2>&5 |
| 4728 | ac_status=$? |
| 4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4730 | (exit $ac_status); } && |
| 4731 | { ac_try='test -s conftest$ac_exeext' |
| 4732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4733 | (eval $ac_try) 2>&5 |
| 4734 | ac_status=$? |
| 4735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4736 | (exit $ac_status); }; }; then |
| 4737 | ac_cv_has_makedev=yes |
| 4738 | else |
| 4739 | echo "$as_me: failed program was:" >&5 |
| 4740 | cat conftest.$ac_ext >&5 |
| 4741 | ac_cv_has_makedev=no |
| 4742 | fi |
| 4743 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4744 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4745 | |
| 4746 | cat >>confdefs.h <<\_ACEOF |
| 4747 | #define _OSF_SOURCE 1 |
| 4748 | _ACEOF |
| 4749 | |
| 4750 | fi |
| 4751 | fi |
| 4752 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4753 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4754 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4755 | |
| 4756 | cat >>confdefs.h <<\_ACEOF |
| 4757 | #define HAVE_MAKEDEV 1 |
| 4758 | _ACEOF |
| 4759 | |
| 4760 | fi |
| 4761 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4762 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4763 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4764 | # defined, but the compiler does not support pragma redefine_extname, |
| 4765 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4766 | # structures (such as rlimit64) without declaring them. As a |
| 4767 | # work-around, disable LFS on such configurations |
| 4768 | |
| 4769 | use_lfs=yes |
| 4770 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4771 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4772 | cat >conftest.$ac_ext <<_ACEOF |
| 4773 | #line $LINENO "configure" |
| 4774 | #include "confdefs.h" |
| 4775 | |
| 4776 | #define _LARGEFILE_SOURCE 1 |
| 4777 | #define _FILE_OFFSET_BITS 64 |
| 4778 | #include <sys/resource.h> |
| 4779 | |
| 4780 | #ifdef F77_DUMMY_MAIN |
| 4781 | # ifdef __cplusplus |
| 4782 | extern "C" |
| 4783 | # endif |
| 4784 | int F77_DUMMY_MAIN() { return 1; } |
| 4785 | #endif |
| 4786 | int |
| 4787 | main () |
| 4788 | { |
| 4789 | struct rlimit foo; |
| 4790 | ; |
| 4791 | return 0; |
| 4792 | } |
| 4793 | _ACEOF |
| 4794 | rm -f conftest.$ac_objext |
| 4795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4796 | (eval $ac_compile) 2>&5 |
| 4797 | ac_status=$? |
| 4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4799 | (exit $ac_status); } && |
| 4800 | { ac_try='test -s conftest.$ac_objext' |
| 4801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4802 | (eval $ac_try) 2>&5 |
| 4803 | ac_status=$? |
| 4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4805 | (exit $ac_status); }; }; then |
| 4806 | sol_lfs_bug=no |
| 4807 | else |
| 4808 | echo "$as_me: failed program was:" >&5 |
| 4809 | cat conftest.$ac_ext >&5 |
| 4810 | sol_lfs_bug=yes |
| 4811 | fi |
| 4812 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4813 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4814 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4815 | if test "$sol_lfs_bug" = "yes"; then |
| 4816 | use_lfs=no |
| 4817 | fi |
| 4818 | |
| 4819 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4820 | # Two defines needed to enable largefile support on various platforms |
| 4821 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4823 | cat >>confdefs.h <<\_ACEOF |
| 4824 | #define _LARGEFILE_SOURCE 1 |
| 4825 | _ACEOF |
| 4826 | |
| 4827 | |
| 4828 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4829 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4830 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4831 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4832 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4833 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4834 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4835 | cat >> confdefs.h <<\EOF |
| 4836 | #if defined(SCO_DS) |
| 4837 | #undef _OFF_T |
| 4838 | #endif |
| 4839 | EOF |
| 4840 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4841 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4842 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4843 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4844 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4847 | cat >conftest.$ac_ext <<_ACEOF |
| 4848 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4849 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4850 | $ac_includes_default |
| 4851 | #ifdef F77_DUMMY_MAIN |
| 4852 | # ifdef __cplusplus |
| 4853 | extern "C" |
| 4854 | # endif |
| 4855 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4856 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4857 | int |
| 4858 | main () |
| 4859 | { |
| 4860 | if ((mode_t *) 0) |
| 4861 | return 0; |
| 4862 | if (sizeof (mode_t)) |
| 4863 | return 0; |
| 4864 | ; |
| 4865 | return 0; |
| 4866 | } |
| 4867 | _ACEOF |
| 4868 | rm -f conftest.$ac_objext |
| 4869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4870 | (eval $ac_compile) 2>&5 |
| 4871 | ac_status=$? |
| 4872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4873 | (exit $ac_status); } && |
| 4874 | { ac_try='test -s conftest.$ac_objext' |
| 4875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4876 | (eval $ac_try) 2>&5 |
| 4877 | ac_status=$? |
| 4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4879 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4880 | ac_cv_type_mode_t=yes |
| 4881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4882 | echo "$as_me: failed program was:" >&5 |
| 4883 | cat conftest.$ac_ext >&5 |
| 4884 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4886 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4887 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4888 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4889 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4890 | if test $ac_cv_type_mode_t = yes; then |
| 4891 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4893 | |
| 4894 | cat >>confdefs.h <<_ACEOF |
| 4895 | #define mode_t int |
| 4896 | _ACEOF |
| 4897 | |
| 4898 | fi |
| 4899 | |
| 4900 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4901 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4902 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4904 | else |
| 4905 | cat >conftest.$ac_ext <<_ACEOF |
| 4906 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4907 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4908 | $ac_includes_default |
| 4909 | #ifdef F77_DUMMY_MAIN |
| 4910 | # ifdef __cplusplus |
| 4911 | extern "C" |
| 4912 | # endif |
| 4913 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4914 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4915 | int |
| 4916 | main () |
| 4917 | { |
| 4918 | if ((off_t *) 0) |
| 4919 | return 0; |
| 4920 | if (sizeof (off_t)) |
| 4921 | return 0; |
| 4922 | ; |
| 4923 | return 0; |
| 4924 | } |
| 4925 | _ACEOF |
| 4926 | rm -f conftest.$ac_objext |
| 4927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4928 | (eval $ac_compile) 2>&5 |
| 4929 | ac_status=$? |
| 4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4931 | (exit $ac_status); } && |
| 4932 | { ac_try='test -s conftest.$ac_objext' |
| 4933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4934 | (eval $ac_try) 2>&5 |
| 4935 | ac_status=$? |
| 4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4937 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4938 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4940 | echo "$as_me: failed program was:" >&5 |
| 4941 | cat conftest.$ac_ext >&5 |
| 4942 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4943 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4944 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4945 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4946 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4947 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4948 | if test $ac_cv_type_off_t = yes; then |
| 4949 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4951 | |
| 4952 | cat >>confdefs.h <<_ACEOF |
| 4953 | #define off_t long |
| 4954 | _ACEOF |
| 4955 | |
| 4956 | fi |
| 4957 | |
| 4958 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4959 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4960 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4962 | else |
| 4963 | cat >conftest.$ac_ext <<_ACEOF |
| 4964 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4965 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4966 | $ac_includes_default |
| 4967 | #ifdef F77_DUMMY_MAIN |
| 4968 | # ifdef __cplusplus |
| 4969 | extern "C" |
| 4970 | # endif |
| 4971 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4972 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4973 | int |
| 4974 | main () |
| 4975 | { |
| 4976 | if ((pid_t *) 0) |
| 4977 | return 0; |
| 4978 | if (sizeof (pid_t)) |
| 4979 | return 0; |
| 4980 | ; |
| 4981 | return 0; |
| 4982 | } |
| 4983 | _ACEOF |
| 4984 | rm -f conftest.$ac_objext |
| 4985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4986 | (eval $ac_compile) 2>&5 |
| 4987 | ac_status=$? |
| 4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4989 | (exit $ac_status); } && |
| 4990 | { ac_try='test -s conftest.$ac_objext' |
| 4991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4992 | (eval $ac_try) 2>&5 |
| 4993 | ac_status=$? |
| 4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4995 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4996 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4997 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4998 | echo "$as_me: failed program was:" >&5 |
| 4999 | cat conftest.$ac_ext >&5 |
| 5000 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5002 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5004 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5005 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5006 | if test $ac_cv_type_pid_t = yes; then |
| 5007 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5009 | |
| 5010 | cat >>confdefs.h <<_ACEOF |
| 5011 | #define pid_t int |
| 5012 | _ACEOF |
| 5013 | |
| 5014 | fi |
| 5015 | |
| 5016 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5017 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5018 | if test "${ac_cv_type_signal+set}" = set; then |
| 5019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5020 | else |
| 5021 | cat >conftest.$ac_ext <<_ACEOF |
| 5022 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5023 | #include "confdefs.h" |
| 5024 | #include <sys/types.h> |
| 5025 | #include <signal.h> |
| 5026 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5027 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5028 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5029 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5030 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5031 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5032 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5033 | #endif |
| 5034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5035 | #ifdef F77_DUMMY_MAIN |
| 5036 | # ifdef __cplusplus |
| 5037 | extern "C" |
| 5038 | # endif |
| 5039 | int F77_DUMMY_MAIN() { return 1; } |
| 5040 | #endif |
| 5041 | int |
| 5042 | main () |
| 5043 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5044 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5045 | ; |
| 5046 | return 0; |
| 5047 | } |
| 5048 | _ACEOF |
| 5049 | rm -f conftest.$ac_objext |
| 5050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5051 | (eval $ac_compile) 2>&5 |
| 5052 | ac_status=$? |
| 5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5054 | (exit $ac_status); } && |
| 5055 | { ac_try='test -s conftest.$ac_objext' |
| 5056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5057 | (eval $ac_try) 2>&5 |
| 5058 | ac_status=$? |
| 5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5060 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5061 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5062 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5063 | echo "$as_me: failed program was:" >&5 |
| 5064 | cat conftest.$ac_ext >&5 |
| 5065 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5066 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5067 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5068 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5069 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5070 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5072 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5073 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5074 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5075 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5077 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5078 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5079 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5082 | cat >conftest.$ac_ext <<_ACEOF |
| 5083 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5084 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5085 | $ac_includes_default |
| 5086 | #ifdef F77_DUMMY_MAIN |
| 5087 | # ifdef __cplusplus |
| 5088 | extern "C" |
| 5089 | # endif |
| 5090 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5091 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5092 | int |
| 5093 | main () |
| 5094 | { |
| 5095 | if ((size_t *) 0) |
| 5096 | return 0; |
| 5097 | if (sizeof (size_t)) |
| 5098 | return 0; |
| 5099 | ; |
| 5100 | return 0; |
| 5101 | } |
| 5102 | _ACEOF |
| 5103 | rm -f conftest.$ac_objext |
| 5104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5105 | (eval $ac_compile) 2>&5 |
| 5106 | ac_status=$? |
| 5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5108 | (exit $ac_status); } && |
| 5109 | { ac_try='test -s conftest.$ac_objext' |
| 5110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5111 | (eval $ac_try) 2>&5 |
| 5112 | ac_status=$? |
| 5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5114 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5115 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5117 | echo "$as_me: failed program was:" >&5 |
| 5118 | cat conftest.$ac_ext >&5 |
| 5119 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5120 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5121 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5122 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5123 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5124 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5125 | if test $ac_cv_type_size_t = yes; then |
| 5126 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5128 | |
| 5129 | cat >>confdefs.h <<_ACEOF |
| 5130 | #define size_t unsigned |
| 5131 | _ACEOF |
| 5132 | |
| 5133 | fi |
| 5134 | |
| 5135 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5136 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5137 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5139 | else |
| 5140 | cat >conftest.$ac_ext <<_ACEOF |
| 5141 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5142 | #include "confdefs.h" |
| 5143 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5144 | |
| 5145 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5147 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5148 | ac_cv_type_uid_t=yes |
| 5149 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5150 | ac_cv_type_uid_t=no |
| 5151 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5152 | rm -f conftest* |
| 5153 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5154 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5155 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5156 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5157 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5159 | cat >>confdefs.h <<\_ACEOF |
| 5160 | #define uid_t int |
| 5161 | _ACEOF |
| 5162 | |
| 5163 | |
| 5164 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5165 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5166 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5167 | |
| 5168 | fi |
| 5169 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5170 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5171 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5172 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5173 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5174 | if test "${ac_cv_type_int+set}" = set; then |
| 5175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5176 | else |
| 5177 | cat >conftest.$ac_ext <<_ACEOF |
| 5178 | #line $LINENO "configure" |
| 5179 | #include "confdefs.h" |
| 5180 | $ac_includes_default |
| 5181 | #ifdef F77_DUMMY_MAIN |
| 5182 | # ifdef __cplusplus |
| 5183 | extern "C" |
| 5184 | # endif |
| 5185 | int F77_DUMMY_MAIN() { return 1; } |
| 5186 | #endif |
| 5187 | int |
| 5188 | main () |
| 5189 | { |
| 5190 | if ((int *) 0) |
| 5191 | return 0; |
| 5192 | if (sizeof (int)) |
| 5193 | return 0; |
| 5194 | ; |
| 5195 | return 0; |
| 5196 | } |
| 5197 | _ACEOF |
| 5198 | rm -f conftest.$ac_objext |
| 5199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5200 | (eval $ac_compile) 2>&5 |
| 5201 | ac_status=$? |
| 5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5203 | (exit $ac_status); } && |
| 5204 | { ac_try='test -s conftest.$ac_objext' |
| 5205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5206 | (eval $ac_try) 2>&5 |
| 5207 | ac_status=$? |
| 5208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5209 | (exit $ac_status); }; }; then |
| 5210 | ac_cv_type_int=yes |
| 5211 | else |
| 5212 | echo "$as_me: failed program was:" >&5 |
| 5213 | cat conftest.$ac_ext >&5 |
| 5214 | ac_cv_type_int=no |
| 5215 | fi |
| 5216 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5217 | fi |
| 5218 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5219 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5220 | |
| 5221 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5222 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5223 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5225 | else |
| 5226 | if test "$ac_cv_type_int" = yes; then |
| 5227 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5228 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5229 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5230 | # This bug is HP SR number 8606223364. |
| 5231 | if test "$cross_compiling" = yes; then |
| 5232 | # Depending upon the size, compute the lo and hi bounds. |
| 5233 | cat >conftest.$ac_ext <<_ACEOF |
| 5234 | #line $LINENO "configure" |
| 5235 | #include "confdefs.h" |
| 5236 | $ac_includes_default |
| 5237 | #ifdef F77_DUMMY_MAIN |
| 5238 | # ifdef __cplusplus |
| 5239 | extern "C" |
| 5240 | # endif |
| 5241 | int F77_DUMMY_MAIN() { return 1; } |
| 5242 | #endif |
| 5243 | int |
| 5244 | main () |
| 5245 | { |
| 5246 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5247 | test_array [0] = 0 |
| 5248 | |
| 5249 | ; |
| 5250 | return 0; |
| 5251 | } |
| 5252 | _ACEOF |
| 5253 | rm -f conftest.$ac_objext |
| 5254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5255 | (eval $ac_compile) 2>&5 |
| 5256 | ac_status=$? |
| 5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5258 | (exit $ac_status); } && |
| 5259 | { ac_try='test -s conftest.$ac_objext' |
| 5260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5261 | (eval $ac_try) 2>&5 |
| 5262 | ac_status=$? |
| 5263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5264 | (exit $ac_status); }; }; then |
| 5265 | ac_lo=0 ac_mid=0 |
| 5266 | while :; do |
| 5267 | cat >conftest.$ac_ext <<_ACEOF |
| 5268 | #line $LINENO "configure" |
| 5269 | #include "confdefs.h" |
| 5270 | $ac_includes_default |
| 5271 | #ifdef F77_DUMMY_MAIN |
| 5272 | # ifdef __cplusplus |
| 5273 | extern "C" |
| 5274 | # endif |
| 5275 | int F77_DUMMY_MAIN() { return 1; } |
| 5276 | #endif |
| 5277 | int |
| 5278 | main () |
| 5279 | { |
| 5280 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5281 | test_array [0] = 0 |
| 5282 | |
| 5283 | ; |
| 5284 | return 0; |
| 5285 | } |
| 5286 | _ACEOF |
| 5287 | rm -f conftest.$ac_objext |
| 5288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5289 | (eval $ac_compile) 2>&5 |
| 5290 | ac_status=$? |
| 5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5292 | (exit $ac_status); } && |
| 5293 | { ac_try='test -s conftest.$ac_objext' |
| 5294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5295 | (eval $ac_try) 2>&5 |
| 5296 | ac_status=$? |
| 5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5298 | (exit $ac_status); }; }; then |
| 5299 | ac_hi=$ac_mid; break |
| 5300 | else |
| 5301 | echo "$as_me: failed program was:" >&5 |
| 5302 | cat conftest.$ac_ext >&5 |
| 5303 | ac_lo=`expr $ac_mid + 1` |
| 5304 | if test $ac_lo -le $ac_mid; then |
| 5305 | ac_lo= ac_hi= |
| 5306 | break |
| 5307 | fi |
| 5308 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5309 | fi |
| 5310 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5311 | done |
| 5312 | else |
| 5313 | echo "$as_me: failed program was:" >&5 |
| 5314 | cat conftest.$ac_ext >&5 |
| 5315 | cat >conftest.$ac_ext <<_ACEOF |
| 5316 | #line $LINENO "configure" |
| 5317 | #include "confdefs.h" |
| 5318 | $ac_includes_default |
| 5319 | #ifdef F77_DUMMY_MAIN |
| 5320 | # ifdef __cplusplus |
| 5321 | extern "C" |
| 5322 | # endif |
| 5323 | int F77_DUMMY_MAIN() { return 1; } |
| 5324 | #endif |
| 5325 | int |
| 5326 | main () |
| 5327 | { |
| 5328 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5329 | test_array [0] = 0 |
| 5330 | |
| 5331 | ; |
| 5332 | return 0; |
| 5333 | } |
| 5334 | _ACEOF |
| 5335 | rm -f conftest.$ac_objext |
| 5336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5337 | (eval $ac_compile) 2>&5 |
| 5338 | ac_status=$? |
| 5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5340 | (exit $ac_status); } && |
| 5341 | { ac_try='test -s conftest.$ac_objext' |
| 5342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5343 | (eval $ac_try) 2>&5 |
| 5344 | ac_status=$? |
| 5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5346 | (exit $ac_status); }; }; then |
| 5347 | ac_hi=-1 ac_mid=-1 |
| 5348 | while :; do |
| 5349 | cat >conftest.$ac_ext <<_ACEOF |
| 5350 | #line $LINENO "configure" |
| 5351 | #include "confdefs.h" |
| 5352 | $ac_includes_default |
| 5353 | #ifdef F77_DUMMY_MAIN |
| 5354 | # ifdef __cplusplus |
| 5355 | extern "C" |
| 5356 | # endif |
| 5357 | int F77_DUMMY_MAIN() { return 1; } |
| 5358 | #endif |
| 5359 | int |
| 5360 | main () |
| 5361 | { |
| 5362 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5363 | test_array [0] = 0 |
| 5364 | |
| 5365 | ; |
| 5366 | return 0; |
| 5367 | } |
| 5368 | _ACEOF |
| 5369 | rm -f conftest.$ac_objext |
| 5370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5371 | (eval $ac_compile) 2>&5 |
| 5372 | ac_status=$? |
| 5373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5374 | (exit $ac_status); } && |
| 5375 | { ac_try='test -s conftest.$ac_objext' |
| 5376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5377 | (eval $ac_try) 2>&5 |
| 5378 | ac_status=$? |
| 5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5380 | (exit $ac_status); }; }; then |
| 5381 | ac_lo=$ac_mid; break |
| 5382 | else |
| 5383 | echo "$as_me: failed program was:" >&5 |
| 5384 | cat conftest.$ac_ext >&5 |
| 5385 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5386 | if test $ac_mid -le $ac_hi; then |
| 5387 | ac_lo= ac_hi= |
| 5388 | break |
| 5389 | fi |
| 5390 | ac_mid=`expr 2 '*' $ac_mid` |
| 5391 | fi |
| 5392 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5393 | done |
| 5394 | else |
| 5395 | echo "$as_me: failed program was:" >&5 |
| 5396 | cat conftest.$ac_ext >&5 |
| 5397 | ac_lo= ac_hi= |
| 5398 | fi |
| 5399 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5400 | fi |
| 5401 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5402 | # Binary search between lo and hi bounds. |
| 5403 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5404 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5405 | cat >conftest.$ac_ext <<_ACEOF |
| 5406 | #line $LINENO "configure" |
| 5407 | #include "confdefs.h" |
| 5408 | $ac_includes_default |
| 5409 | #ifdef F77_DUMMY_MAIN |
| 5410 | # ifdef __cplusplus |
| 5411 | extern "C" |
| 5412 | # endif |
| 5413 | int F77_DUMMY_MAIN() { return 1; } |
| 5414 | #endif |
| 5415 | int |
| 5416 | main () |
| 5417 | { |
| 5418 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5419 | test_array [0] = 0 |
| 5420 | |
| 5421 | ; |
| 5422 | return 0; |
| 5423 | } |
| 5424 | _ACEOF |
| 5425 | rm -f conftest.$ac_objext |
| 5426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5427 | (eval $ac_compile) 2>&5 |
| 5428 | ac_status=$? |
| 5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5430 | (exit $ac_status); } && |
| 5431 | { ac_try='test -s conftest.$ac_objext' |
| 5432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5433 | (eval $ac_try) 2>&5 |
| 5434 | ac_status=$? |
| 5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5436 | (exit $ac_status); }; }; then |
| 5437 | ac_hi=$ac_mid |
| 5438 | else |
| 5439 | echo "$as_me: failed program was:" >&5 |
| 5440 | cat conftest.$ac_ext >&5 |
| 5441 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5442 | fi |
| 5443 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5444 | done |
| 5445 | case $ac_lo in |
| 5446 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5447 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5448 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5449 | { (exit 1); exit 1; }; } ;; |
| 5450 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5451 | else |
| 5452 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5453 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5454 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5455 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5457 | cat >conftest.$ac_ext <<_ACEOF |
| 5458 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5459 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5460 | $ac_includes_default |
| 5461 | long longval () { return (long) (sizeof (int)); } |
| 5462 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5463 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5464 | #include <stdlib.h> |
| 5465 | #ifdef F77_DUMMY_MAIN |
| 5466 | # ifdef __cplusplus |
| 5467 | extern "C" |
| 5468 | # endif |
| 5469 | int F77_DUMMY_MAIN() { return 1; } |
| 5470 | #endif |
| 5471 | int |
| 5472 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5473 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5474 | |
| 5475 | FILE *f = fopen ("conftest.val", "w"); |
| 5476 | if (! f) |
| 5477 | exit (1); |
| 5478 | if (((long) (sizeof (int))) < 0) |
| 5479 | { |
| 5480 | long i = longval (); |
| 5481 | if (i != ((long) (sizeof (int)))) |
| 5482 | exit (1); |
| 5483 | fprintf (f, "%ld\n", i); |
| 5484 | } |
| 5485 | else |
| 5486 | { |
| 5487 | unsigned long i = ulongval (); |
| 5488 | if (i != ((long) (sizeof (int)))) |
| 5489 | exit (1); |
| 5490 | fprintf (f, "%lu\n", i); |
| 5491 | } |
| 5492 | exit (ferror (f) || fclose (f) != 0); |
| 5493 | |
| 5494 | ; |
| 5495 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5496 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5497 | _ACEOF |
| 5498 | rm -f conftest$ac_exeext |
| 5499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5500 | (eval $ac_link) 2>&5 |
| 5501 | ac_status=$? |
| 5502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5503 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5505 | (eval $ac_try) 2>&5 |
| 5506 | ac_status=$? |
| 5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5508 | (exit $ac_status); }; }; then |
| 5509 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5511 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5512 | echo "$as_me: failed program was:" >&5 |
| 5513 | cat conftest.$ac_ext >&5 |
| 5514 | ( exit $ac_status ) |
| 5515 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5516 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5517 | { (exit 1); exit 1; }; } |
| 5518 | fi |
| 5519 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5520 | fi |
| 5521 | fi |
| 5522 | rm -f conftest.val |
| 5523 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5524 | ac_cv_sizeof_int=0 |
| 5525 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5527 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5528 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5529 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5530 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5531 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5532 | |
| 5533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5534 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5535 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5536 | if test "${ac_cv_type_long+set}" = set; then |
| 5537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5538 | else |
| 5539 | cat >conftest.$ac_ext <<_ACEOF |
| 5540 | #line $LINENO "configure" |
| 5541 | #include "confdefs.h" |
| 5542 | $ac_includes_default |
| 5543 | #ifdef F77_DUMMY_MAIN |
| 5544 | # ifdef __cplusplus |
| 5545 | extern "C" |
| 5546 | # endif |
| 5547 | int F77_DUMMY_MAIN() { return 1; } |
| 5548 | #endif |
| 5549 | int |
| 5550 | main () |
| 5551 | { |
| 5552 | if ((long *) 0) |
| 5553 | return 0; |
| 5554 | if (sizeof (long)) |
| 5555 | return 0; |
| 5556 | ; |
| 5557 | return 0; |
| 5558 | } |
| 5559 | _ACEOF |
| 5560 | rm -f conftest.$ac_objext |
| 5561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5562 | (eval $ac_compile) 2>&5 |
| 5563 | ac_status=$? |
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5565 | (exit $ac_status); } && |
| 5566 | { ac_try='test -s conftest.$ac_objext' |
| 5567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5568 | (eval $ac_try) 2>&5 |
| 5569 | ac_status=$? |
| 5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5571 | (exit $ac_status); }; }; then |
| 5572 | ac_cv_type_long=yes |
| 5573 | else |
| 5574 | echo "$as_me: failed program was:" >&5 |
| 5575 | cat conftest.$ac_ext >&5 |
| 5576 | ac_cv_type_long=no |
| 5577 | fi |
| 5578 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5579 | fi |
| 5580 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5581 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5582 | |
| 5583 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5584 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5585 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5587 | else |
| 5588 | if test "$ac_cv_type_long" = yes; then |
| 5589 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5590 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5591 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5592 | # This bug is HP SR number 8606223364. |
| 5593 | if test "$cross_compiling" = yes; then |
| 5594 | # Depending upon the size, compute the lo and hi bounds. |
| 5595 | cat >conftest.$ac_ext <<_ACEOF |
| 5596 | #line $LINENO "configure" |
| 5597 | #include "confdefs.h" |
| 5598 | $ac_includes_default |
| 5599 | #ifdef F77_DUMMY_MAIN |
| 5600 | # ifdef __cplusplus |
| 5601 | extern "C" |
| 5602 | # endif |
| 5603 | int F77_DUMMY_MAIN() { return 1; } |
| 5604 | #endif |
| 5605 | int |
| 5606 | main () |
| 5607 | { |
| 5608 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5609 | test_array [0] = 0 |
| 5610 | |
| 5611 | ; |
| 5612 | return 0; |
| 5613 | } |
| 5614 | _ACEOF |
| 5615 | rm -f conftest.$ac_objext |
| 5616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5617 | (eval $ac_compile) 2>&5 |
| 5618 | ac_status=$? |
| 5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5620 | (exit $ac_status); } && |
| 5621 | { ac_try='test -s conftest.$ac_objext' |
| 5622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5623 | (eval $ac_try) 2>&5 |
| 5624 | ac_status=$? |
| 5625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5626 | (exit $ac_status); }; }; then |
| 5627 | ac_lo=0 ac_mid=0 |
| 5628 | while :; do |
| 5629 | cat >conftest.$ac_ext <<_ACEOF |
| 5630 | #line $LINENO "configure" |
| 5631 | #include "confdefs.h" |
| 5632 | $ac_includes_default |
| 5633 | #ifdef F77_DUMMY_MAIN |
| 5634 | # ifdef __cplusplus |
| 5635 | extern "C" |
| 5636 | # endif |
| 5637 | int F77_DUMMY_MAIN() { return 1; } |
| 5638 | #endif |
| 5639 | int |
| 5640 | main () |
| 5641 | { |
| 5642 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5643 | test_array [0] = 0 |
| 5644 | |
| 5645 | ; |
| 5646 | return 0; |
| 5647 | } |
| 5648 | _ACEOF |
| 5649 | rm -f conftest.$ac_objext |
| 5650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5651 | (eval $ac_compile) 2>&5 |
| 5652 | ac_status=$? |
| 5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5654 | (exit $ac_status); } && |
| 5655 | { ac_try='test -s conftest.$ac_objext' |
| 5656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5657 | (eval $ac_try) 2>&5 |
| 5658 | ac_status=$? |
| 5659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5660 | (exit $ac_status); }; }; then |
| 5661 | ac_hi=$ac_mid; break |
| 5662 | else |
| 5663 | echo "$as_me: failed program was:" >&5 |
| 5664 | cat conftest.$ac_ext >&5 |
| 5665 | ac_lo=`expr $ac_mid + 1` |
| 5666 | if test $ac_lo -le $ac_mid; then |
| 5667 | ac_lo= ac_hi= |
| 5668 | break |
| 5669 | fi |
| 5670 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5671 | fi |
| 5672 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5673 | done |
| 5674 | else |
| 5675 | echo "$as_me: failed program was:" >&5 |
| 5676 | cat conftest.$ac_ext >&5 |
| 5677 | cat >conftest.$ac_ext <<_ACEOF |
| 5678 | #line $LINENO "configure" |
| 5679 | #include "confdefs.h" |
| 5680 | $ac_includes_default |
| 5681 | #ifdef F77_DUMMY_MAIN |
| 5682 | # ifdef __cplusplus |
| 5683 | extern "C" |
| 5684 | # endif |
| 5685 | int F77_DUMMY_MAIN() { return 1; } |
| 5686 | #endif |
| 5687 | int |
| 5688 | main () |
| 5689 | { |
| 5690 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5691 | test_array [0] = 0 |
| 5692 | |
| 5693 | ; |
| 5694 | return 0; |
| 5695 | } |
| 5696 | _ACEOF |
| 5697 | rm -f conftest.$ac_objext |
| 5698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5699 | (eval $ac_compile) 2>&5 |
| 5700 | ac_status=$? |
| 5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5702 | (exit $ac_status); } && |
| 5703 | { ac_try='test -s conftest.$ac_objext' |
| 5704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5705 | (eval $ac_try) 2>&5 |
| 5706 | ac_status=$? |
| 5707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5708 | (exit $ac_status); }; }; then |
| 5709 | ac_hi=-1 ac_mid=-1 |
| 5710 | while :; do |
| 5711 | cat >conftest.$ac_ext <<_ACEOF |
| 5712 | #line $LINENO "configure" |
| 5713 | #include "confdefs.h" |
| 5714 | $ac_includes_default |
| 5715 | #ifdef F77_DUMMY_MAIN |
| 5716 | # ifdef __cplusplus |
| 5717 | extern "C" |
| 5718 | # endif |
| 5719 | int F77_DUMMY_MAIN() { return 1; } |
| 5720 | #endif |
| 5721 | int |
| 5722 | main () |
| 5723 | { |
| 5724 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5725 | test_array [0] = 0 |
| 5726 | |
| 5727 | ; |
| 5728 | return 0; |
| 5729 | } |
| 5730 | _ACEOF |
| 5731 | rm -f conftest.$ac_objext |
| 5732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5733 | (eval $ac_compile) 2>&5 |
| 5734 | ac_status=$? |
| 5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5736 | (exit $ac_status); } && |
| 5737 | { ac_try='test -s conftest.$ac_objext' |
| 5738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5739 | (eval $ac_try) 2>&5 |
| 5740 | ac_status=$? |
| 5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5742 | (exit $ac_status); }; }; then |
| 5743 | ac_lo=$ac_mid; break |
| 5744 | else |
| 5745 | echo "$as_me: failed program was:" >&5 |
| 5746 | cat conftest.$ac_ext >&5 |
| 5747 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5748 | if test $ac_mid -le $ac_hi; then |
| 5749 | ac_lo= ac_hi= |
| 5750 | break |
| 5751 | fi |
| 5752 | ac_mid=`expr 2 '*' $ac_mid` |
| 5753 | fi |
| 5754 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5755 | done |
| 5756 | else |
| 5757 | echo "$as_me: failed program was:" >&5 |
| 5758 | cat conftest.$ac_ext >&5 |
| 5759 | ac_lo= ac_hi= |
| 5760 | fi |
| 5761 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5762 | fi |
| 5763 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5764 | # Binary search between lo and hi bounds. |
| 5765 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5766 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5767 | cat >conftest.$ac_ext <<_ACEOF |
| 5768 | #line $LINENO "configure" |
| 5769 | #include "confdefs.h" |
| 5770 | $ac_includes_default |
| 5771 | #ifdef F77_DUMMY_MAIN |
| 5772 | # ifdef __cplusplus |
| 5773 | extern "C" |
| 5774 | # endif |
| 5775 | int F77_DUMMY_MAIN() { return 1; } |
| 5776 | #endif |
| 5777 | int |
| 5778 | main () |
| 5779 | { |
| 5780 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5781 | test_array [0] = 0 |
| 5782 | |
| 5783 | ; |
| 5784 | return 0; |
| 5785 | } |
| 5786 | _ACEOF |
| 5787 | rm -f conftest.$ac_objext |
| 5788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5789 | (eval $ac_compile) 2>&5 |
| 5790 | ac_status=$? |
| 5791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5792 | (exit $ac_status); } && |
| 5793 | { ac_try='test -s conftest.$ac_objext' |
| 5794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5795 | (eval $ac_try) 2>&5 |
| 5796 | ac_status=$? |
| 5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5798 | (exit $ac_status); }; }; then |
| 5799 | ac_hi=$ac_mid |
| 5800 | else |
| 5801 | echo "$as_me: failed program was:" >&5 |
| 5802 | cat conftest.$ac_ext >&5 |
| 5803 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5804 | fi |
| 5805 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5806 | done |
| 5807 | case $ac_lo in |
| 5808 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5809 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5810 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5811 | { (exit 1); exit 1; }; } ;; |
| 5812 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5813 | else |
| 5814 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5815 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5816 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5817 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5818 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5819 | cat >conftest.$ac_ext <<_ACEOF |
| 5820 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5821 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5822 | $ac_includes_default |
| 5823 | long longval () { return (long) (sizeof (long)); } |
| 5824 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5825 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5826 | #include <stdlib.h> |
| 5827 | #ifdef F77_DUMMY_MAIN |
| 5828 | # ifdef __cplusplus |
| 5829 | extern "C" |
| 5830 | # endif |
| 5831 | int F77_DUMMY_MAIN() { return 1; } |
| 5832 | #endif |
| 5833 | int |
| 5834 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5835 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5836 | |
| 5837 | FILE *f = fopen ("conftest.val", "w"); |
| 5838 | if (! f) |
| 5839 | exit (1); |
| 5840 | if (((long) (sizeof (long))) < 0) |
| 5841 | { |
| 5842 | long i = longval (); |
| 5843 | if (i != ((long) (sizeof (long)))) |
| 5844 | exit (1); |
| 5845 | fprintf (f, "%ld\n", i); |
| 5846 | } |
| 5847 | else |
| 5848 | { |
| 5849 | unsigned long i = ulongval (); |
| 5850 | if (i != ((long) (sizeof (long)))) |
| 5851 | exit (1); |
| 5852 | fprintf (f, "%lu\n", i); |
| 5853 | } |
| 5854 | exit (ferror (f) || fclose (f) != 0); |
| 5855 | |
| 5856 | ; |
| 5857 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5858 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5859 | _ACEOF |
| 5860 | rm -f conftest$ac_exeext |
| 5861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5862 | (eval $ac_link) 2>&5 |
| 5863 | ac_status=$? |
| 5864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5865 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5867 | (eval $ac_try) 2>&5 |
| 5868 | ac_status=$? |
| 5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5870 | (exit $ac_status); }; }; then |
| 5871 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5873 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5874 | echo "$as_me: failed program was:" >&5 |
| 5875 | cat conftest.$ac_ext >&5 |
| 5876 | ( exit $ac_status ) |
| 5877 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5878 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5879 | { (exit 1); exit 1; }; } |
| 5880 | fi |
| 5881 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5882 | fi |
| 5883 | fi |
| 5884 | rm -f conftest.val |
| 5885 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5886 | ac_cv_sizeof_long=0 |
| 5887 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5888 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5889 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5890 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5891 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5892 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5893 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5894 | |
| 5895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5896 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5897 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5898 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5900 | else |
| 5901 | cat >conftest.$ac_ext <<_ACEOF |
| 5902 | #line $LINENO "configure" |
| 5903 | #include "confdefs.h" |
| 5904 | $ac_includes_default |
| 5905 | #ifdef F77_DUMMY_MAIN |
| 5906 | # ifdef __cplusplus |
| 5907 | extern "C" |
| 5908 | # endif |
| 5909 | int F77_DUMMY_MAIN() { return 1; } |
| 5910 | #endif |
| 5911 | int |
| 5912 | main () |
| 5913 | { |
| 5914 | if ((void * *) 0) |
| 5915 | return 0; |
| 5916 | if (sizeof (void *)) |
| 5917 | return 0; |
| 5918 | ; |
| 5919 | return 0; |
| 5920 | } |
| 5921 | _ACEOF |
| 5922 | rm -f conftest.$ac_objext |
| 5923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5924 | (eval $ac_compile) 2>&5 |
| 5925 | ac_status=$? |
| 5926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5927 | (exit $ac_status); } && |
| 5928 | { ac_try='test -s conftest.$ac_objext' |
| 5929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5930 | (eval $ac_try) 2>&5 |
| 5931 | ac_status=$? |
| 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5933 | (exit $ac_status); }; }; then |
| 5934 | ac_cv_type_void_p=yes |
| 5935 | else |
| 5936 | echo "$as_me: failed program was:" >&5 |
| 5937 | cat conftest.$ac_ext >&5 |
| 5938 | ac_cv_type_void_p=no |
| 5939 | fi |
| 5940 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5941 | fi |
| 5942 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5943 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5944 | |
| 5945 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5946 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5947 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5949 | else |
| 5950 | if test "$ac_cv_type_void_p" = yes; then |
| 5951 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5952 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5953 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5954 | # This bug is HP SR number 8606223364. |
| 5955 | if test "$cross_compiling" = yes; then |
| 5956 | # Depending upon the size, compute the lo and hi bounds. |
| 5957 | cat >conftest.$ac_ext <<_ACEOF |
| 5958 | #line $LINENO "configure" |
| 5959 | #include "confdefs.h" |
| 5960 | $ac_includes_default |
| 5961 | #ifdef F77_DUMMY_MAIN |
| 5962 | # ifdef __cplusplus |
| 5963 | extern "C" |
| 5964 | # endif |
| 5965 | int F77_DUMMY_MAIN() { return 1; } |
| 5966 | #endif |
| 5967 | int |
| 5968 | main () |
| 5969 | { |
| 5970 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5971 | test_array [0] = 0 |
| 5972 | |
| 5973 | ; |
| 5974 | return 0; |
| 5975 | } |
| 5976 | _ACEOF |
| 5977 | rm -f conftest.$ac_objext |
| 5978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5979 | (eval $ac_compile) 2>&5 |
| 5980 | ac_status=$? |
| 5981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5982 | (exit $ac_status); } && |
| 5983 | { ac_try='test -s conftest.$ac_objext' |
| 5984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5985 | (eval $ac_try) 2>&5 |
| 5986 | ac_status=$? |
| 5987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5988 | (exit $ac_status); }; }; then |
| 5989 | ac_lo=0 ac_mid=0 |
| 5990 | while :; do |
| 5991 | cat >conftest.$ac_ext <<_ACEOF |
| 5992 | #line $LINENO "configure" |
| 5993 | #include "confdefs.h" |
| 5994 | $ac_includes_default |
| 5995 | #ifdef F77_DUMMY_MAIN |
| 5996 | # ifdef __cplusplus |
| 5997 | extern "C" |
| 5998 | # endif |
| 5999 | int F77_DUMMY_MAIN() { return 1; } |
| 6000 | #endif |
| 6001 | int |
| 6002 | main () |
| 6003 | { |
| 6004 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6005 | test_array [0] = 0 |
| 6006 | |
| 6007 | ; |
| 6008 | return 0; |
| 6009 | } |
| 6010 | _ACEOF |
| 6011 | rm -f conftest.$ac_objext |
| 6012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6013 | (eval $ac_compile) 2>&5 |
| 6014 | ac_status=$? |
| 6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6016 | (exit $ac_status); } && |
| 6017 | { ac_try='test -s conftest.$ac_objext' |
| 6018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6019 | (eval $ac_try) 2>&5 |
| 6020 | ac_status=$? |
| 6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6022 | (exit $ac_status); }; }; then |
| 6023 | ac_hi=$ac_mid; break |
| 6024 | else |
| 6025 | echo "$as_me: failed program was:" >&5 |
| 6026 | cat conftest.$ac_ext >&5 |
| 6027 | ac_lo=`expr $ac_mid + 1` |
| 6028 | if test $ac_lo -le $ac_mid; then |
| 6029 | ac_lo= ac_hi= |
| 6030 | break |
| 6031 | fi |
| 6032 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6033 | fi |
| 6034 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6035 | done |
| 6036 | else |
| 6037 | echo "$as_me: failed program was:" >&5 |
| 6038 | cat conftest.$ac_ext >&5 |
| 6039 | cat >conftest.$ac_ext <<_ACEOF |
| 6040 | #line $LINENO "configure" |
| 6041 | #include "confdefs.h" |
| 6042 | $ac_includes_default |
| 6043 | #ifdef F77_DUMMY_MAIN |
| 6044 | # ifdef __cplusplus |
| 6045 | extern "C" |
| 6046 | # endif |
| 6047 | int F77_DUMMY_MAIN() { return 1; } |
| 6048 | #endif |
| 6049 | int |
| 6050 | main () |
| 6051 | { |
| 6052 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6053 | test_array [0] = 0 |
| 6054 | |
| 6055 | ; |
| 6056 | return 0; |
| 6057 | } |
| 6058 | _ACEOF |
| 6059 | rm -f conftest.$ac_objext |
| 6060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6061 | (eval $ac_compile) 2>&5 |
| 6062 | ac_status=$? |
| 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6064 | (exit $ac_status); } && |
| 6065 | { ac_try='test -s conftest.$ac_objext' |
| 6066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6067 | (eval $ac_try) 2>&5 |
| 6068 | ac_status=$? |
| 6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6070 | (exit $ac_status); }; }; then |
| 6071 | ac_hi=-1 ac_mid=-1 |
| 6072 | while :; do |
| 6073 | cat >conftest.$ac_ext <<_ACEOF |
| 6074 | #line $LINENO "configure" |
| 6075 | #include "confdefs.h" |
| 6076 | $ac_includes_default |
| 6077 | #ifdef F77_DUMMY_MAIN |
| 6078 | # ifdef __cplusplus |
| 6079 | extern "C" |
| 6080 | # endif |
| 6081 | int F77_DUMMY_MAIN() { return 1; } |
| 6082 | #endif |
| 6083 | int |
| 6084 | main () |
| 6085 | { |
| 6086 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6087 | test_array [0] = 0 |
| 6088 | |
| 6089 | ; |
| 6090 | return 0; |
| 6091 | } |
| 6092 | _ACEOF |
| 6093 | rm -f conftest.$ac_objext |
| 6094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6095 | (eval $ac_compile) 2>&5 |
| 6096 | ac_status=$? |
| 6097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6098 | (exit $ac_status); } && |
| 6099 | { ac_try='test -s conftest.$ac_objext' |
| 6100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6101 | (eval $ac_try) 2>&5 |
| 6102 | ac_status=$? |
| 6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6104 | (exit $ac_status); }; }; then |
| 6105 | ac_lo=$ac_mid; break |
| 6106 | else |
| 6107 | echo "$as_me: failed program was:" >&5 |
| 6108 | cat conftest.$ac_ext >&5 |
| 6109 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6110 | if test $ac_mid -le $ac_hi; then |
| 6111 | ac_lo= ac_hi= |
| 6112 | break |
| 6113 | fi |
| 6114 | ac_mid=`expr 2 '*' $ac_mid` |
| 6115 | fi |
| 6116 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6117 | done |
| 6118 | else |
| 6119 | echo "$as_me: failed program was:" >&5 |
| 6120 | cat conftest.$ac_ext >&5 |
| 6121 | ac_lo= ac_hi= |
| 6122 | fi |
| 6123 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6124 | fi |
| 6125 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6126 | # Binary search between lo and hi bounds. |
| 6127 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6128 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6129 | cat >conftest.$ac_ext <<_ACEOF |
| 6130 | #line $LINENO "configure" |
| 6131 | #include "confdefs.h" |
| 6132 | $ac_includes_default |
| 6133 | #ifdef F77_DUMMY_MAIN |
| 6134 | # ifdef __cplusplus |
| 6135 | extern "C" |
| 6136 | # endif |
| 6137 | int F77_DUMMY_MAIN() { return 1; } |
| 6138 | #endif |
| 6139 | int |
| 6140 | main () |
| 6141 | { |
| 6142 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6143 | test_array [0] = 0 |
| 6144 | |
| 6145 | ; |
| 6146 | return 0; |
| 6147 | } |
| 6148 | _ACEOF |
| 6149 | rm -f conftest.$ac_objext |
| 6150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6151 | (eval $ac_compile) 2>&5 |
| 6152 | ac_status=$? |
| 6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6154 | (exit $ac_status); } && |
| 6155 | { ac_try='test -s conftest.$ac_objext' |
| 6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6157 | (eval $ac_try) 2>&5 |
| 6158 | ac_status=$? |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); }; }; then |
| 6161 | ac_hi=$ac_mid |
| 6162 | else |
| 6163 | echo "$as_me: failed program was:" >&5 |
| 6164 | cat conftest.$ac_ext >&5 |
| 6165 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6166 | fi |
| 6167 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6168 | done |
| 6169 | case $ac_lo in |
| 6170 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6171 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6172 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6173 | { (exit 1); exit 1; }; } ;; |
| 6174 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6175 | else |
| 6176 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6177 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6178 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6179 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6181 | cat >conftest.$ac_ext <<_ACEOF |
| 6182 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6183 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6184 | $ac_includes_default |
| 6185 | long longval () { return (long) (sizeof (void *)); } |
| 6186 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6187 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6188 | #include <stdlib.h> |
| 6189 | #ifdef F77_DUMMY_MAIN |
| 6190 | # ifdef __cplusplus |
| 6191 | extern "C" |
| 6192 | # endif |
| 6193 | int F77_DUMMY_MAIN() { return 1; } |
| 6194 | #endif |
| 6195 | int |
| 6196 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6197 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6198 | |
| 6199 | FILE *f = fopen ("conftest.val", "w"); |
| 6200 | if (! f) |
| 6201 | exit (1); |
| 6202 | if (((long) (sizeof (void *))) < 0) |
| 6203 | { |
| 6204 | long i = longval (); |
| 6205 | if (i != ((long) (sizeof (void *)))) |
| 6206 | exit (1); |
| 6207 | fprintf (f, "%ld\n", i); |
| 6208 | } |
| 6209 | else |
| 6210 | { |
| 6211 | unsigned long i = ulongval (); |
| 6212 | if (i != ((long) (sizeof (void *)))) |
| 6213 | exit (1); |
| 6214 | fprintf (f, "%lu\n", i); |
| 6215 | } |
| 6216 | exit (ferror (f) || fclose (f) != 0); |
| 6217 | |
| 6218 | ; |
| 6219 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6220 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6221 | _ACEOF |
| 6222 | rm -f conftest$ac_exeext |
| 6223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6224 | (eval $ac_link) 2>&5 |
| 6225 | ac_status=$? |
| 6226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6227 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6229 | (eval $ac_try) 2>&5 |
| 6230 | ac_status=$? |
| 6231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6232 | (exit $ac_status); }; }; then |
| 6233 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6235 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6236 | echo "$as_me: failed program was:" >&5 |
| 6237 | cat conftest.$ac_ext >&5 |
| 6238 | ( exit $ac_status ) |
| 6239 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6240 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6241 | { (exit 1); exit 1; }; } |
| 6242 | fi |
| 6243 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6244 | fi |
| 6245 | fi |
| 6246 | rm -f conftest.val |
| 6247 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6248 | ac_cv_sizeof_void_p=0 |
| 6249 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6250 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6251 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6252 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6253 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6254 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6255 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6256 | |
| 6257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6258 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6259 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6260 | if test "${ac_cv_type_char+set}" = set; then |
| 6261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6262 | else |
| 6263 | cat >conftest.$ac_ext <<_ACEOF |
| 6264 | #line $LINENO "configure" |
| 6265 | #include "confdefs.h" |
| 6266 | $ac_includes_default |
| 6267 | #ifdef F77_DUMMY_MAIN |
| 6268 | # ifdef __cplusplus |
| 6269 | extern "C" |
| 6270 | # endif |
| 6271 | int F77_DUMMY_MAIN() { return 1; } |
| 6272 | #endif |
| 6273 | int |
| 6274 | main () |
| 6275 | { |
| 6276 | if ((char *) 0) |
| 6277 | return 0; |
| 6278 | if (sizeof (char)) |
| 6279 | return 0; |
| 6280 | ; |
| 6281 | return 0; |
| 6282 | } |
| 6283 | _ACEOF |
| 6284 | rm -f conftest.$ac_objext |
| 6285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6286 | (eval $ac_compile) 2>&5 |
| 6287 | ac_status=$? |
| 6288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6289 | (exit $ac_status); } && |
| 6290 | { ac_try='test -s conftest.$ac_objext' |
| 6291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6292 | (eval $ac_try) 2>&5 |
| 6293 | ac_status=$? |
| 6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6295 | (exit $ac_status); }; }; then |
| 6296 | ac_cv_type_char=yes |
| 6297 | else |
| 6298 | echo "$as_me: failed program was:" >&5 |
| 6299 | cat conftest.$ac_ext >&5 |
| 6300 | ac_cv_type_char=no |
| 6301 | fi |
| 6302 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6303 | fi |
| 6304 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6305 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6306 | |
| 6307 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6308 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6309 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6311 | else |
| 6312 | if test "$ac_cv_type_char" = yes; then |
| 6313 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6314 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6315 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6316 | # This bug is HP SR number 8606223364. |
| 6317 | if test "$cross_compiling" = yes; then |
| 6318 | # Depending upon the size, compute the lo and hi bounds. |
| 6319 | cat >conftest.$ac_ext <<_ACEOF |
| 6320 | #line $LINENO "configure" |
| 6321 | #include "confdefs.h" |
| 6322 | $ac_includes_default |
| 6323 | #ifdef F77_DUMMY_MAIN |
| 6324 | # ifdef __cplusplus |
| 6325 | extern "C" |
| 6326 | # endif |
| 6327 | int F77_DUMMY_MAIN() { return 1; } |
| 6328 | #endif |
| 6329 | int |
| 6330 | main () |
| 6331 | { |
| 6332 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6333 | test_array [0] = 0 |
| 6334 | |
| 6335 | ; |
| 6336 | return 0; |
| 6337 | } |
| 6338 | _ACEOF |
| 6339 | rm -f conftest.$ac_objext |
| 6340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6341 | (eval $ac_compile) 2>&5 |
| 6342 | ac_status=$? |
| 6343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6344 | (exit $ac_status); } && |
| 6345 | { ac_try='test -s conftest.$ac_objext' |
| 6346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6347 | (eval $ac_try) 2>&5 |
| 6348 | ac_status=$? |
| 6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6350 | (exit $ac_status); }; }; then |
| 6351 | ac_lo=0 ac_mid=0 |
| 6352 | while :; do |
| 6353 | cat >conftest.$ac_ext <<_ACEOF |
| 6354 | #line $LINENO "configure" |
| 6355 | #include "confdefs.h" |
| 6356 | $ac_includes_default |
| 6357 | #ifdef F77_DUMMY_MAIN |
| 6358 | # ifdef __cplusplus |
| 6359 | extern "C" |
| 6360 | # endif |
| 6361 | int F77_DUMMY_MAIN() { return 1; } |
| 6362 | #endif |
| 6363 | int |
| 6364 | main () |
| 6365 | { |
| 6366 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6367 | test_array [0] = 0 |
| 6368 | |
| 6369 | ; |
| 6370 | return 0; |
| 6371 | } |
| 6372 | _ACEOF |
| 6373 | rm -f conftest.$ac_objext |
| 6374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6375 | (eval $ac_compile) 2>&5 |
| 6376 | ac_status=$? |
| 6377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6378 | (exit $ac_status); } && |
| 6379 | { ac_try='test -s conftest.$ac_objext' |
| 6380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6381 | (eval $ac_try) 2>&5 |
| 6382 | ac_status=$? |
| 6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6384 | (exit $ac_status); }; }; then |
| 6385 | ac_hi=$ac_mid; break |
| 6386 | else |
| 6387 | echo "$as_me: failed program was:" >&5 |
| 6388 | cat conftest.$ac_ext >&5 |
| 6389 | ac_lo=`expr $ac_mid + 1` |
| 6390 | if test $ac_lo -le $ac_mid; then |
| 6391 | ac_lo= ac_hi= |
| 6392 | break |
| 6393 | fi |
| 6394 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6395 | fi |
| 6396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6397 | done |
| 6398 | else |
| 6399 | echo "$as_me: failed program was:" >&5 |
| 6400 | cat conftest.$ac_ext >&5 |
| 6401 | cat >conftest.$ac_ext <<_ACEOF |
| 6402 | #line $LINENO "configure" |
| 6403 | #include "confdefs.h" |
| 6404 | $ac_includes_default |
| 6405 | #ifdef F77_DUMMY_MAIN |
| 6406 | # ifdef __cplusplus |
| 6407 | extern "C" |
| 6408 | # endif |
| 6409 | int F77_DUMMY_MAIN() { return 1; } |
| 6410 | #endif |
| 6411 | int |
| 6412 | main () |
| 6413 | { |
| 6414 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6415 | test_array [0] = 0 |
| 6416 | |
| 6417 | ; |
| 6418 | return 0; |
| 6419 | } |
| 6420 | _ACEOF |
| 6421 | rm -f conftest.$ac_objext |
| 6422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6423 | (eval $ac_compile) 2>&5 |
| 6424 | ac_status=$? |
| 6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6426 | (exit $ac_status); } && |
| 6427 | { ac_try='test -s conftest.$ac_objext' |
| 6428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6429 | (eval $ac_try) 2>&5 |
| 6430 | ac_status=$? |
| 6431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6432 | (exit $ac_status); }; }; then |
| 6433 | ac_hi=-1 ac_mid=-1 |
| 6434 | while :; do |
| 6435 | cat >conftest.$ac_ext <<_ACEOF |
| 6436 | #line $LINENO "configure" |
| 6437 | #include "confdefs.h" |
| 6438 | $ac_includes_default |
| 6439 | #ifdef F77_DUMMY_MAIN |
| 6440 | # ifdef __cplusplus |
| 6441 | extern "C" |
| 6442 | # endif |
| 6443 | int F77_DUMMY_MAIN() { return 1; } |
| 6444 | #endif |
| 6445 | int |
| 6446 | main () |
| 6447 | { |
| 6448 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6449 | test_array [0] = 0 |
| 6450 | |
| 6451 | ; |
| 6452 | return 0; |
| 6453 | } |
| 6454 | _ACEOF |
| 6455 | rm -f conftest.$ac_objext |
| 6456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6457 | (eval $ac_compile) 2>&5 |
| 6458 | ac_status=$? |
| 6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6460 | (exit $ac_status); } && |
| 6461 | { ac_try='test -s conftest.$ac_objext' |
| 6462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6463 | (eval $ac_try) 2>&5 |
| 6464 | ac_status=$? |
| 6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6466 | (exit $ac_status); }; }; then |
| 6467 | ac_lo=$ac_mid; break |
| 6468 | else |
| 6469 | echo "$as_me: failed program was:" >&5 |
| 6470 | cat conftest.$ac_ext >&5 |
| 6471 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6472 | if test $ac_mid -le $ac_hi; then |
| 6473 | ac_lo= ac_hi= |
| 6474 | break |
| 6475 | fi |
| 6476 | ac_mid=`expr 2 '*' $ac_mid` |
| 6477 | fi |
| 6478 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6479 | done |
| 6480 | else |
| 6481 | echo "$as_me: failed program was:" >&5 |
| 6482 | cat conftest.$ac_ext >&5 |
| 6483 | ac_lo= ac_hi= |
| 6484 | fi |
| 6485 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6486 | fi |
| 6487 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6488 | # Binary search between lo and hi bounds. |
| 6489 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6490 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6491 | cat >conftest.$ac_ext <<_ACEOF |
| 6492 | #line $LINENO "configure" |
| 6493 | #include "confdefs.h" |
| 6494 | $ac_includes_default |
| 6495 | #ifdef F77_DUMMY_MAIN |
| 6496 | # ifdef __cplusplus |
| 6497 | extern "C" |
| 6498 | # endif |
| 6499 | int F77_DUMMY_MAIN() { return 1; } |
| 6500 | #endif |
| 6501 | int |
| 6502 | main () |
| 6503 | { |
| 6504 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6505 | test_array [0] = 0 |
| 6506 | |
| 6507 | ; |
| 6508 | return 0; |
| 6509 | } |
| 6510 | _ACEOF |
| 6511 | rm -f conftest.$ac_objext |
| 6512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6513 | (eval $ac_compile) 2>&5 |
| 6514 | ac_status=$? |
| 6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6516 | (exit $ac_status); } && |
| 6517 | { ac_try='test -s conftest.$ac_objext' |
| 6518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6519 | (eval $ac_try) 2>&5 |
| 6520 | ac_status=$? |
| 6521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6522 | (exit $ac_status); }; }; then |
| 6523 | ac_hi=$ac_mid |
| 6524 | else |
| 6525 | echo "$as_me: failed program was:" >&5 |
| 6526 | cat conftest.$ac_ext >&5 |
| 6527 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6528 | fi |
| 6529 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6530 | done |
| 6531 | case $ac_lo in |
| 6532 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6533 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6534 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6535 | { (exit 1); exit 1; }; } ;; |
| 6536 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6537 | else |
| 6538 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6539 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6540 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6541 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6543 | cat >conftest.$ac_ext <<_ACEOF |
| 6544 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6545 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6546 | $ac_includes_default |
| 6547 | long longval () { return (long) (sizeof (char)); } |
| 6548 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6549 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6550 | #include <stdlib.h> |
| 6551 | #ifdef F77_DUMMY_MAIN |
| 6552 | # ifdef __cplusplus |
| 6553 | extern "C" |
| 6554 | # endif |
| 6555 | int F77_DUMMY_MAIN() { return 1; } |
| 6556 | #endif |
| 6557 | int |
| 6558 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6559 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6560 | |
| 6561 | FILE *f = fopen ("conftest.val", "w"); |
| 6562 | if (! f) |
| 6563 | exit (1); |
| 6564 | if (((long) (sizeof (char))) < 0) |
| 6565 | { |
| 6566 | long i = longval (); |
| 6567 | if (i != ((long) (sizeof (char)))) |
| 6568 | exit (1); |
| 6569 | fprintf (f, "%ld\n", i); |
| 6570 | } |
| 6571 | else |
| 6572 | { |
| 6573 | unsigned long i = ulongval (); |
| 6574 | if (i != ((long) (sizeof (char)))) |
| 6575 | exit (1); |
| 6576 | fprintf (f, "%lu\n", i); |
| 6577 | } |
| 6578 | exit (ferror (f) || fclose (f) != 0); |
| 6579 | |
| 6580 | ; |
| 6581 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6582 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6583 | _ACEOF |
| 6584 | rm -f conftest$ac_exeext |
| 6585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6586 | (eval $ac_link) 2>&5 |
| 6587 | ac_status=$? |
| 6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6589 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6591 | (eval $ac_try) 2>&5 |
| 6592 | ac_status=$? |
| 6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6594 | (exit $ac_status); }; }; then |
| 6595 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6597 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6598 | echo "$as_me: failed program was:" >&5 |
| 6599 | cat conftest.$ac_ext >&5 |
| 6600 | ( exit $ac_status ) |
| 6601 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6602 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6603 | { (exit 1); exit 1; }; } |
| 6604 | fi |
| 6605 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6606 | fi |
| 6607 | fi |
| 6608 | rm -f conftest.val |
| 6609 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6610 | ac_cv_sizeof_char=0 |
| 6611 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6612 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6613 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6614 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6615 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6616 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6618 | |
| 6619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6621 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6622 | if test "${ac_cv_type_short+set}" = set; then |
| 6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6624 | else |
| 6625 | cat >conftest.$ac_ext <<_ACEOF |
| 6626 | #line $LINENO "configure" |
| 6627 | #include "confdefs.h" |
| 6628 | $ac_includes_default |
| 6629 | #ifdef F77_DUMMY_MAIN |
| 6630 | # ifdef __cplusplus |
| 6631 | extern "C" |
| 6632 | # endif |
| 6633 | int F77_DUMMY_MAIN() { return 1; } |
| 6634 | #endif |
| 6635 | int |
| 6636 | main () |
| 6637 | { |
| 6638 | if ((short *) 0) |
| 6639 | return 0; |
| 6640 | if (sizeof (short)) |
| 6641 | return 0; |
| 6642 | ; |
| 6643 | return 0; |
| 6644 | } |
| 6645 | _ACEOF |
| 6646 | rm -f conftest.$ac_objext |
| 6647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6648 | (eval $ac_compile) 2>&5 |
| 6649 | ac_status=$? |
| 6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6651 | (exit $ac_status); } && |
| 6652 | { ac_try='test -s conftest.$ac_objext' |
| 6653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6654 | (eval $ac_try) 2>&5 |
| 6655 | ac_status=$? |
| 6656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6657 | (exit $ac_status); }; }; then |
| 6658 | ac_cv_type_short=yes |
| 6659 | else |
| 6660 | echo "$as_me: failed program was:" >&5 |
| 6661 | cat conftest.$ac_ext >&5 |
| 6662 | ac_cv_type_short=no |
| 6663 | fi |
| 6664 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6665 | fi |
| 6666 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6667 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6668 | |
| 6669 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6670 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6671 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6673 | else |
| 6674 | if test "$ac_cv_type_short" = yes; then |
| 6675 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6676 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6677 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6678 | # This bug is HP SR number 8606223364. |
| 6679 | if test "$cross_compiling" = yes; then |
| 6680 | # Depending upon the size, compute the lo and hi bounds. |
| 6681 | cat >conftest.$ac_ext <<_ACEOF |
| 6682 | #line $LINENO "configure" |
| 6683 | #include "confdefs.h" |
| 6684 | $ac_includes_default |
| 6685 | #ifdef F77_DUMMY_MAIN |
| 6686 | # ifdef __cplusplus |
| 6687 | extern "C" |
| 6688 | # endif |
| 6689 | int F77_DUMMY_MAIN() { return 1; } |
| 6690 | #endif |
| 6691 | int |
| 6692 | main () |
| 6693 | { |
| 6694 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6695 | test_array [0] = 0 |
| 6696 | |
| 6697 | ; |
| 6698 | return 0; |
| 6699 | } |
| 6700 | _ACEOF |
| 6701 | rm -f conftest.$ac_objext |
| 6702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6703 | (eval $ac_compile) 2>&5 |
| 6704 | ac_status=$? |
| 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6706 | (exit $ac_status); } && |
| 6707 | { ac_try='test -s conftest.$ac_objext' |
| 6708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6709 | (eval $ac_try) 2>&5 |
| 6710 | ac_status=$? |
| 6711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6712 | (exit $ac_status); }; }; then |
| 6713 | ac_lo=0 ac_mid=0 |
| 6714 | while :; do |
| 6715 | cat >conftest.$ac_ext <<_ACEOF |
| 6716 | #line $LINENO "configure" |
| 6717 | #include "confdefs.h" |
| 6718 | $ac_includes_default |
| 6719 | #ifdef F77_DUMMY_MAIN |
| 6720 | # ifdef __cplusplus |
| 6721 | extern "C" |
| 6722 | # endif |
| 6723 | int F77_DUMMY_MAIN() { return 1; } |
| 6724 | #endif |
| 6725 | int |
| 6726 | main () |
| 6727 | { |
| 6728 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6729 | test_array [0] = 0 |
| 6730 | |
| 6731 | ; |
| 6732 | return 0; |
| 6733 | } |
| 6734 | _ACEOF |
| 6735 | rm -f conftest.$ac_objext |
| 6736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6737 | (eval $ac_compile) 2>&5 |
| 6738 | ac_status=$? |
| 6739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6740 | (exit $ac_status); } && |
| 6741 | { ac_try='test -s conftest.$ac_objext' |
| 6742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6743 | (eval $ac_try) 2>&5 |
| 6744 | ac_status=$? |
| 6745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6746 | (exit $ac_status); }; }; then |
| 6747 | ac_hi=$ac_mid; break |
| 6748 | else |
| 6749 | echo "$as_me: failed program was:" >&5 |
| 6750 | cat conftest.$ac_ext >&5 |
| 6751 | ac_lo=`expr $ac_mid + 1` |
| 6752 | if test $ac_lo -le $ac_mid; then |
| 6753 | ac_lo= ac_hi= |
| 6754 | break |
| 6755 | fi |
| 6756 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6757 | fi |
| 6758 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6759 | done |
| 6760 | else |
| 6761 | echo "$as_me: failed program was:" >&5 |
| 6762 | cat conftest.$ac_ext >&5 |
| 6763 | cat >conftest.$ac_ext <<_ACEOF |
| 6764 | #line $LINENO "configure" |
| 6765 | #include "confdefs.h" |
| 6766 | $ac_includes_default |
| 6767 | #ifdef F77_DUMMY_MAIN |
| 6768 | # ifdef __cplusplus |
| 6769 | extern "C" |
| 6770 | # endif |
| 6771 | int F77_DUMMY_MAIN() { return 1; } |
| 6772 | #endif |
| 6773 | int |
| 6774 | main () |
| 6775 | { |
| 6776 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6777 | test_array [0] = 0 |
| 6778 | |
| 6779 | ; |
| 6780 | return 0; |
| 6781 | } |
| 6782 | _ACEOF |
| 6783 | rm -f conftest.$ac_objext |
| 6784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6785 | (eval $ac_compile) 2>&5 |
| 6786 | ac_status=$? |
| 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6788 | (exit $ac_status); } && |
| 6789 | { ac_try='test -s conftest.$ac_objext' |
| 6790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6791 | (eval $ac_try) 2>&5 |
| 6792 | ac_status=$? |
| 6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6794 | (exit $ac_status); }; }; then |
| 6795 | ac_hi=-1 ac_mid=-1 |
| 6796 | while :; do |
| 6797 | cat >conftest.$ac_ext <<_ACEOF |
| 6798 | #line $LINENO "configure" |
| 6799 | #include "confdefs.h" |
| 6800 | $ac_includes_default |
| 6801 | #ifdef F77_DUMMY_MAIN |
| 6802 | # ifdef __cplusplus |
| 6803 | extern "C" |
| 6804 | # endif |
| 6805 | int F77_DUMMY_MAIN() { return 1; } |
| 6806 | #endif |
| 6807 | int |
| 6808 | main () |
| 6809 | { |
| 6810 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6811 | test_array [0] = 0 |
| 6812 | |
| 6813 | ; |
| 6814 | return 0; |
| 6815 | } |
| 6816 | _ACEOF |
| 6817 | rm -f conftest.$ac_objext |
| 6818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6819 | (eval $ac_compile) 2>&5 |
| 6820 | ac_status=$? |
| 6821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6822 | (exit $ac_status); } && |
| 6823 | { ac_try='test -s conftest.$ac_objext' |
| 6824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6825 | (eval $ac_try) 2>&5 |
| 6826 | ac_status=$? |
| 6827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6828 | (exit $ac_status); }; }; then |
| 6829 | ac_lo=$ac_mid; break |
| 6830 | else |
| 6831 | echo "$as_me: failed program was:" >&5 |
| 6832 | cat conftest.$ac_ext >&5 |
| 6833 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6834 | if test $ac_mid -le $ac_hi; then |
| 6835 | ac_lo= ac_hi= |
| 6836 | break |
| 6837 | fi |
| 6838 | ac_mid=`expr 2 '*' $ac_mid` |
| 6839 | fi |
| 6840 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6841 | done |
| 6842 | else |
| 6843 | echo "$as_me: failed program was:" >&5 |
| 6844 | cat conftest.$ac_ext >&5 |
| 6845 | ac_lo= ac_hi= |
| 6846 | fi |
| 6847 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6848 | fi |
| 6849 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6850 | # Binary search between lo and hi bounds. |
| 6851 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6852 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6853 | cat >conftest.$ac_ext <<_ACEOF |
| 6854 | #line $LINENO "configure" |
| 6855 | #include "confdefs.h" |
| 6856 | $ac_includes_default |
| 6857 | #ifdef F77_DUMMY_MAIN |
| 6858 | # ifdef __cplusplus |
| 6859 | extern "C" |
| 6860 | # endif |
| 6861 | int F77_DUMMY_MAIN() { return 1; } |
| 6862 | #endif |
| 6863 | int |
| 6864 | main () |
| 6865 | { |
| 6866 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6867 | test_array [0] = 0 |
| 6868 | |
| 6869 | ; |
| 6870 | return 0; |
| 6871 | } |
| 6872 | _ACEOF |
| 6873 | rm -f conftest.$ac_objext |
| 6874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6875 | (eval $ac_compile) 2>&5 |
| 6876 | ac_status=$? |
| 6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6878 | (exit $ac_status); } && |
| 6879 | { ac_try='test -s conftest.$ac_objext' |
| 6880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6881 | (eval $ac_try) 2>&5 |
| 6882 | ac_status=$? |
| 6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6884 | (exit $ac_status); }; }; then |
| 6885 | ac_hi=$ac_mid |
| 6886 | else |
| 6887 | echo "$as_me: failed program was:" >&5 |
| 6888 | cat conftest.$ac_ext >&5 |
| 6889 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6890 | fi |
| 6891 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6892 | done |
| 6893 | case $ac_lo in |
| 6894 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6895 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6896 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6897 | { (exit 1); exit 1; }; } ;; |
| 6898 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6899 | else |
| 6900 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6901 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6902 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6903 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6904 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6905 | cat >conftest.$ac_ext <<_ACEOF |
| 6906 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6907 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6908 | $ac_includes_default |
| 6909 | long longval () { return (long) (sizeof (short)); } |
| 6910 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6911 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 | #include <stdlib.h> |
| 6913 | #ifdef F77_DUMMY_MAIN |
| 6914 | # ifdef __cplusplus |
| 6915 | extern "C" |
| 6916 | # endif |
| 6917 | int F77_DUMMY_MAIN() { return 1; } |
| 6918 | #endif |
| 6919 | int |
| 6920 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6921 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6922 | |
| 6923 | FILE *f = fopen ("conftest.val", "w"); |
| 6924 | if (! f) |
| 6925 | exit (1); |
| 6926 | if (((long) (sizeof (short))) < 0) |
| 6927 | { |
| 6928 | long i = longval (); |
| 6929 | if (i != ((long) (sizeof (short)))) |
| 6930 | exit (1); |
| 6931 | fprintf (f, "%ld\n", i); |
| 6932 | } |
| 6933 | else |
| 6934 | { |
| 6935 | unsigned long i = ulongval (); |
| 6936 | if (i != ((long) (sizeof (short)))) |
| 6937 | exit (1); |
| 6938 | fprintf (f, "%lu\n", i); |
| 6939 | } |
| 6940 | exit (ferror (f) || fclose (f) != 0); |
| 6941 | |
| 6942 | ; |
| 6943 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6944 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6945 | _ACEOF |
| 6946 | rm -f conftest$ac_exeext |
| 6947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6948 | (eval $ac_link) 2>&5 |
| 6949 | ac_status=$? |
| 6950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6953 | (eval $ac_try) 2>&5 |
| 6954 | ac_status=$? |
| 6955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6956 | (exit $ac_status); }; }; then |
| 6957 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6959 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6960 | echo "$as_me: failed program was:" >&5 |
| 6961 | cat conftest.$ac_ext >&5 |
| 6962 | ( exit $ac_status ) |
| 6963 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6964 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6965 | { (exit 1); exit 1; }; } |
| 6966 | fi |
| 6967 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6968 | fi |
| 6969 | fi |
| 6970 | rm -f conftest.val |
| 6971 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6972 | ac_cv_sizeof_short=0 |
| 6973 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6974 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6975 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6976 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6977 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6978 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6979 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6980 | |
| 6981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6982 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6983 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6984 | if test "${ac_cv_type_float+set}" = set; then |
| 6985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6986 | else |
| 6987 | cat >conftest.$ac_ext <<_ACEOF |
| 6988 | #line $LINENO "configure" |
| 6989 | #include "confdefs.h" |
| 6990 | $ac_includes_default |
| 6991 | #ifdef F77_DUMMY_MAIN |
| 6992 | # ifdef __cplusplus |
| 6993 | extern "C" |
| 6994 | # endif |
| 6995 | int F77_DUMMY_MAIN() { return 1; } |
| 6996 | #endif |
| 6997 | int |
| 6998 | main () |
| 6999 | { |
| 7000 | if ((float *) 0) |
| 7001 | return 0; |
| 7002 | if (sizeof (float)) |
| 7003 | return 0; |
| 7004 | ; |
| 7005 | return 0; |
| 7006 | } |
| 7007 | _ACEOF |
| 7008 | rm -f conftest.$ac_objext |
| 7009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7010 | (eval $ac_compile) 2>&5 |
| 7011 | ac_status=$? |
| 7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7013 | (exit $ac_status); } && |
| 7014 | { ac_try='test -s conftest.$ac_objext' |
| 7015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7016 | (eval $ac_try) 2>&5 |
| 7017 | ac_status=$? |
| 7018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7019 | (exit $ac_status); }; }; then |
| 7020 | ac_cv_type_float=yes |
| 7021 | else |
| 7022 | echo "$as_me: failed program was:" >&5 |
| 7023 | cat conftest.$ac_ext >&5 |
| 7024 | ac_cv_type_float=no |
| 7025 | fi |
| 7026 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7027 | fi |
| 7028 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7029 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7030 | |
| 7031 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7032 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7033 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7035 | else |
| 7036 | if test "$ac_cv_type_float" = yes; then |
| 7037 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7038 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7039 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7040 | # This bug is HP SR number 8606223364. |
| 7041 | if test "$cross_compiling" = yes; then |
| 7042 | # Depending upon the size, compute the lo and hi bounds. |
| 7043 | cat >conftest.$ac_ext <<_ACEOF |
| 7044 | #line $LINENO "configure" |
| 7045 | #include "confdefs.h" |
| 7046 | $ac_includes_default |
| 7047 | #ifdef F77_DUMMY_MAIN |
| 7048 | # ifdef __cplusplus |
| 7049 | extern "C" |
| 7050 | # endif |
| 7051 | int F77_DUMMY_MAIN() { return 1; } |
| 7052 | #endif |
| 7053 | int |
| 7054 | main () |
| 7055 | { |
| 7056 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7057 | test_array [0] = 0 |
| 7058 | |
| 7059 | ; |
| 7060 | return 0; |
| 7061 | } |
| 7062 | _ACEOF |
| 7063 | rm -f conftest.$ac_objext |
| 7064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7065 | (eval $ac_compile) 2>&5 |
| 7066 | ac_status=$? |
| 7067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7068 | (exit $ac_status); } && |
| 7069 | { ac_try='test -s conftest.$ac_objext' |
| 7070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7071 | (eval $ac_try) 2>&5 |
| 7072 | ac_status=$? |
| 7073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7074 | (exit $ac_status); }; }; then |
| 7075 | ac_lo=0 ac_mid=0 |
| 7076 | while :; do |
| 7077 | cat >conftest.$ac_ext <<_ACEOF |
| 7078 | #line $LINENO "configure" |
| 7079 | #include "confdefs.h" |
| 7080 | $ac_includes_default |
| 7081 | #ifdef F77_DUMMY_MAIN |
| 7082 | # ifdef __cplusplus |
| 7083 | extern "C" |
| 7084 | # endif |
| 7085 | int F77_DUMMY_MAIN() { return 1; } |
| 7086 | #endif |
| 7087 | int |
| 7088 | main () |
| 7089 | { |
| 7090 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7091 | test_array [0] = 0 |
| 7092 | |
| 7093 | ; |
| 7094 | return 0; |
| 7095 | } |
| 7096 | _ACEOF |
| 7097 | rm -f conftest.$ac_objext |
| 7098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7099 | (eval $ac_compile) 2>&5 |
| 7100 | ac_status=$? |
| 7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7102 | (exit $ac_status); } && |
| 7103 | { ac_try='test -s conftest.$ac_objext' |
| 7104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7105 | (eval $ac_try) 2>&5 |
| 7106 | ac_status=$? |
| 7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7108 | (exit $ac_status); }; }; then |
| 7109 | ac_hi=$ac_mid; break |
| 7110 | else |
| 7111 | echo "$as_me: failed program was:" >&5 |
| 7112 | cat conftest.$ac_ext >&5 |
| 7113 | ac_lo=`expr $ac_mid + 1` |
| 7114 | if test $ac_lo -le $ac_mid; then |
| 7115 | ac_lo= ac_hi= |
| 7116 | break |
| 7117 | fi |
| 7118 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7119 | fi |
| 7120 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7121 | done |
| 7122 | else |
| 7123 | echo "$as_me: failed program was:" >&5 |
| 7124 | cat conftest.$ac_ext >&5 |
| 7125 | cat >conftest.$ac_ext <<_ACEOF |
| 7126 | #line $LINENO "configure" |
| 7127 | #include "confdefs.h" |
| 7128 | $ac_includes_default |
| 7129 | #ifdef F77_DUMMY_MAIN |
| 7130 | # ifdef __cplusplus |
| 7131 | extern "C" |
| 7132 | # endif |
| 7133 | int F77_DUMMY_MAIN() { return 1; } |
| 7134 | #endif |
| 7135 | int |
| 7136 | main () |
| 7137 | { |
| 7138 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7139 | test_array [0] = 0 |
| 7140 | |
| 7141 | ; |
| 7142 | return 0; |
| 7143 | } |
| 7144 | _ACEOF |
| 7145 | rm -f conftest.$ac_objext |
| 7146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7147 | (eval $ac_compile) 2>&5 |
| 7148 | ac_status=$? |
| 7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7150 | (exit $ac_status); } && |
| 7151 | { ac_try='test -s conftest.$ac_objext' |
| 7152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7153 | (eval $ac_try) 2>&5 |
| 7154 | ac_status=$? |
| 7155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7156 | (exit $ac_status); }; }; then |
| 7157 | ac_hi=-1 ac_mid=-1 |
| 7158 | while :; do |
| 7159 | cat >conftest.$ac_ext <<_ACEOF |
| 7160 | #line $LINENO "configure" |
| 7161 | #include "confdefs.h" |
| 7162 | $ac_includes_default |
| 7163 | #ifdef F77_DUMMY_MAIN |
| 7164 | # ifdef __cplusplus |
| 7165 | extern "C" |
| 7166 | # endif |
| 7167 | int F77_DUMMY_MAIN() { return 1; } |
| 7168 | #endif |
| 7169 | int |
| 7170 | main () |
| 7171 | { |
| 7172 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7173 | test_array [0] = 0 |
| 7174 | |
| 7175 | ; |
| 7176 | return 0; |
| 7177 | } |
| 7178 | _ACEOF |
| 7179 | rm -f conftest.$ac_objext |
| 7180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7181 | (eval $ac_compile) 2>&5 |
| 7182 | ac_status=$? |
| 7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7184 | (exit $ac_status); } && |
| 7185 | { ac_try='test -s conftest.$ac_objext' |
| 7186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7187 | (eval $ac_try) 2>&5 |
| 7188 | ac_status=$? |
| 7189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7190 | (exit $ac_status); }; }; then |
| 7191 | ac_lo=$ac_mid; break |
| 7192 | else |
| 7193 | echo "$as_me: failed program was:" >&5 |
| 7194 | cat conftest.$ac_ext >&5 |
| 7195 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7196 | if test $ac_mid -le $ac_hi; then |
| 7197 | ac_lo= ac_hi= |
| 7198 | break |
| 7199 | fi |
| 7200 | ac_mid=`expr 2 '*' $ac_mid` |
| 7201 | fi |
| 7202 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7203 | done |
| 7204 | else |
| 7205 | echo "$as_me: failed program was:" >&5 |
| 7206 | cat conftest.$ac_ext >&5 |
| 7207 | ac_lo= ac_hi= |
| 7208 | fi |
| 7209 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7210 | fi |
| 7211 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7212 | # Binary search between lo and hi bounds. |
| 7213 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7214 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7215 | cat >conftest.$ac_ext <<_ACEOF |
| 7216 | #line $LINENO "configure" |
| 7217 | #include "confdefs.h" |
| 7218 | $ac_includes_default |
| 7219 | #ifdef F77_DUMMY_MAIN |
| 7220 | # ifdef __cplusplus |
| 7221 | extern "C" |
| 7222 | # endif |
| 7223 | int F77_DUMMY_MAIN() { return 1; } |
| 7224 | #endif |
| 7225 | int |
| 7226 | main () |
| 7227 | { |
| 7228 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7229 | test_array [0] = 0 |
| 7230 | |
| 7231 | ; |
| 7232 | return 0; |
| 7233 | } |
| 7234 | _ACEOF |
| 7235 | rm -f conftest.$ac_objext |
| 7236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7237 | (eval $ac_compile) 2>&5 |
| 7238 | ac_status=$? |
| 7239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7240 | (exit $ac_status); } && |
| 7241 | { ac_try='test -s conftest.$ac_objext' |
| 7242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7243 | (eval $ac_try) 2>&5 |
| 7244 | ac_status=$? |
| 7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7246 | (exit $ac_status); }; }; then |
| 7247 | ac_hi=$ac_mid |
| 7248 | else |
| 7249 | echo "$as_me: failed program was:" >&5 |
| 7250 | cat conftest.$ac_ext >&5 |
| 7251 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7252 | fi |
| 7253 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7254 | done |
| 7255 | case $ac_lo in |
| 7256 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7257 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7258 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7259 | { (exit 1); exit 1; }; } ;; |
| 7260 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7261 | else |
| 7262 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7263 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7264 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7265 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7267 | cat >conftest.$ac_ext <<_ACEOF |
| 7268 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7269 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7270 | $ac_includes_default |
| 7271 | long longval () { return (long) (sizeof (float)); } |
| 7272 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7273 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7274 | #include <stdlib.h> |
| 7275 | #ifdef F77_DUMMY_MAIN |
| 7276 | # ifdef __cplusplus |
| 7277 | extern "C" |
| 7278 | # endif |
| 7279 | int F77_DUMMY_MAIN() { return 1; } |
| 7280 | #endif |
| 7281 | int |
| 7282 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7283 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7284 | |
| 7285 | FILE *f = fopen ("conftest.val", "w"); |
| 7286 | if (! f) |
| 7287 | exit (1); |
| 7288 | if (((long) (sizeof (float))) < 0) |
| 7289 | { |
| 7290 | long i = longval (); |
| 7291 | if (i != ((long) (sizeof (float)))) |
| 7292 | exit (1); |
| 7293 | fprintf (f, "%ld\n", i); |
| 7294 | } |
| 7295 | else |
| 7296 | { |
| 7297 | unsigned long i = ulongval (); |
| 7298 | if (i != ((long) (sizeof (float)))) |
| 7299 | exit (1); |
| 7300 | fprintf (f, "%lu\n", i); |
| 7301 | } |
| 7302 | exit (ferror (f) || fclose (f) != 0); |
| 7303 | |
| 7304 | ; |
| 7305 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7306 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7307 | _ACEOF |
| 7308 | rm -f conftest$ac_exeext |
| 7309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7310 | (eval $ac_link) 2>&5 |
| 7311 | ac_status=$? |
| 7312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7315 | (eval $ac_try) 2>&5 |
| 7316 | ac_status=$? |
| 7317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7318 | (exit $ac_status); }; }; then |
| 7319 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7321 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7322 | echo "$as_me: failed program was:" >&5 |
| 7323 | cat conftest.$ac_ext >&5 |
| 7324 | ( exit $ac_status ) |
| 7325 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7326 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7327 | { (exit 1); exit 1; }; } |
| 7328 | fi |
| 7329 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7330 | fi |
| 7331 | fi |
| 7332 | rm -f conftest.val |
| 7333 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7334 | ac_cv_sizeof_float=0 |
| 7335 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7336 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7337 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7338 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7339 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7340 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7341 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7342 | |
| 7343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7345 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7346 | if test "${ac_cv_type_double+set}" = set; then |
| 7347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7348 | else |
| 7349 | cat >conftest.$ac_ext <<_ACEOF |
| 7350 | #line $LINENO "configure" |
| 7351 | #include "confdefs.h" |
| 7352 | $ac_includes_default |
| 7353 | #ifdef F77_DUMMY_MAIN |
| 7354 | # ifdef __cplusplus |
| 7355 | extern "C" |
| 7356 | # endif |
| 7357 | int F77_DUMMY_MAIN() { return 1; } |
| 7358 | #endif |
| 7359 | int |
| 7360 | main () |
| 7361 | { |
| 7362 | if ((double *) 0) |
| 7363 | return 0; |
| 7364 | if (sizeof (double)) |
| 7365 | return 0; |
| 7366 | ; |
| 7367 | return 0; |
| 7368 | } |
| 7369 | _ACEOF |
| 7370 | rm -f conftest.$ac_objext |
| 7371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7372 | (eval $ac_compile) 2>&5 |
| 7373 | ac_status=$? |
| 7374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7375 | (exit $ac_status); } && |
| 7376 | { ac_try='test -s conftest.$ac_objext' |
| 7377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7378 | (eval $ac_try) 2>&5 |
| 7379 | ac_status=$? |
| 7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7381 | (exit $ac_status); }; }; then |
| 7382 | ac_cv_type_double=yes |
| 7383 | else |
| 7384 | echo "$as_me: failed program was:" >&5 |
| 7385 | cat conftest.$ac_ext >&5 |
| 7386 | ac_cv_type_double=no |
| 7387 | fi |
| 7388 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7389 | fi |
| 7390 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7391 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7392 | |
| 7393 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7394 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7395 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7397 | else |
| 7398 | if test "$ac_cv_type_double" = yes; then |
| 7399 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7400 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7401 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7402 | # This bug is HP SR number 8606223364. |
| 7403 | if test "$cross_compiling" = yes; then |
| 7404 | # Depending upon the size, compute the lo and hi bounds. |
| 7405 | cat >conftest.$ac_ext <<_ACEOF |
| 7406 | #line $LINENO "configure" |
| 7407 | #include "confdefs.h" |
| 7408 | $ac_includes_default |
| 7409 | #ifdef F77_DUMMY_MAIN |
| 7410 | # ifdef __cplusplus |
| 7411 | extern "C" |
| 7412 | # endif |
| 7413 | int F77_DUMMY_MAIN() { return 1; } |
| 7414 | #endif |
| 7415 | int |
| 7416 | main () |
| 7417 | { |
| 7418 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7419 | test_array [0] = 0 |
| 7420 | |
| 7421 | ; |
| 7422 | return 0; |
| 7423 | } |
| 7424 | _ACEOF |
| 7425 | rm -f conftest.$ac_objext |
| 7426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7427 | (eval $ac_compile) 2>&5 |
| 7428 | ac_status=$? |
| 7429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7430 | (exit $ac_status); } && |
| 7431 | { ac_try='test -s conftest.$ac_objext' |
| 7432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7433 | (eval $ac_try) 2>&5 |
| 7434 | ac_status=$? |
| 7435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7436 | (exit $ac_status); }; }; then |
| 7437 | ac_lo=0 ac_mid=0 |
| 7438 | while :; do |
| 7439 | cat >conftest.$ac_ext <<_ACEOF |
| 7440 | #line $LINENO "configure" |
| 7441 | #include "confdefs.h" |
| 7442 | $ac_includes_default |
| 7443 | #ifdef F77_DUMMY_MAIN |
| 7444 | # ifdef __cplusplus |
| 7445 | extern "C" |
| 7446 | # endif |
| 7447 | int F77_DUMMY_MAIN() { return 1; } |
| 7448 | #endif |
| 7449 | int |
| 7450 | main () |
| 7451 | { |
| 7452 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7453 | test_array [0] = 0 |
| 7454 | |
| 7455 | ; |
| 7456 | return 0; |
| 7457 | } |
| 7458 | _ACEOF |
| 7459 | rm -f conftest.$ac_objext |
| 7460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7461 | (eval $ac_compile) 2>&5 |
| 7462 | ac_status=$? |
| 7463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7464 | (exit $ac_status); } && |
| 7465 | { ac_try='test -s conftest.$ac_objext' |
| 7466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7467 | (eval $ac_try) 2>&5 |
| 7468 | ac_status=$? |
| 7469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7470 | (exit $ac_status); }; }; then |
| 7471 | ac_hi=$ac_mid; break |
| 7472 | else |
| 7473 | echo "$as_me: failed program was:" >&5 |
| 7474 | cat conftest.$ac_ext >&5 |
| 7475 | ac_lo=`expr $ac_mid + 1` |
| 7476 | if test $ac_lo -le $ac_mid; then |
| 7477 | ac_lo= ac_hi= |
| 7478 | break |
| 7479 | fi |
| 7480 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7481 | fi |
| 7482 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7483 | done |
| 7484 | else |
| 7485 | echo "$as_me: failed program was:" >&5 |
| 7486 | cat conftest.$ac_ext >&5 |
| 7487 | cat >conftest.$ac_ext <<_ACEOF |
| 7488 | #line $LINENO "configure" |
| 7489 | #include "confdefs.h" |
| 7490 | $ac_includes_default |
| 7491 | #ifdef F77_DUMMY_MAIN |
| 7492 | # ifdef __cplusplus |
| 7493 | extern "C" |
| 7494 | # endif |
| 7495 | int F77_DUMMY_MAIN() { return 1; } |
| 7496 | #endif |
| 7497 | int |
| 7498 | main () |
| 7499 | { |
| 7500 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7501 | test_array [0] = 0 |
| 7502 | |
| 7503 | ; |
| 7504 | return 0; |
| 7505 | } |
| 7506 | _ACEOF |
| 7507 | rm -f conftest.$ac_objext |
| 7508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7509 | (eval $ac_compile) 2>&5 |
| 7510 | ac_status=$? |
| 7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7512 | (exit $ac_status); } && |
| 7513 | { ac_try='test -s conftest.$ac_objext' |
| 7514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7515 | (eval $ac_try) 2>&5 |
| 7516 | ac_status=$? |
| 7517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7518 | (exit $ac_status); }; }; then |
| 7519 | ac_hi=-1 ac_mid=-1 |
| 7520 | while :; do |
| 7521 | cat >conftest.$ac_ext <<_ACEOF |
| 7522 | #line $LINENO "configure" |
| 7523 | #include "confdefs.h" |
| 7524 | $ac_includes_default |
| 7525 | #ifdef F77_DUMMY_MAIN |
| 7526 | # ifdef __cplusplus |
| 7527 | extern "C" |
| 7528 | # endif |
| 7529 | int F77_DUMMY_MAIN() { return 1; } |
| 7530 | #endif |
| 7531 | int |
| 7532 | main () |
| 7533 | { |
| 7534 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7535 | test_array [0] = 0 |
| 7536 | |
| 7537 | ; |
| 7538 | return 0; |
| 7539 | } |
| 7540 | _ACEOF |
| 7541 | rm -f conftest.$ac_objext |
| 7542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7543 | (eval $ac_compile) 2>&5 |
| 7544 | ac_status=$? |
| 7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7546 | (exit $ac_status); } && |
| 7547 | { ac_try='test -s conftest.$ac_objext' |
| 7548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7549 | (eval $ac_try) 2>&5 |
| 7550 | ac_status=$? |
| 7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7552 | (exit $ac_status); }; }; then |
| 7553 | ac_lo=$ac_mid; break |
| 7554 | else |
| 7555 | echo "$as_me: failed program was:" >&5 |
| 7556 | cat conftest.$ac_ext >&5 |
| 7557 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7558 | if test $ac_mid -le $ac_hi; then |
| 7559 | ac_lo= ac_hi= |
| 7560 | break |
| 7561 | fi |
| 7562 | ac_mid=`expr 2 '*' $ac_mid` |
| 7563 | fi |
| 7564 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7565 | done |
| 7566 | else |
| 7567 | echo "$as_me: failed program was:" >&5 |
| 7568 | cat conftest.$ac_ext >&5 |
| 7569 | ac_lo= ac_hi= |
| 7570 | fi |
| 7571 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7572 | fi |
| 7573 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7574 | # Binary search between lo and hi bounds. |
| 7575 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7576 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7577 | cat >conftest.$ac_ext <<_ACEOF |
| 7578 | #line $LINENO "configure" |
| 7579 | #include "confdefs.h" |
| 7580 | $ac_includes_default |
| 7581 | #ifdef F77_DUMMY_MAIN |
| 7582 | # ifdef __cplusplus |
| 7583 | extern "C" |
| 7584 | # endif |
| 7585 | int F77_DUMMY_MAIN() { return 1; } |
| 7586 | #endif |
| 7587 | int |
| 7588 | main () |
| 7589 | { |
| 7590 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7591 | test_array [0] = 0 |
| 7592 | |
| 7593 | ; |
| 7594 | return 0; |
| 7595 | } |
| 7596 | _ACEOF |
| 7597 | rm -f conftest.$ac_objext |
| 7598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7599 | (eval $ac_compile) 2>&5 |
| 7600 | ac_status=$? |
| 7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7602 | (exit $ac_status); } && |
| 7603 | { ac_try='test -s conftest.$ac_objext' |
| 7604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7605 | (eval $ac_try) 2>&5 |
| 7606 | ac_status=$? |
| 7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7608 | (exit $ac_status); }; }; then |
| 7609 | ac_hi=$ac_mid |
| 7610 | else |
| 7611 | echo "$as_me: failed program was:" >&5 |
| 7612 | cat conftest.$ac_ext >&5 |
| 7613 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7614 | fi |
| 7615 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7616 | done |
| 7617 | case $ac_lo in |
| 7618 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7619 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7620 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7621 | { (exit 1); exit 1; }; } ;; |
| 7622 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7623 | else |
| 7624 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7625 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7626 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7627 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | cat >conftest.$ac_ext <<_ACEOF |
| 7630 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7631 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7632 | $ac_includes_default |
| 7633 | long longval () { return (long) (sizeof (double)); } |
| 7634 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7635 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | #include <stdlib.h> |
| 7637 | #ifdef F77_DUMMY_MAIN |
| 7638 | # ifdef __cplusplus |
| 7639 | extern "C" |
| 7640 | # endif |
| 7641 | int F77_DUMMY_MAIN() { return 1; } |
| 7642 | #endif |
| 7643 | int |
| 7644 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7645 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | |
| 7647 | FILE *f = fopen ("conftest.val", "w"); |
| 7648 | if (! f) |
| 7649 | exit (1); |
| 7650 | if (((long) (sizeof (double))) < 0) |
| 7651 | { |
| 7652 | long i = longval (); |
| 7653 | if (i != ((long) (sizeof (double)))) |
| 7654 | exit (1); |
| 7655 | fprintf (f, "%ld\n", i); |
| 7656 | } |
| 7657 | else |
| 7658 | { |
| 7659 | unsigned long i = ulongval (); |
| 7660 | if (i != ((long) (sizeof (double)))) |
| 7661 | exit (1); |
| 7662 | fprintf (f, "%lu\n", i); |
| 7663 | } |
| 7664 | exit (ferror (f) || fclose (f) != 0); |
| 7665 | |
| 7666 | ; |
| 7667 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7668 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7669 | _ACEOF |
| 7670 | rm -f conftest$ac_exeext |
| 7671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7672 | (eval $ac_link) 2>&5 |
| 7673 | ac_status=$? |
| 7674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7677 | (eval $ac_try) 2>&5 |
| 7678 | ac_status=$? |
| 7679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7680 | (exit $ac_status); }; }; then |
| 7681 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7682 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7683 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7684 | echo "$as_me: failed program was:" >&5 |
| 7685 | cat conftest.$ac_ext >&5 |
| 7686 | ( exit $ac_status ) |
| 7687 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7688 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7689 | { (exit 1); exit 1; }; } |
| 7690 | fi |
| 7691 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7692 | fi |
| 7693 | fi |
| 7694 | rm -f conftest.val |
| 7695 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7696 | ac_cv_sizeof_double=0 |
| 7697 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7699 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7700 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7701 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7702 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7703 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7704 | |
| 7705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7707 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7708 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7710 | else |
| 7711 | cat >conftest.$ac_ext <<_ACEOF |
| 7712 | #line $LINENO "configure" |
| 7713 | #include "confdefs.h" |
| 7714 | $ac_includes_default |
| 7715 | #ifdef F77_DUMMY_MAIN |
| 7716 | # ifdef __cplusplus |
| 7717 | extern "C" |
| 7718 | # endif |
| 7719 | int F77_DUMMY_MAIN() { return 1; } |
| 7720 | #endif |
| 7721 | int |
| 7722 | main () |
| 7723 | { |
| 7724 | if ((fpos_t *) 0) |
| 7725 | return 0; |
| 7726 | if (sizeof (fpos_t)) |
| 7727 | return 0; |
| 7728 | ; |
| 7729 | return 0; |
| 7730 | } |
| 7731 | _ACEOF |
| 7732 | rm -f conftest.$ac_objext |
| 7733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7734 | (eval $ac_compile) 2>&5 |
| 7735 | ac_status=$? |
| 7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7737 | (exit $ac_status); } && |
| 7738 | { ac_try='test -s conftest.$ac_objext' |
| 7739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7740 | (eval $ac_try) 2>&5 |
| 7741 | ac_status=$? |
| 7742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7743 | (exit $ac_status); }; }; then |
| 7744 | ac_cv_type_fpos_t=yes |
| 7745 | else |
| 7746 | echo "$as_me: failed program was:" >&5 |
| 7747 | cat conftest.$ac_ext >&5 |
| 7748 | ac_cv_type_fpos_t=no |
| 7749 | fi |
| 7750 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7751 | fi |
| 7752 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7753 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7754 | |
| 7755 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7756 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7757 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7759 | else |
| 7760 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7761 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7762 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7763 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7764 | # This bug is HP SR number 8606223364. |
| 7765 | if test "$cross_compiling" = yes; then |
| 7766 | # Depending upon the size, compute the lo and hi bounds. |
| 7767 | cat >conftest.$ac_ext <<_ACEOF |
| 7768 | #line $LINENO "configure" |
| 7769 | #include "confdefs.h" |
| 7770 | $ac_includes_default |
| 7771 | #ifdef F77_DUMMY_MAIN |
| 7772 | # ifdef __cplusplus |
| 7773 | extern "C" |
| 7774 | # endif |
| 7775 | int F77_DUMMY_MAIN() { return 1; } |
| 7776 | #endif |
| 7777 | int |
| 7778 | main () |
| 7779 | { |
| 7780 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7781 | test_array [0] = 0 |
| 7782 | |
| 7783 | ; |
| 7784 | return 0; |
| 7785 | } |
| 7786 | _ACEOF |
| 7787 | rm -f conftest.$ac_objext |
| 7788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7789 | (eval $ac_compile) 2>&5 |
| 7790 | ac_status=$? |
| 7791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7792 | (exit $ac_status); } && |
| 7793 | { ac_try='test -s conftest.$ac_objext' |
| 7794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7795 | (eval $ac_try) 2>&5 |
| 7796 | ac_status=$? |
| 7797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7798 | (exit $ac_status); }; }; then |
| 7799 | ac_lo=0 ac_mid=0 |
| 7800 | while :; do |
| 7801 | cat >conftest.$ac_ext <<_ACEOF |
| 7802 | #line $LINENO "configure" |
| 7803 | #include "confdefs.h" |
| 7804 | $ac_includes_default |
| 7805 | #ifdef F77_DUMMY_MAIN |
| 7806 | # ifdef __cplusplus |
| 7807 | extern "C" |
| 7808 | # endif |
| 7809 | int F77_DUMMY_MAIN() { return 1; } |
| 7810 | #endif |
| 7811 | int |
| 7812 | main () |
| 7813 | { |
| 7814 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7815 | test_array [0] = 0 |
| 7816 | |
| 7817 | ; |
| 7818 | return 0; |
| 7819 | } |
| 7820 | _ACEOF |
| 7821 | rm -f conftest.$ac_objext |
| 7822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7823 | (eval $ac_compile) 2>&5 |
| 7824 | ac_status=$? |
| 7825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7826 | (exit $ac_status); } && |
| 7827 | { ac_try='test -s conftest.$ac_objext' |
| 7828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7829 | (eval $ac_try) 2>&5 |
| 7830 | ac_status=$? |
| 7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7832 | (exit $ac_status); }; }; then |
| 7833 | ac_hi=$ac_mid; break |
| 7834 | else |
| 7835 | echo "$as_me: failed program was:" >&5 |
| 7836 | cat conftest.$ac_ext >&5 |
| 7837 | ac_lo=`expr $ac_mid + 1` |
| 7838 | if test $ac_lo -le $ac_mid; then |
| 7839 | ac_lo= ac_hi= |
| 7840 | break |
| 7841 | fi |
| 7842 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7843 | fi |
| 7844 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7845 | done |
| 7846 | else |
| 7847 | echo "$as_me: failed program was:" >&5 |
| 7848 | cat conftest.$ac_ext >&5 |
| 7849 | cat >conftest.$ac_ext <<_ACEOF |
| 7850 | #line $LINENO "configure" |
| 7851 | #include "confdefs.h" |
| 7852 | $ac_includes_default |
| 7853 | #ifdef F77_DUMMY_MAIN |
| 7854 | # ifdef __cplusplus |
| 7855 | extern "C" |
| 7856 | # endif |
| 7857 | int F77_DUMMY_MAIN() { return 1; } |
| 7858 | #endif |
| 7859 | int |
| 7860 | main () |
| 7861 | { |
| 7862 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7863 | test_array [0] = 0 |
| 7864 | |
| 7865 | ; |
| 7866 | return 0; |
| 7867 | } |
| 7868 | _ACEOF |
| 7869 | rm -f conftest.$ac_objext |
| 7870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7871 | (eval $ac_compile) 2>&5 |
| 7872 | ac_status=$? |
| 7873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7874 | (exit $ac_status); } && |
| 7875 | { ac_try='test -s conftest.$ac_objext' |
| 7876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7877 | (eval $ac_try) 2>&5 |
| 7878 | ac_status=$? |
| 7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7880 | (exit $ac_status); }; }; then |
| 7881 | ac_hi=-1 ac_mid=-1 |
| 7882 | while :; do |
| 7883 | cat >conftest.$ac_ext <<_ACEOF |
| 7884 | #line $LINENO "configure" |
| 7885 | #include "confdefs.h" |
| 7886 | $ac_includes_default |
| 7887 | #ifdef F77_DUMMY_MAIN |
| 7888 | # ifdef __cplusplus |
| 7889 | extern "C" |
| 7890 | # endif |
| 7891 | int F77_DUMMY_MAIN() { return 1; } |
| 7892 | #endif |
| 7893 | int |
| 7894 | main () |
| 7895 | { |
| 7896 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7897 | test_array [0] = 0 |
| 7898 | |
| 7899 | ; |
| 7900 | return 0; |
| 7901 | } |
| 7902 | _ACEOF |
| 7903 | rm -f conftest.$ac_objext |
| 7904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7905 | (eval $ac_compile) 2>&5 |
| 7906 | ac_status=$? |
| 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7908 | (exit $ac_status); } && |
| 7909 | { ac_try='test -s conftest.$ac_objext' |
| 7910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7911 | (eval $ac_try) 2>&5 |
| 7912 | ac_status=$? |
| 7913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7914 | (exit $ac_status); }; }; then |
| 7915 | ac_lo=$ac_mid; break |
| 7916 | else |
| 7917 | echo "$as_me: failed program was:" >&5 |
| 7918 | cat conftest.$ac_ext >&5 |
| 7919 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7920 | if test $ac_mid -le $ac_hi; then |
| 7921 | ac_lo= ac_hi= |
| 7922 | break |
| 7923 | fi |
| 7924 | ac_mid=`expr 2 '*' $ac_mid` |
| 7925 | fi |
| 7926 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7927 | done |
| 7928 | else |
| 7929 | echo "$as_me: failed program was:" >&5 |
| 7930 | cat conftest.$ac_ext >&5 |
| 7931 | ac_lo= ac_hi= |
| 7932 | fi |
| 7933 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7934 | fi |
| 7935 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7936 | # Binary search between lo and hi bounds. |
| 7937 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7938 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7939 | cat >conftest.$ac_ext <<_ACEOF |
| 7940 | #line $LINENO "configure" |
| 7941 | #include "confdefs.h" |
| 7942 | $ac_includes_default |
| 7943 | #ifdef F77_DUMMY_MAIN |
| 7944 | # ifdef __cplusplus |
| 7945 | extern "C" |
| 7946 | # endif |
| 7947 | int F77_DUMMY_MAIN() { return 1; } |
| 7948 | #endif |
| 7949 | int |
| 7950 | main () |
| 7951 | { |
| 7952 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7953 | test_array [0] = 0 |
| 7954 | |
| 7955 | ; |
| 7956 | return 0; |
| 7957 | } |
| 7958 | _ACEOF |
| 7959 | rm -f conftest.$ac_objext |
| 7960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7961 | (eval $ac_compile) 2>&5 |
| 7962 | ac_status=$? |
| 7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7964 | (exit $ac_status); } && |
| 7965 | { ac_try='test -s conftest.$ac_objext' |
| 7966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7967 | (eval $ac_try) 2>&5 |
| 7968 | ac_status=$? |
| 7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7970 | (exit $ac_status); }; }; then |
| 7971 | ac_hi=$ac_mid |
| 7972 | else |
| 7973 | echo "$as_me: failed program was:" >&5 |
| 7974 | cat conftest.$ac_ext >&5 |
| 7975 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7976 | fi |
| 7977 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7978 | done |
| 7979 | case $ac_lo in |
| 7980 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7981 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7982 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7983 | { (exit 1); exit 1; }; } ;; |
| 7984 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7985 | else |
| 7986 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7988 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7989 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7991 | cat >conftest.$ac_ext <<_ACEOF |
| 7992 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7993 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | $ac_includes_default |
| 7995 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7996 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7997 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7998 | #include <stdlib.h> |
| 7999 | #ifdef F77_DUMMY_MAIN |
| 8000 | # ifdef __cplusplus |
| 8001 | extern "C" |
| 8002 | # endif |
| 8003 | int F77_DUMMY_MAIN() { return 1; } |
| 8004 | #endif |
| 8005 | int |
| 8006 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8007 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | |
| 8009 | FILE *f = fopen ("conftest.val", "w"); |
| 8010 | if (! f) |
| 8011 | exit (1); |
| 8012 | if (((long) (sizeof (fpos_t))) < 0) |
| 8013 | { |
| 8014 | long i = longval (); |
| 8015 | if (i != ((long) (sizeof (fpos_t)))) |
| 8016 | exit (1); |
| 8017 | fprintf (f, "%ld\n", i); |
| 8018 | } |
| 8019 | else |
| 8020 | { |
| 8021 | unsigned long i = ulongval (); |
| 8022 | if (i != ((long) (sizeof (fpos_t)))) |
| 8023 | exit (1); |
| 8024 | fprintf (f, "%lu\n", i); |
| 8025 | } |
| 8026 | exit (ferror (f) || fclose (f) != 0); |
| 8027 | |
| 8028 | ; |
| 8029 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8030 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8031 | _ACEOF |
| 8032 | rm -f conftest$ac_exeext |
| 8033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8034 | (eval $ac_link) 2>&5 |
| 8035 | ac_status=$? |
| 8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8039 | (eval $ac_try) 2>&5 |
| 8040 | ac_status=$? |
| 8041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8042 | (exit $ac_status); }; }; then |
| 8043 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8044 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8046 | echo "$as_me: failed program was:" >&5 |
| 8047 | cat conftest.$ac_ext >&5 |
| 8048 | ( exit $ac_status ) |
| 8049 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8050 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8051 | { (exit 1); exit 1; }; } |
| 8052 | fi |
| 8053 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8054 | fi |
| 8055 | fi |
| 8056 | rm -f conftest.val |
| 8057 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8058 | ac_cv_sizeof_fpos_t=0 |
| 8059 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8062 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8063 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8064 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8066 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8067 | |
| 8068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8070 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8071 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8072 | cat >conftest.$ac_ext <<_ACEOF |
| 8073 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8074 | #include "confdefs.h" |
| 8075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8076 | #ifdef F77_DUMMY_MAIN |
| 8077 | # ifdef __cplusplus |
| 8078 | extern "C" |
| 8079 | # endif |
| 8080 | int F77_DUMMY_MAIN() { return 1; } |
| 8081 | #endif |
| 8082 | int |
| 8083 | main () |
| 8084 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8085 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8086 | ; |
| 8087 | return 0; |
| 8088 | } |
| 8089 | _ACEOF |
| 8090 | rm -f conftest.$ac_objext |
| 8091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8092 | (eval $ac_compile) 2>&5 |
| 8093 | ac_status=$? |
| 8094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8095 | (exit $ac_status); } && |
| 8096 | { ac_try='test -s conftest.$ac_objext' |
| 8097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8098 | (eval $ac_try) 2>&5 |
| 8099 | ac_status=$? |
| 8100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8101 | (exit $ac_status); }; }; then |
| 8102 | |
| 8103 | |
| 8104 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8105 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8106 | _ACEOF |
| 8107 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8108 | have_long_long=yes |
| 8109 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8111 | echo "$as_me: failed program was:" >&5 |
| 8112 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8115 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8116 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8117 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8119 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8120 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8122 | else |
| 8123 | cat >conftest.$ac_ext <<_ACEOF |
| 8124 | #line $LINENO "configure" |
| 8125 | #include "confdefs.h" |
| 8126 | $ac_includes_default |
| 8127 | #ifdef F77_DUMMY_MAIN |
| 8128 | # ifdef __cplusplus |
| 8129 | extern "C" |
| 8130 | # endif |
| 8131 | int F77_DUMMY_MAIN() { return 1; } |
| 8132 | #endif |
| 8133 | int |
| 8134 | main () |
| 8135 | { |
| 8136 | if ((long long *) 0) |
| 8137 | return 0; |
| 8138 | if (sizeof (long long)) |
| 8139 | return 0; |
| 8140 | ; |
| 8141 | return 0; |
| 8142 | } |
| 8143 | _ACEOF |
| 8144 | rm -f conftest.$ac_objext |
| 8145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8146 | (eval $ac_compile) 2>&5 |
| 8147 | ac_status=$? |
| 8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8149 | (exit $ac_status); } && |
| 8150 | { ac_try='test -s conftest.$ac_objext' |
| 8151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8152 | (eval $ac_try) 2>&5 |
| 8153 | ac_status=$? |
| 8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8155 | (exit $ac_status); }; }; then |
| 8156 | ac_cv_type_long_long=yes |
| 8157 | else |
| 8158 | echo "$as_me: failed program was:" >&5 |
| 8159 | cat conftest.$ac_ext >&5 |
| 8160 | ac_cv_type_long_long=no |
| 8161 | fi |
| 8162 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8163 | fi |
| 8164 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8165 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8166 | |
| 8167 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8168 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8169 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8171 | else |
| 8172 | if test "$ac_cv_type_long_long" = yes; then |
| 8173 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8174 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8175 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8176 | # This bug is HP SR number 8606223364. |
| 8177 | if test "$cross_compiling" = yes; then |
| 8178 | # Depending upon the size, compute the lo and hi bounds. |
| 8179 | cat >conftest.$ac_ext <<_ACEOF |
| 8180 | #line $LINENO "configure" |
| 8181 | #include "confdefs.h" |
| 8182 | $ac_includes_default |
| 8183 | #ifdef F77_DUMMY_MAIN |
| 8184 | # ifdef __cplusplus |
| 8185 | extern "C" |
| 8186 | # endif |
| 8187 | int F77_DUMMY_MAIN() { return 1; } |
| 8188 | #endif |
| 8189 | int |
| 8190 | main () |
| 8191 | { |
| 8192 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8193 | test_array [0] = 0 |
| 8194 | |
| 8195 | ; |
| 8196 | return 0; |
| 8197 | } |
| 8198 | _ACEOF |
| 8199 | rm -f conftest.$ac_objext |
| 8200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8201 | (eval $ac_compile) 2>&5 |
| 8202 | ac_status=$? |
| 8203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8204 | (exit $ac_status); } && |
| 8205 | { ac_try='test -s conftest.$ac_objext' |
| 8206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8207 | (eval $ac_try) 2>&5 |
| 8208 | ac_status=$? |
| 8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8210 | (exit $ac_status); }; }; then |
| 8211 | ac_lo=0 ac_mid=0 |
| 8212 | while :; do |
| 8213 | cat >conftest.$ac_ext <<_ACEOF |
| 8214 | #line $LINENO "configure" |
| 8215 | #include "confdefs.h" |
| 8216 | $ac_includes_default |
| 8217 | #ifdef F77_DUMMY_MAIN |
| 8218 | # ifdef __cplusplus |
| 8219 | extern "C" |
| 8220 | # endif |
| 8221 | int F77_DUMMY_MAIN() { return 1; } |
| 8222 | #endif |
| 8223 | int |
| 8224 | main () |
| 8225 | { |
| 8226 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8227 | test_array [0] = 0 |
| 8228 | |
| 8229 | ; |
| 8230 | return 0; |
| 8231 | } |
| 8232 | _ACEOF |
| 8233 | rm -f conftest.$ac_objext |
| 8234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8235 | (eval $ac_compile) 2>&5 |
| 8236 | ac_status=$? |
| 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8238 | (exit $ac_status); } && |
| 8239 | { ac_try='test -s conftest.$ac_objext' |
| 8240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8241 | (eval $ac_try) 2>&5 |
| 8242 | ac_status=$? |
| 8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8244 | (exit $ac_status); }; }; then |
| 8245 | ac_hi=$ac_mid; break |
| 8246 | else |
| 8247 | echo "$as_me: failed program was:" >&5 |
| 8248 | cat conftest.$ac_ext >&5 |
| 8249 | ac_lo=`expr $ac_mid + 1` |
| 8250 | if test $ac_lo -le $ac_mid; then |
| 8251 | ac_lo= ac_hi= |
| 8252 | break |
| 8253 | fi |
| 8254 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8255 | fi |
| 8256 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8257 | done |
| 8258 | else |
| 8259 | echo "$as_me: failed program was:" >&5 |
| 8260 | cat conftest.$ac_ext >&5 |
| 8261 | cat >conftest.$ac_ext <<_ACEOF |
| 8262 | #line $LINENO "configure" |
| 8263 | #include "confdefs.h" |
| 8264 | $ac_includes_default |
| 8265 | #ifdef F77_DUMMY_MAIN |
| 8266 | # ifdef __cplusplus |
| 8267 | extern "C" |
| 8268 | # endif |
| 8269 | int F77_DUMMY_MAIN() { return 1; } |
| 8270 | #endif |
| 8271 | int |
| 8272 | main () |
| 8273 | { |
| 8274 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8275 | test_array [0] = 0 |
| 8276 | |
| 8277 | ; |
| 8278 | return 0; |
| 8279 | } |
| 8280 | _ACEOF |
| 8281 | rm -f conftest.$ac_objext |
| 8282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8283 | (eval $ac_compile) 2>&5 |
| 8284 | ac_status=$? |
| 8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8286 | (exit $ac_status); } && |
| 8287 | { ac_try='test -s conftest.$ac_objext' |
| 8288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8289 | (eval $ac_try) 2>&5 |
| 8290 | ac_status=$? |
| 8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8292 | (exit $ac_status); }; }; then |
| 8293 | ac_hi=-1 ac_mid=-1 |
| 8294 | while :; do |
| 8295 | cat >conftest.$ac_ext <<_ACEOF |
| 8296 | #line $LINENO "configure" |
| 8297 | #include "confdefs.h" |
| 8298 | $ac_includes_default |
| 8299 | #ifdef F77_DUMMY_MAIN |
| 8300 | # ifdef __cplusplus |
| 8301 | extern "C" |
| 8302 | # endif |
| 8303 | int F77_DUMMY_MAIN() { return 1; } |
| 8304 | #endif |
| 8305 | int |
| 8306 | main () |
| 8307 | { |
| 8308 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8309 | test_array [0] = 0 |
| 8310 | |
| 8311 | ; |
| 8312 | return 0; |
| 8313 | } |
| 8314 | _ACEOF |
| 8315 | rm -f conftest.$ac_objext |
| 8316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8317 | (eval $ac_compile) 2>&5 |
| 8318 | ac_status=$? |
| 8319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8320 | (exit $ac_status); } && |
| 8321 | { ac_try='test -s conftest.$ac_objext' |
| 8322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8323 | (eval $ac_try) 2>&5 |
| 8324 | ac_status=$? |
| 8325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8326 | (exit $ac_status); }; }; then |
| 8327 | ac_lo=$ac_mid; break |
| 8328 | else |
| 8329 | echo "$as_me: failed program was:" >&5 |
| 8330 | cat conftest.$ac_ext >&5 |
| 8331 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8332 | if test $ac_mid -le $ac_hi; then |
| 8333 | ac_lo= ac_hi= |
| 8334 | break |
| 8335 | fi |
| 8336 | ac_mid=`expr 2 '*' $ac_mid` |
| 8337 | fi |
| 8338 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8339 | done |
| 8340 | else |
| 8341 | echo "$as_me: failed program was:" >&5 |
| 8342 | cat conftest.$ac_ext >&5 |
| 8343 | ac_lo= ac_hi= |
| 8344 | fi |
| 8345 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8346 | fi |
| 8347 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8348 | # Binary search between lo and hi bounds. |
| 8349 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8350 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8351 | cat >conftest.$ac_ext <<_ACEOF |
| 8352 | #line $LINENO "configure" |
| 8353 | #include "confdefs.h" |
| 8354 | $ac_includes_default |
| 8355 | #ifdef F77_DUMMY_MAIN |
| 8356 | # ifdef __cplusplus |
| 8357 | extern "C" |
| 8358 | # endif |
| 8359 | int F77_DUMMY_MAIN() { return 1; } |
| 8360 | #endif |
| 8361 | int |
| 8362 | main () |
| 8363 | { |
| 8364 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8365 | test_array [0] = 0 |
| 8366 | |
| 8367 | ; |
| 8368 | return 0; |
| 8369 | } |
| 8370 | _ACEOF |
| 8371 | rm -f conftest.$ac_objext |
| 8372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8373 | (eval $ac_compile) 2>&5 |
| 8374 | ac_status=$? |
| 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8376 | (exit $ac_status); } && |
| 8377 | { ac_try='test -s conftest.$ac_objext' |
| 8378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8379 | (eval $ac_try) 2>&5 |
| 8380 | ac_status=$? |
| 8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8382 | (exit $ac_status); }; }; then |
| 8383 | ac_hi=$ac_mid |
| 8384 | else |
| 8385 | echo "$as_me: failed program was:" >&5 |
| 8386 | cat conftest.$ac_ext >&5 |
| 8387 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8388 | fi |
| 8389 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8390 | done |
| 8391 | case $ac_lo in |
| 8392 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8393 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8394 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8395 | { (exit 1); exit 1; }; } ;; |
| 8396 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8397 | else |
| 8398 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8400 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8401 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8402 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8403 | cat >conftest.$ac_ext <<_ACEOF |
| 8404 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8405 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | $ac_includes_default |
| 8407 | long longval () { return (long) (sizeof (long long)); } |
| 8408 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8409 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 | #include <stdlib.h> |
| 8411 | #ifdef F77_DUMMY_MAIN |
| 8412 | # ifdef __cplusplus |
| 8413 | extern "C" |
| 8414 | # endif |
| 8415 | int F77_DUMMY_MAIN() { return 1; } |
| 8416 | #endif |
| 8417 | int |
| 8418 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8419 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8420 | |
| 8421 | FILE *f = fopen ("conftest.val", "w"); |
| 8422 | if (! f) |
| 8423 | exit (1); |
| 8424 | if (((long) (sizeof (long long))) < 0) |
| 8425 | { |
| 8426 | long i = longval (); |
| 8427 | if (i != ((long) (sizeof (long long)))) |
| 8428 | exit (1); |
| 8429 | fprintf (f, "%ld\n", i); |
| 8430 | } |
| 8431 | else |
| 8432 | { |
| 8433 | unsigned long i = ulongval (); |
| 8434 | if (i != ((long) (sizeof (long long)))) |
| 8435 | exit (1); |
| 8436 | fprintf (f, "%lu\n", i); |
| 8437 | } |
| 8438 | exit (ferror (f) || fclose (f) != 0); |
| 8439 | |
| 8440 | ; |
| 8441 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8442 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | _ACEOF |
| 8444 | rm -f conftest$ac_exeext |
| 8445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8446 | (eval $ac_link) 2>&5 |
| 8447 | ac_status=$? |
| 8448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8449 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8451 | (eval $ac_try) 2>&5 |
| 8452 | ac_status=$? |
| 8453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8454 | (exit $ac_status); }; }; then |
| 8455 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8458 | echo "$as_me: failed program was:" >&5 |
| 8459 | cat conftest.$ac_ext >&5 |
| 8460 | ( exit $ac_status ) |
| 8461 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8462 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8463 | { (exit 1); exit 1; }; } |
| 8464 | fi |
| 8465 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8466 | fi |
| 8467 | fi |
| 8468 | rm -f conftest.val |
| 8469 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8470 | ac_cv_sizeof_long_long=0 |
| 8471 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8472 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8473 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8474 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8475 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8476 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8477 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8478 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8479 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8480 | fi |
| 8481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8483 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8484 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8485 | cat >conftest.$ac_ext <<_ACEOF |
| 8486 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8487 | #include "confdefs.h" |
| 8488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | #ifdef F77_DUMMY_MAIN |
| 8490 | # ifdef __cplusplus |
| 8491 | extern "C" |
| 8492 | # endif |
| 8493 | int F77_DUMMY_MAIN() { return 1; } |
| 8494 | #endif |
| 8495 | int |
| 8496 | main () |
| 8497 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8498 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | ; |
| 8500 | return 0; |
| 8501 | } |
| 8502 | _ACEOF |
| 8503 | rm -f conftest.$ac_objext |
| 8504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8505 | (eval $ac_compile) 2>&5 |
| 8506 | ac_status=$? |
| 8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8508 | (exit $ac_status); } && |
| 8509 | { ac_try='test -s conftest.$ac_objext' |
| 8510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8511 | (eval $ac_try) 2>&5 |
| 8512 | ac_status=$? |
| 8513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8514 | (exit $ac_status); }; }; then |
| 8515 | |
| 8516 | |
| 8517 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8518 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8519 | _ACEOF |
| 8520 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8521 | have_uintptr_t=yes |
| 8522 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | echo "$as_me: failed program was:" >&5 |
| 8525 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8527 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8528 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8529 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8530 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8532 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8533 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8535 | else |
| 8536 | cat >conftest.$ac_ext <<_ACEOF |
| 8537 | #line $LINENO "configure" |
| 8538 | #include "confdefs.h" |
| 8539 | $ac_includes_default |
| 8540 | #ifdef F77_DUMMY_MAIN |
| 8541 | # ifdef __cplusplus |
| 8542 | extern "C" |
| 8543 | # endif |
| 8544 | int F77_DUMMY_MAIN() { return 1; } |
| 8545 | #endif |
| 8546 | int |
| 8547 | main () |
| 8548 | { |
| 8549 | if ((uintptr_t *) 0) |
| 8550 | return 0; |
| 8551 | if (sizeof (uintptr_t)) |
| 8552 | return 0; |
| 8553 | ; |
| 8554 | return 0; |
| 8555 | } |
| 8556 | _ACEOF |
| 8557 | rm -f conftest.$ac_objext |
| 8558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8559 | (eval $ac_compile) 2>&5 |
| 8560 | ac_status=$? |
| 8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8562 | (exit $ac_status); } && |
| 8563 | { ac_try='test -s conftest.$ac_objext' |
| 8564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8565 | (eval $ac_try) 2>&5 |
| 8566 | ac_status=$? |
| 8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8568 | (exit $ac_status); }; }; then |
| 8569 | ac_cv_type_uintptr_t=yes |
| 8570 | else |
| 8571 | echo "$as_me: failed program was:" >&5 |
| 8572 | cat conftest.$ac_ext >&5 |
| 8573 | ac_cv_type_uintptr_t=no |
| 8574 | fi |
| 8575 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8576 | fi |
| 8577 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8578 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8579 | |
| 8580 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8581 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8582 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8584 | else |
| 8585 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8586 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8587 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8588 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8589 | # This bug is HP SR number 8606223364. |
| 8590 | if test "$cross_compiling" = yes; then |
| 8591 | # Depending upon the size, compute the lo and hi bounds. |
| 8592 | cat >conftest.$ac_ext <<_ACEOF |
| 8593 | #line $LINENO "configure" |
| 8594 | #include "confdefs.h" |
| 8595 | $ac_includes_default |
| 8596 | #ifdef F77_DUMMY_MAIN |
| 8597 | # ifdef __cplusplus |
| 8598 | extern "C" |
| 8599 | # endif |
| 8600 | int F77_DUMMY_MAIN() { return 1; } |
| 8601 | #endif |
| 8602 | int |
| 8603 | main () |
| 8604 | { |
| 8605 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8606 | test_array [0] = 0 |
| 8607 | |
| 8608 | ; |
| 8609 | return 0; |
| 8610 | } |
| 8611 | _ACEOF |
| 8612 | rm -f conftest.$ac_objext |
| 8613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8614 | (eval $ac_compile) 2>&5 |
| 8615 | ac_status=$? |
| 8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8617 | (exit $ac_status); } && |
| 8618 | { ac_try='test -s conftest.$ac_objext' |
| 8619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8620 | (eval $ac_try) 2>&5 |
| 8621 | ac_status=$? |
| 8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8623 | (exit $ac_status); }; }; then |
| 8624 | ac_lo=0 ac_mid=0 |
| 8625 | while :; do |
| 8626 | cat >conftest.$ac_ext <<_ACEOF |
| 8627 | #line $LINENO "configure" |
| 8628 | #include "confdefs.h" |
| 8629 | $ac_includes_default |
| 8630 | #ifdef F77_DUMMY_MAIN |
| 8631 | # ifdef __cplusplus |
| 8632 | extern "C" |
| 8633 | # endif |
| 8634 | int F77_DUMMY_MAIN() { return 1; } |
| 8635 | #endif |
| 8636 | int |
| 8637 | main () |
| 8638 | { |
| 8639 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8640 | test_array [0] = 0 |
| 8641 | |
| 8642 | ; |
| 8643 | return 0; |
| 8644 | } |
| 8645 | _ACEOF |
| 8646 | rm -f conftest.$ac_objext |
| 8647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8648 | (eval $ac_compile) 2>&5 |
| 8649 | ac_status=$? |
| 8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8651 | (exit $ac_status); } && |
| 8652 | { ac_try='test -s conftest.$ac_objext' |
| 8653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8654 | (eval $ac_try) 2>&5 |
| 8655 | ac_status=$? |
| 8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8657 | (exit $ac_status); }; }; then |
| 8658 | ac_hi=$ac_mid; break |
| 8659 | else |
| 8660 | echo "$as_me: failed program was:" >&5 |
| 8661 | cat conftest.$ac_ext >&5 |
| 8662 | ac_lo=`expr $ac_mid + 1` |
| 8663 | if test $ac_lo -le $ac_mid; then |
| 8664 | ac_lo= ac_hi= |
| 8665 | break |
| 8666 | fi |
| 8667 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8668 | fi |
| 8669 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8670 | done |
| 8671 | else |
| 8672 | echo "$as_me: failed program was:" >&5 |
| 8673 | cat conftest.$ac_ext >&5 |
| 8674 | cat >conftest.$ac_ext <<_ACEOF |
| 8675 | #line $LINENO "configure" |
| 8676 | #include "confdefs.h" |
| 8677 | $ac_includes_default |
| 8678 | #ifdef F77_DUMMY_MAIN |
| 8679 | # ifdef __cplusplus |
| 8680 | extern "C" |
| 8681 | # endif |
| 8682 | int F77_DUMMY_MAIN() { return 1; } |
| 8683 | #endif |
| 8684 | int |
| 8685 | main () |
| 8686 | { |
| 8687 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8688 | test_array [0] = 0 |
| 8689 | |
| 8690 | ; |
| 8691 | return 0; |
| 8692 | } |
| 8693 | _ACEOF |
| 8694 | rm -f conftest.$ac_objext |
| 8695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8696 | (eval $ac_compile) 2>&5 |
| 8697 | ac_status=$? |
| 8698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8699 | (exit $ac_status); } && |
| 8700 | { ac_try='test -s conftest.$ac_objext' |
| 8701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8702 | (eval $ac_try) 2>&5 |
| 8703 | ac_status=$? |
| 8704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8705 | (exit $ac_status); }; }; then |
| 8706 | ac_hi=-1 ac_mid=-1 |
| 8707 | while :; do |
| 8708 | cat >conftest.$ac_ext <<_ACEOF |
| 8709 | #line $LINENO "configure" |
| 8710 | #include "confdefs.h" |
| 8711 | $ac_includes_default |
| 8712 | #ifdef F77_DUMMY_MAIN |
| 8713 | # ifdef __cplusplus |
| 8714 | extern "C" |
| 8715 | # endif |
| 8716 | int F77_DUMMY_MAIN() { return 1; } |
| 8717 | #endif |
| 8718 | int |
| 8719 | main () |
| 8720 | { |
| 8721 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8722 | test_array [0] = 0 |
| 8723 | |
| 8724 | ; |
| 8725 | return 0; |
| 8726 | } |
| 8727 | _ACEOF |
| 8728 | rm -f conftest.$ac_objext |
| 8729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8730 | (eval $ac_compile) 2>&5 |
| 8731 | ac_status=$? |
| 8732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8733 | (exit $ac_status); } && |
| 8734 | { ac_try='test -s conftest.$ac_objext' |
| 8735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8736 | (eval $ac_try) 2>&5 |
| 8737 | ac_status=$? |
| 8738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8739 | (exit $ac_status); }; }; then |
| 8740 | ac_lo=$ac_mid; break |
| 8741 | else |
| 8742 | echo "$as_me: failed program was:" >&5 |
| 8743 | cat conftest.$ac_ext >&5 |
| 8744 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8745 | if test $ac_mid -le $ac_hi; then |
| 8746 | ac_lo= ac_hi= |
| 8747 | break |
| 8748 | fi |
| 8749 | ac_mid=`expr 2 '*' $ac_mid` |
| 8750 | fi |
| 8751 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8752 | done |
| 8753 | else |
| 8754 | echo "$as_me: failed program was:" >&5 |
| 8755 | cat conftest.$ac_ext >&5 |
| 8756 | ac_lo= ac_hi= |
| 8757 | fi |
| 8758 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8759 | fi |
| 8760 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8761 | # Binary search between lo and hi bounds. |
| 8762 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8763 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8764 | cat >conftest.$ac_ext <<_ACEOF |
| 8765 | #line $LINENO "configure" |
| 8766 | #include "confdefs.h" |
| 8767 | $ac_includes_default |
| 8768 | #ifdef F77_DUMMY_MAIN |
| 8769 | # ifdef __cplusplus |
| 8770 | extern "C" |
| 8771 | # endif |
| 8772 | int F77_DUMMY_MAIN() { return 1; } |
| 8773 | #endif |
| 8774 | int |
| 8775 | main () |
| 8776 | { |
| 8777 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8778 | test_array [0] = 0 |
| 8779 | |
| 8780 | ; |
| 8781 | return 0; |
| 8782 | } |
| 8783 | _ACEOF |
| 8784 | rm -f conftest.$ac_objext |
| 8785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8786 | (eval $ac_compile) 2>&5 |
| 8787 | ac_status=$? |
| 8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8789 | (exit $ac_status); } && |
| 8790 | { ac_try='test -s conftest.$ac_objext' |
| 8791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8792 | (eval $ac_try) 2>&5 |
| 8793 | ac_status=$? |
| 8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8795 | (exit $ac_status); }; }; then |
| 8796 | ac_hi=$ac_mid |
| 8797 | else |
| 8798 | echo "$as_me: failed program was:" >&5 |
| 8799 | cat conftest.$ac_ext >&5 |
| 8800 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8801 | fi |
| 8802 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8803 | done |
| 8804 | case $ac_lo in |
| 8805 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8806 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8807 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8808 | { (exit 1); exit 1; }; } ;; |
| 8809 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8810 | else |
| 8811 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8813 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8814 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 | cat >conftest.$ac_ext <<_ACEOF |
| 8817 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8818 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | $ac_includes_default |
| 8820 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8821 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8822 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8823 | #include <stdlib.h> |
| 8824 | #ifdef F77_DUMMY_MAIN |
| 8825 | # ifdef __cplusplus |
| 8826 | extern "C" |
| 8827 | # endif |
| 8828 | int F77_DUMMY_MAIN() { return 1; } |
| 8829 | #endif |
| 8830 | int |
| 8831 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8832 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8833 | |
| 8834 | FILE *f = fopen ("conftest.val", "w"); |
| 8835 | if (! f) |
| 8836 | exit (1); |
| 8837 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8838 | { |
| 8839 | long i = longval (); |
| 8840 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8841 | exit (1); |
| 8842 | fprintf (f, "%ld\n", i); |
| 8843 | } |
| 8844 | else |
| 8845 | { |
| 8846 | unsigned long i = ulongval (); |
| 8847 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8848 | exit (1); |
| 8849 | fprintf (f, "%lu\n", i); |
| 8850 | } |
| 8851 | exit (ferror (f) || fclose (f) != 0); |
| 8852 | |
| 8853 | ; |
| 8854 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8855 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | _ACEOF |
| 8857 | rm -f conftest$ac_exeext |
| 8858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8859 | (eval $ac_link) 2>&5 |
| 8860 | ac_status=$? |
| 8861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8864 | (eval $ac_try) 2>&5 |
| 8865 | ac_status=$? |
| 8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8867 | (exit $ac_status); }; }; then |
| 8868 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8871 | echo "$as_me: failed program was:" >&5 |
| 8872 | cat conftest.$ac_ext >&5 |
| 8873 | ( exit $ac_status ) |
| 8874 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8875 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8876 | { (exit 1); exit 1; }; } |
| 8877 | fi |
| 8878 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8879 | fi |
| 8880 | fi |
| 8881 | rm -f conftest.val |
| 8882 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8883 | ac_cv_sizeof_uintptr_t=0 |
| 8884 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8887 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8888 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8889 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8890 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8891 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8892 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8893 | fi |
| 8894 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8895 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8896 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8897 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8898 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8900 | else |
| 8901 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8902 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | cat >conftest.$ac_ext <<_ACEOF |
| 8905 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8906 | #include "confdefs.h" |
| 8907 | #include <stdio.h> |
| 8908 | #include <sys/types.h> |
| 8909 | main() |
| 8910 | { |
| 8911 | FILE *f=fopen("conftestval", "w"); |
| 8912 | if (!f) exit(1); |
| 8913 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8914 | exit(0); |
| 8915 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8916 | _ACEOF |
| 8917 | rm -f conftest$ac_exeext |
| 8918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8919 | (eval $ac_link) 2>&5 |
| 8920 | ac_status=$? |
| 8921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8924 | (eval $ac_try) 2>&5 |
| 8925 | ac_status=$? |
| 8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8927 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8928 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8931 | echo "$as_me: failed program was:" >&5 |
| 8932 | cat conftest.$ac_ext >&5 |
| 8933 | ( exit $ac_status ) |
| 8934 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8936 | 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] | 8937 | fi |
| 8938 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8939 | fi |
| 8940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8941 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8942 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8943 | |
| 8944 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8945 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8946 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8947 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8949 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8950 | 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] | 8951 | if test "$have_long_long" = yes -a \ |
| 8952 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8953 | "$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] | 8954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8955 | cat >>confdefs.h <<\_ACEOF |
| 8956 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8957 | _ACEOF |
| 8958 | |
| 8959 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8960 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8961 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8962 | echo "$as_me:$LINENO: result: no" >&5 |
| 8963 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8964 | fi |
| 8965 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8966 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8968 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8969 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8971 | else |
| 8972 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8973 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | cat >conftest.$ac_ext <<_ACEOF |
| 8976 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8977 | #include "confdefs.h" |
| 8978 | #include <stdio.h> |
| 8979 | #include <time.h> |
| 8980 | main() |
| 8981 | { |
| 8982 | FILE *f=fopen("conftestval", "w"); |
| 8983 | if (!f) exit(1); |
| 8984 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8985 | exit(0); |
| 8986 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8987 | _ACEOF |
| 8988 | rm -f conftest$ac_exeext |
| 8989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8990 | (eval $ac_link) 2>&5 |
| 8991 | ac_status=$? |
| 8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8993 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8995 | (eval $ac_try) 2>&5 |
| 8996 | ac_status=$? |
| 8997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8998 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8999 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9001 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9002 | echo "$as_me: failed program was:" >&5 |
| 9003 | cat conftest.$ac_ext >&5 |
| 9004 | ( exit $ac_status ) |
| 9005 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9006 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9007 | 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] | 9008 | fi |
| 9009 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9010 | fi |
| 9011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9013 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9014 | |
| 9015 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9016 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9017 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9018 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9019 | |
| 9020 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9021 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9022 | ac_save_cc="$CC" |
| 9023 | if test "$ac_cv_kpthread" = "yes" |
| 9024 | then CC="$CC -Kpthread" |
| 9025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9027 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9028 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | cat >conftest.$ac_ext <<_ACEOF |
| 9030 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9031 | #include "confdefs.h" |
| 9032 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | #ifdef F77_DUMMY_MAIN |
| 9034 | # ifdef __cplusplus |
| 9035 | extern "C" |
| 9036 | # endif |
| 9037 | int F77_DUMMY_MAIN() { return 1; } |
| 9038 | #endif |
| 9039 | int |
| 9040 | main () |
| 9041 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9042 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | ; |
| 9044 | return 0; |
| 9045 | } |
| 9046 | _ACEOF |
| 9047 | rm -f conftest.$ac_objext |
| 9048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9049 | (eval $ac_compile) 2>&5 |
| 9050 | ac_status=$? |
| 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9052 | (exit $ac_status); } && |
| 9053 | { ac_try='test -s conftest.$ac_objext' |
| 9054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9055 | (eval $ac_try) 2>&5 |
| 9056 | ac_status=$? |
| 9057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9058 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9059 | have_pthread_t=yes |
| 9060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | echo "$as_me: failed program was:" >&5 |
| 9062 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9064 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9065 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9066 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9067 | if test "$have_pthread_t" = yes ; then |
| 9068 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9069 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9070 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9071 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9073 | else |
| 9074 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9075 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9077 | cat >conftest.$ac_ext <<_ACEOF |
| 9078 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9079 | #include "confdefs.h" |
| 9080 | #include <stdio.h> |
| 9081 | #include <pthread.h> |
| 9082 | main() |
| 9083 | { |
| 9084 | FILE *f=fopen("conftestval", "w"); |
| 9085 | if (!f) exit(1); |
| 9086 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9087 | exit(0); |
| 9088 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9089 | _ACEOF |
| 9090 | rm -f conftest$ac_exeext |
| 9091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9092 | (eval $ac_link) 2>&5 |
| 9093 | ac_status=$? |
| 9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9095 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9097 | (eval $ac_try) 2>&5 |
| 9098 | ac_status=$? |
| 9099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9100 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9101 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9104 | echo "$as_me: failed program was:" >&5 |
| 9105 | cat conftest.$ac_ext >&5 |
| 9106 | ( exit $ac_status ) |
| 9107 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9109 | 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] | 9110 | fi |
| 9111 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9112 | fi |
| 9113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9115 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9116 | |
| 9117 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9118 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9119 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9120 | |
| 9121 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9122 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9125 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9126 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9127 | if test "${enable_toolbox_glue+set}" = set; then |
| 9128 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9130 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9131 | |
| 9132 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9134 | case $ac_sys_system/$ac_sys_release in |
| 9135 | Darwin/*) |
| 9136 | enable_toolbox_glue="yes";; |
| 9137 | *) |
| 9138 | enable_toolbox_glue="no";; |
| 9139 | esac |
| 9140 | fi |
| 9141 | case "$enable_toolbox_glue" in |
| 9142 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9143 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9144 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9145 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | |
| 9147 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9148 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9149 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9150 | |
| 9151 | ;; |
| 9152 | *) |
| 9153 | extra_frameworks="" |
| 9154 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9155 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9156 | ;; |
| 9157 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9158 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9159 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9160 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9161 | |
| 9162 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9163 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9164 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9165 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9166 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9167 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9168 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9169 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9170 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9171 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9172 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9173 | esac |
| 9174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9175 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9176 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9177 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9178 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 9179 | OPT="$OPT -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9181 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9182 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | cat >>confdefs.h <<\_ACEOF |
| 9185 | #define WITH_NEXT_FRAMEWORK 1 |
| 9186 | _ACEOF |
| 9187 | |
| 9188 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9189 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9191 | echo "$as_me:$LINENO: result: no" >&5 |
| 9192 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9193 | fi |
| 9194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9195 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9196 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9197 | case $ac_sys_system/$ac_sys_release in |
| 9198 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | cat >>confdefs.h <<\_ACEOF |
| 9201 | #define WITH_DYLD 1 |
| 9202 | _ACEOF |
| 9203 | |
| 9204 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9205 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9206 | ;; |
| 9207 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | echo "$as_me:$LINENO: result: no" >&5 |
| 9209 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9210 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9211 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9212 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9213 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9214 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9215 | |
| 9216 | |
| 9217 | |
| 9218 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9219 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9220 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9221 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9222 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9223 | if test -z "$SO" |
| 9224 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9225 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9226 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9227 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9228 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9229 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9230 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9232 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9233 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9234 | # -- "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] | 9235 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9236 | # 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] | 9237 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9238 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9239 | if test -z "$LDSHARED" |
| 9240 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9241 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9242 | AIX*) |
| 9243 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9244 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9245 | ;; |
| 9246 | BeOS*) |
| 9247 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9248 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9249 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9250 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9251 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9252 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9253 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9254 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9255 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9256 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9257 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9258 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9259 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9260 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9261 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9262 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9263 | if test "$enable_framework" ; then |
| 9264 | # Link against the framework. All externals should be defined. |
| 9265 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9266 | else |
| 9267 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9268 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9269 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9270 | Darwin/*) |
| 9271 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9272 | if test "$enable_framework" ; then |
| 9273 | # Link against the framework. All externals should be defined. |
| 9274 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9275 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9276 | # No framework, use the Python app as bundle-loader |
| 9277 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9278 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9279 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9280 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9281 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9282 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9283 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9284 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9285 | then |
| 9286 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9287 | else |
| 9288 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9289 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9290 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9291 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9292 | if test "$GCC" = "yes" |
| 9293 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9294 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9295 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9296 | SCO_SV*) LDSHARED="$(CC) -Wl,-G,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9297 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9298 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9299 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9300 | *) LDSHARED="ld";; |
| 9301 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9303 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9304 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9305 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9306 | # 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] | 9307 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9309 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9310 | if test -z "$CCSHARED" |
| 9311 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9312 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9313 | SunOS*) if test "$GCC" = yes; |
| 9314 | then CCSHARED="-fPIC"; |
| 9315 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9316 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9317 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9318 | else CCSHARED="+z"; |
| 9319 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9320 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9321 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9322 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9323 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9324 | if test "$GCC" = "yes" |
| 9325 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9326 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9327 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9328 | SCO_SV*) |
| 9329 | if test "$GCC" = "yes" |
| 9330 | then CCSHARED="-fPIC" |
| 9331 | else CCSHARED="-Kpic -belf" |
| 9332 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9333 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9334 | IRIX*/6*) case $CC in |
| 9335 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9336 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9337 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9338 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9339 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9340 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9341 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9342 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9343 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9344 | # 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] | 9345 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9346 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9347 | if test -z "$LINKFORSHARED" |
| 9348 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9349 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9350 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9351 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9352 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9353 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9354 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9355 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9356 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9357 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9358 | # -u __dummy makes the linker aware of the objc runtime |
| 9359 | # in System.framework; otherwise, __objcInit (referenced in |
| 9360 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9361 | # loading of any modules which reference it in System.framework. |
| 9362 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9363 | # not used by the core itself but which needs to be in the core so |
| 9364 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9365 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9366 | if test "$enable_framework" |
| 9367 | then |
| 9368 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9369 | fi |
| 9370 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9371 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9372 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9373 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9374 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9375 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9376 | then |
| 9377 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9378 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9379 | SunOS/5*) case $CC in |
| 9380 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9381 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9382 | then |
| 9383 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9384 | fi;; |
| 9385 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9386 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9387 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9388 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9389 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9390 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9392 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9393 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9394 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9395 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9396 | case $ac_sys_system in |
| 9397 | CYGWIN*) |
| 9398 | # Cygwin needs CCSHARED when building extension DLLs |
| 9399 | # but not when building the interpreter DLL. |
| 9400 | CFLAGSFORSHARED='';; |
| 9401 | *) |
| 9402 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9403 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9406 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9407 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9408 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9409 | # library (with --enable-shared). |
| 9410 | # 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] | 9411 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9412 | # if it is not required, since it creates a dependency of the shared library |
| 9413 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9414 | # don't need to link LIBS explicitly. The default should be only changed |
| 9415 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9416 | |
| 9417 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9418 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9419 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9420 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9421 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9422 | esac |
| 9423 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9424 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9425 | |
| 9426 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9427 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | |
| 9429 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9430 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9431 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9435 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | cat >conftest.$ac_ext <<_ACEOF |
| 9437 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9438 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9440 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | #ifdef __cplusplus |
| 9442 | extern "C" |
| 9443 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9444 | /* 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] | 9445 | builtin and then its argument prototype would still apply. */ |
| 9446 | char dlopen (); |
| 9447 | #ifdef F77_DUMMY_MAIN |
| 9448 | # ifdef __cplusplus |
| 9449 | extern "C" |
| 9450 | # endif |
| 9451 | int F77_DUMMY_MAIN() { return 1; } |
| 9452 | #endif |
| 9453 | int |
| 9454 | main () |
| 9455 | { |
| 9456 | dlopen (); |
| 9457 | ; |
| 9458 | return 0; |
| 9459 | } |
| 9460 | _ACEOF |
| 9461 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9463 | (eval $ac_link) 2>&5 |
| 9464 | ac_status=$? |
| 9465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9466 | (exit $ac_status); } && |
| 9467 | { ac_try='test -s conftest$ac_exeext' |
| 9468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9469 | (eval $ac_try) 2>&5 |
| 9470 | ac_status=$? |
| 9471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9472 | (exit $ac_status); }; }; then |
| 9473 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | echo "$as_me: failed program was:" >&5 |
| 9476 | cat conftest.$ac_ext >&5 |
| 9477 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9480 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9481 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9482 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9483 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9484 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9485 | cat >>confdefs.h <<_ACEOF |
| 9486 | #define HAVE_LIBDL 1 |
| 9487 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9488 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9489 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9490 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9491 | fi |
| 9492 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 | |
| 9494 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9495 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9496 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9500 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | cat >conftest.$ac_ext <<_ACEOF |
| 9502 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9503 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9505 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | #ifdef __cplusplus |
| 9507 | extern "C" |
| 9508 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9509 | /* 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] | 9510 | builtin and then its argument prototype would still apply. */ |
| 9511 | char shl_load (); |
| 9512 | #ifdef F77_DUMMY_MAIN |
| 9513 | # ifdef __cplusplus |
| 9514 | extern "C" |
| 9515 | # endif |
| 9516 | int F77_DUMMY_MAIN() { return 1; } |
| 9517 | #endif |
| 9518 | int |
| 9519 | main () |
| 9520 | { |
| 9521 | shl_load (); |
| 9522 | ; |
| 9523 | return 0; |
| 9524 | } |
| 9525 | _ACEOF |
| 9526 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9528 | (eval $ac_link) 2>&5 |
| 9529 | ac_status=$? |
| 9530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9531 | (exit $ac_status); } && |
| 9532 | { ac_try='test -s conftest$ac_exeext' |
| 9533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9534 | (eval $ac_try) 2>&5 |
| 9535 | ac_status=$? |
| 9536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9537 | (exit $ac_status); }; }; then |
| 9538 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | echo "$as_me: failed program was:" >&5 |
| 9541 | cat conftest.$ac_ext >&5 |
| 9542 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9544 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9545 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9546 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9548 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9549 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9550 | cat >>confdefs.h <<_ACEOF |
| 9551 | #define HAVE_LIBDLD 1 |
| 9552 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9553 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9554 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9555 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9556 | fi |
| 9557 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9558 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9559 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9560 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9562 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9563 | ac_func_search_save_LIBS=$LIBS |
| 9564 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9565 | cat >conftest.$ac_ext <<_ACEOF |
| 9566 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9567 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9569 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9570 | #ifdef __cplusplus |
| 9571 | extern "C" |
| 9572 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9573 | /* 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] | 9574 | builtin and then its argument prototype would still apply. */ |
| 9575 | char sem_init (); |
| 9576 | #ifdef F77_DUMMY_MAIN |
| 9577 | # ifdef __cplusplus |
| 9578 | extern "C" |
| 9579 | # endif |
| 9580 | int F77_DUMMY_MAIN() { return 1; } |
| 9581 | #endif |
| 9582 | int |
| 9583 | main () |
| 9584 | { |
| 9585 | sem_init (); |
| 9586 | ; |
| 9587 | return 0; |
| 9588 | } |
| 9589 | _ACEOF |
| 9590 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9592 | (eval $ac_link) 2>&5 |
| 9593 | ac_status=$? |
| 9594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9595 | (exit $ac_status); } && |
| 9596 | { ac_try='test -s conftest$ac_exeext' |
| 9597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9598 | (eval $ac_try) 2>&5 |
| 9599 | ac_status=$? |
| 9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9601 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9602 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | echo "$as_me: failed program was:" >&5 |
| 9605 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9606 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9607 | 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] | 9608 | if test "$ac_cv_search_sem_init" = no; then |
| 9609 | for ac_lib in rt posix4; do |
| 9610 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9611 | cat >conftest.$ac_ext <<_ACEOF |
| 9612 | #line $LINENO "configure" |
| 9613 | #include "confdefs.h" |
| 9614 | |
| 9615 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9616 | #ifdef __cplusplus |
| 9617 | extern "C" |
| 9618 | #endif |
| 9619 | /* We use char because int might match the return type of a gcc2 |
| 9620 | builtin and then its argument prototype would still apply. */ |
| 9621 | char sem_init (); |
| 9622 | #ifdef F77_DUMMY_MAIN |
| 9623 | # ifdef __cplusplus |
| 9624 | extern "C" |
| 9625 | # endif |
| 9626 | int F77_DUMMY_MAIN() { return 1; } |
| 9627 | #endif |
| 9628 | int |
| 9629 | main () |
| 9630 | { |
| 9631 | sem_init (); |
| 9632 | ; |
| 9633 | return 0; |
| 9634 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9636 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9638 | (eval $ac_link) 2>&5 |
| 9639 | ac_status=$? |
| 9640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9641 | (exit $ac_status); } && |
| 9642 | { ac_try='test -s conftest$ac_exeext' |
| 9643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9644 | (eval $ac_try) 2>&5 |
| 9645 | ac_status=$? |
| 9646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9647 | (exit $ac_status); }; }; then |
| 9648 | ac_cv_search_sem_init="-l$ac_lib" |
| 9649 | break |
| 9650 | else |
| 9651 | echo "$as_me: failed program was:" >&5 |
| 9652 | cat conftest.$ac_ext >&5 |
| 9653 | fi |
| 9654 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9655 | done |
| 9656 | fi |
| 9657 | LIBS=$ac_func_search_save_LIBS |
| 9658 | fi |
| 9659 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9660 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9661 | if test "$ac_cv_search_sem_init" != no; then |
| 9662 | 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] | 9663 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9664 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9665 | # 'Real Time' functions on Solaris, |
| 9666 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9667 | |
| 9668 | # checks for system dependent C++ extensions support |
| 9669 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9671 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9672 | cat >conftest.$ac_ext <<_ACEOF |
| 9673 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9674 | #include "confdefs.h" |
| 9675 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9676 | #ifdef F77_DUMMY_MAIN |
| 9677 | # ifdef __cplusplus |
| 9678 | extern "C" |
| 9679 | # endif |
| 9680 | int F77_DUMMY_MAIN() { return 1; } |
| 9681 | #endif |
| 9682 | int |
| 9683 | main () |
| 9684 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9685 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | ; |
| 9687 | return 0; |
| 9688 | } |
| 9689 | _ACEOF |
| 9690 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9692 | (eval $ac_link) 2>&5 |
| 9693 | ac_status=$? |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); } && |
| 9696 | { ac_try='test -s conftest$ac_exeext' |
| 9697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9698 | (eval $ac_try) 2>&5 |
| 9699 | ac_status=$? |
| 9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9701 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | cat >>confdefs.h <<\_ACEOF |
| 9704 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9705 | _ACEOF |
| 9706 | |
| 9707 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9708 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 | echo "$as_me: failed program was:" >&5 |
| 9711 | cat conftest.$ac_ext >&5 |
| 9712 | echo "$as_me:$LINENO: result: no" >&5 |
| 9713 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9714 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9716 | *) ;; |
| 9717 | esac |
| 9718 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9719 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 9720 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9721 | # BeOS' sockets are stashed in libnet. |
| 9722 | case "$ac_sys_system" in |
| 9723 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9724 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9726 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9727 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9730 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9731 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | cat >conftest.$ac_ext <<_ACEOF |
| 9733 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9734 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9736 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9737 | #ifdef __cplusplus |
| 9738 | extern "C" |
| 9739 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9740 | /* 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] | 9741 | builtin and then its argument prototype would still apply. */ |
| 9742 | char t_open (); |
| 9743 | #ifdef F77_DUMMY_MAIN |
| 9744 | # ifdef __cplusplus |
| 9745 | extern "C" |
| 9746 | # endif |
| 9747 | int F77_DUMMY_MAIN() { return 1; } |
| 9748 | #endif |
| 9749 | int |
| 9750 | main () |
| 9751 | { |
| 9752 | t_open (); |
| 9753 | ; |
| 9754 | return 0; |
| 9755 | } |
| 9756 | _ACEOF |
| 9757 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9759 | (eval $ac_link) 2>&5 |
| 9760 | ac_status=$? |
| 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); } && |
| 9763 | { ac_try='test -s conftest$ac_exeext' |
| 9764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9765 | (eval $ac_try) 2>&5 |
| 9766 | ac_status=$? |
| 9767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9768 | (exit $ac_status); }; }; then |
| 9769 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | echo "$as_me: failed program was:" >&5 |
| 9772 | cat conftest.$ac_ext >&5 |
| 9773 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9774 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9775 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9776 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9778 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9779 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9780 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9781 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9782 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9783 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9785 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9786 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9790 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9791 | cat >conftest.$ac_ext <<_ACEOF |
| 9792 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9793 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9795 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | #ifdef __cplusplus |
| 9797 | extern "C" |
| 9798 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9799 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | builtin and then its argument prototype would still apply. */ |
| 9801 | char socket (); |
| 9802 | #ifdef F77_DUMMY_MAIN |
| 9803 | # ifdef __cplusplus |
| 9804 | extern "C" |
| 9805 | # endif |
| 9806 | int F77_DUMMY_MAIN() { return 1; } |
| 9807 | #endif |
| 9808 | int |
| 9809 | main () |
| 9810 | { |
| 9811 | socket (); |
| 9812 | ; |
| 9813 | return 0; |
| 9814 | } |
| 9815 | _ACEOF |
| 9816 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9818 | (eval $ac_link) 2>&5 |
| 9819 | ac_status=$? |
| 9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9821 | (exit $ac_status); } && |
| 9822 | { ac_try='test -s conftest$ac_exeext' |
| 9823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9824 | (eval $ac_try) 2>&5 |
| 9825 | ac_status=$? |
| 9826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9827 | (exit $ac_status); }; }; then |
| 9828 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | echo "$as_me: failed program was:" >&5 |
| 9831 | cat conftest.$ac_ext >&5 |
| 9832 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9835 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9838 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9839 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9840 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9841 | fi |
| 9842 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9843 | ;; |
| 9844 | esac |
| 9845 | case "$ac_sys_system" in |
| 9846 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9847 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9848 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9849 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9853 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | cat >conftest.$ac_ext <<_ACEOF |
| 9855 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9856 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9857 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9858 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | #ifdef __cplusplus |
| 9860 | extern "C" |
| 9861 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9862 | /* 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] | 9863 | builtin and then its argument prototype would still apply. */ |
| 9864 | char socket (); |
| 9865 | #ifdef F77_DUMMY_MAIN |
| 9866 | # ifdef __cplusplus |
| 9867 | extern "C" |
| 9868 | # endif |
| 9869 | int F77_DUMMY_MAIN() { return 1; } |
| 9870 | #endif |
| 9871 | int |
| 9872 | main () |
| 9873 | { |
| 9874 | socket (); |
| 9875 | ; |
| 9876 | return 0; |
| 9877 | } |
| 9878 | _ACEOF |
| 9879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9881 | (eval $ac_link) 2>&5 |
| 9882 | ac_status=$? |
| 9883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9884 | (exit $ac_status); } && |
| 9885 | { ac_try='test -s conftest$ac_exeext' |
| 9886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9887 | (eval $ac_try) 2>&5 |
| 9888 | ac_status=$? |
| 9889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9890 | (exit $ac_status); }; }; then |
| 9891 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | echo "$as_me: failed program was:" >&5 |
| 9894 | cat conftest.$ac_ext >&5 |
| 9895 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9896 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9898 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9899 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9901 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9902 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9903 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9904 | fi |
| 9905 | # BeOS |
| 9906 | ;; |
| 9907 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9910 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9911 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9912 | # Check whether --with-libs or --without-libs was given. |
| 9913 | if test "${with_libs+set}" = set; then |
| 9914 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9915 | |
| 9916 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9917 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9918 | LIBS="$withval $LIBS" |
| 9919 | |
| 9920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | echo "$as_me:$LINENO: result: no" >&5 |
| 9922 | echo "${ECHO_T}no" >&6 |
| 9923 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9924 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9925 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9926 | |
| 9927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9929 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9930 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9931 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9932 | if test "${with_signal_module+set}" = set; then |
| 9933 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9936 | |
| 9937 | if test -z "$with_signal_module" |
| 9938 | then with_signal_module="yes" |
| 9939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9940 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9941 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9942 | |
| 9943 | if test "${with_signal_module}" = "yes"; then |
| 9944 | USE_SIGNAL_MODULE="" |
| 9945 | SIGNAL_OBJS="" |
| 9946 | else |
| 9947 | USE_SIGNAL_MODULE="#" |
| 9948 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9949 | fi |
| 9950 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9951 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9952 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9953 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9955 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9956 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9957 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9958 | |
| 9959 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9960 | if test "${with_dec_threads+set}" = set; then |
| 9961 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9962 | |
| 9963 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9964 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9965 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9966 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9967 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9968 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9970 | echo "$as_me:$LINENO: result: no" >&5 |
| 9971 | echo "${ECHO_T}no" >&6 |
| 9972 | fi; |
| 9973 | |
| 9974 | # Templates for things AC_DEFINEd more than once. |
| 9975 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9976 | |
| 9977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9978 | |
| 9979 | |
| 9980 | |
| 9981 | |
| 9982 | |
| 9983 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9984 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9985 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9986 | # Check whether --with-threads or --without-threads was given. |
| 9987 | if test "${with_threads+set}" = set; then |
| 9988 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9991 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9992 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9993 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9994 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9995 | if test "${with_thread+set}" = set; then |
| 9996 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9997 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9998 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9999 | |
| 10000 | if test -z "$with_threads" |
| 10001 | then with_threads="yes" |
| 10002 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10003 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10004 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10005 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10006 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10007 | if test "$with_threads" = "no" |
| 10008 | then |
| 10009 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10010 | elif test "$ac_cv_pthread_is_default" = yes |
| 10011 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10012 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10013 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10015 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10016 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10017 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10018 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10020 | |
| 10021 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10022 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10023 | elif test "$ac_cv_kpthread" = "yes" |
| 10024 | then |
| 10025 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10026 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10027 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10029 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10030 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10031 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10032 | else |
| 10033 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10034 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10035 | fi |
| 10036 | if test ! -z "$withval" -a -d "$withval" |
| 10037 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10038 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10039 | |
| 10040 | # According to the POSIX spec, a pthreads implementation must |
| 10041 | # 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] | 10042 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10043 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10044 | cat >conftest.$ac_ext <<_ACEOF |
| 10045 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10046 | #include "confdefs.h" |
| 10047 | #include <unistd.h> |
| 10048 | #ifdef _POSIX_THREADS |
| 10049 | yes |
| 10050 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | |
| 10052 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10054 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10055 | unistd_defines_pthreads=yes |
| 10056 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10057 | unistd_defines_pthreads=no |
| 10058 | fi |
| 10059 | rm -f conftest* |
| 10060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10061 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10062 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10065 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10068 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10069 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10070 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10071 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10073 | fi |
| 10074 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10075 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10077 | # Is the header compilable? |
| 10078 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10079 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10080 | cat >conftest.$ac_ext <<_ACEOF |
| 10081 | #line $LINENO "configure" |
| 10082 | #include "confdefs.h" |
| 10083 | $ac_includes_default |
| 10084 | #include <cthreads.h> |
| 10085 | _ACEOF |
| 10086 | rm -f conftest.$ac_objext |
| 10087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10088 | (eval $ac_compile) 2>&5 |
| 10089 | ac_status=$? |
| 10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10091 | (exit $ac_status); } && |
| 10092 | { ac_try='test -s conftest.$ac_objext' |
| 10093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10094 | (eval $ac_try) 2>&5 |
| 10095 | ac_status=$? |
| 10096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10097 | (exit $ac_status); }; }; then |
| 10098 | ac_header_compiler=yes |
| 10099 | else |
| 10100 | echo "$as_me: failed program was:" >&5 |
| 10101 | cat conftest.$ac_ext >&5 |
| 10102 | ac_header_compiler=no |
| 10103 | fi |
| 10104 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10105 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10106 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10107 | |
| 10108 | # Is the header present? |
| 10109 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10110 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10111 | cat >conftest.$ac_ext <<_ACEOF |
| 10112 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10113 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10114 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10115 | _ACEOF |
| 10116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10117 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10118 | ac_status=$? |
| 10119 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10120 | rm -f conftest.er1 |
| 10121 | cat conftest.err >&5 |
| 10122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10123 | (exit $ac_status); } >/dev/null; then |
| 10124 | if test -s conftest.err; then |
| 10125 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10126 | else |
| 10127 | ac_cpp_err= |
| 10128 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10129 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10130 | ac_cpp_err=yes |
| 10131 | fi |
| 10132 | if test -z "$ac_cpp_err"; then |
| 10133 | ac_header_preproc=yes |
| 10134 | else |
| 10135 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10136 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10137 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10138 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | rm -f conftest.err conftest.$ac_ext |
| 10140 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10141 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10142 | |
| 10143 | # So? What about this header? |
| 10144 | case $ac_header_compiler:$ac_header_preproc in |
| 10145 | yes:no ) |
| 10146 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10147 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10148 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10149 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10150 | no:yes ) |
| 10151 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10152 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10153 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10154 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10155 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10156 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10157 | esac |
| 10158 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10159 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10160 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10162 | else |
| 10163 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10164 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10166 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10167 | |
| 10168 | fi |
| 10169 | if test $ac_cv_header_cthreads_h = yes; then |
| 10170 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10171 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10175 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10178 | |
| 10179 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10180 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10182 | |
| 10183 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10184 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10185 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10187 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10188 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10189 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10190 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10192 | fi |
| 10193 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10194 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | # Is the header compilable? |
| 10197 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10198 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10199 | cat >conftest.$ac_ext <<_ACEOF |
| 10200 | #line $LINENO "configure" |
| 10201 | #include "confdefs.h" |
| 10202 | $ac_includes_default |
| 10203 | #include <mach/cthreads.h> |
| 10204 | _ACEOF |
| 10205 | rm -f conftest.$ac_objext |
| 10206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10207 | (eval $ac_compile) 2>&5 |
| 10208 | ac_status=$? |
| 10209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10210 | (exit $ac_status); } && |
| 10211 | { ac_try='test -s conftest.$ac_objext' |
| 10212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10213 | (eval $ac_try) 2>&5 |
| 10214 | ac_status=$? |
| 10215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10216 | (exit $ac_status); }; }; then |
| 10217 | ac_header_compiler=yes |
| 10218 | else |
| 10219 | echo "$as_me: failed program was:" >&5 |
| 10220 | cat conftest.$ac_ext >&5 |
| 10221 | ac_header_compiler=no |
| 10222 | fi |
| 10223 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10224 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10225 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10226 | |
| 10227 | # Is the header present? |
| 10228 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10229 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10230 | cat >conftest.$ac_ext <<_ACEOF |
| 10231 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10232 | #include "confdefs.h" |
| 10233 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 | _ACEOF |
| 10235 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10236 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10237 | ac_status=$? |
| 10238 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10239 | rm -f conftest.er1 |
| 10240 | cat conftest.err >&5 |
| 10241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10242 | (exit $ac_status); } >/dev/null; then |
| 10243 | if test -s conftest.err; then |
| 10244 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10245 | else |
| 10246 | ac_cpp_err= |
| 10247 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | ac_cpp_err=yes |
| 10250 | fi |
| 10251 | if test -z "$ac_cpp_err"; then |
| 10252 | ac_header_preproc=yes |
| 10253 | else |
| 10254 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10255 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10257 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | rm -f conftest.err conftest.$ac_ext |
| 10259 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10260 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10261 | |
| 10262 | # So? What about this header? |
| 10263 | case $ac_header_compiler:$ac_header_preproc in |
| 10264 | yes:no ) |
| 10265 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10266 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10267 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10268 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10269 | no:yes ) |
| 10270 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10271 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10272 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10273 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10274 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10275 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10276 | esac |
| 10277 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10278 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10279 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10281 | else |
| 10282 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10283 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10285 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10286 | |
| 10287 | fi |
| 10288 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10289 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10290 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10293 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10294 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | |
| 10298 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10299 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10301 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10302 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10303 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10305 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10306 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10307 | |
| 10308 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10309 | if test "${with_pth+set}" = set; then |
| 10310 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10311 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10312 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10313 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | #define WITH_THREAD 1 |
| 10315 | _ACEOF |
| 10316 | |
| 10317 | |
| 10318 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10319 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10320 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10321 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10322 | LIBS="-lpth $LIBS" |
| 10323 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10324 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10325 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10327 | |
| 10328 | # Just looking for pthread_create in libpthread is not enough: |
| 10329 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10330 | # So we really have to include pthread.h, and then link. |
| 10331 | _libs=$LIBS |
| 10332 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10334 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10335 | cat >conftest.$ac_ext <<_ACEOF |
| 10336 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10337 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10338 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10339 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10340 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | #ifdef F77_DUMMY_MAIN |
| 10342 | # ifdef __cplusplus |
| 10343 | extern "C" |
| 10344 | # endif |
| 10345 | int F77_DUMMY_MAIN() { return 1; } |
| 10346 | #endif |
| 10347 | int |
| 10348 | main () |
| 10349 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10350 | |
| 10351 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10352 | ; |
| 10353 | return 0; |
| 10354 | } |
| 10355 | _ACEOF |
| 10356 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10358 | (eval $ac_link) 2>&5 |
| 10359 | ac_status=$? |
| 10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10361 | (exit $ac_status); } && |
| 10362 | { ac_try='test -s conftest$ac_exeext' |
| 10363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10364 | (eval $ac_try) 2>&5 |
| 10365 | ac_status=$? |
| 10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10367 | (exit $ac_status); }; }; then |
| 10368 | |
| 10369 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10370 | echo "${ECHO_T}yes" >&6 |
| 10371 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10372 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10373 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10374 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10375 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10376 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | echo "$as_me: failed program was:" >&5 |
| 10379 | cat conftest.$ac_ext >&5 |
| 10380 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10381 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10382 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10383 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10384 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | cat >conftest.$ac_ext <<_ACEOF |
| 10388 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10389 | #include "confdefs.h" |
| 10390 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10392 | #include <assert.h> |
| 10393 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | #ifdef __cplusplus |
| 10395 | extern "C" |
| 10396 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10397 | /* 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] | 10398 | builtin and then its argument prototype would still apply. */ |
| 10399 | char pthread_detach (); |
| 10400 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | #ifdef F77_DUMMY_MAIN |
| 10403 | # ifdef __cplusplus |
| 10404 | extern "C" |
| 10405 | # endif |
| 10406 | int F77_DUMMY_MAIN() { return 1; } |
| 10407 | #endif |
| 10408 | int |
| 10409 | main () |
| 10410 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10411 | /* The GNU C library defines this for functions which it implements |
| 10412 | to always fail with ENOSYS. Some functions are actually named |
| 10413 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10414 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10415 | choke me |
| 10416 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10418 | #endif |
| 10419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10420 | ; |
| 10421 | return 0; |
| 10422 | } |
| 10423 | _ACEOF |
| 10424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10426 | (eval $ac_link) 2>&5 |
| 10427 | ac_status=$? |
| 10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10429 | (exit $ac_status); } && |
| 10430 | { ac_try='test -s conftest$ac_exeext' |
| 10431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10432 | (eval $ac_try) 2>&5 |
| 10433 | ac_status=$? |
| 10434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10435 | (exit $ac_status); }; }; then |
| 10436 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10438 | echo "$as_me: failed program was:" >&5 |
| 10439 | cat conftest.$ac_ext >&5 |
| 10440 | ac_cv_func_pthread_detach=no |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10445 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10446 | if test $ac_cv_func_pthread_detach = yes; then |
| 10447 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10448 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10449 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10450 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10451 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10452 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10453 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10454 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10455 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10456 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10457 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10458 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10460 | fi |
| 10461 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10462 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10463 | else |
| 10464 | # Is the header compilable? |
| 10465 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10466 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10467 | cat >conftest.$ac_ext <<_ACEOF |
| 10468 | #line $LINENO "configure" |
| 10469 | #include "confdefs.h" |
| 10470 | $ac_includes_default |
| 10471 | #include <atheos/threads.h> |
| 10472 | _ACEOF |
| 10473 | rm -f conftest.$ac_objext |
| 10474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10475 | (eval $ac_compile) 2>&5 |
| 10476 | ac_status=$? |
| 10477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10478 | (exit $ac_status); } && |
| 10479 | { ac_try='test -s conftest.$ac_objext' |
| 10480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10481 | (eval $ac_try) 2>&5 |
| 10482 | ac_status=$? |
| 10483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10484 | (exit $ac_status); }; }; then |
| 10485 | ac_header_compiler=yes |
| 10486 | else |
| 10487 | echo "$as_me: failed program was:" >&5 |
| 10488 | cat conftest.$ac_ext >&5 |
| 10489 | ac_header_compiler=no |
| 10490 | fi |
| 10491 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10492 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10493 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10494 | |
| 10495 | # Is the header present? |
| 10496 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10497 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10498 | cat >conftest.$ac_ext <<_ACEOF |
| 10499 | #line $LINENO "configure" |
| 10500 | #include "confdefs.h" |
| 10501 | #include <atheos/threads.h> |
| 10502 | _ACEOF |
| 10503 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10504 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10505 | ac_status=$? |
| 10506 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10507 | rm -f conftest.er1 |
| 10508 | cat conftest.err >&5 |
| 10509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10510 | (exit $ac_status); } >/dev/null; then |
| 10511 | if test -s conftest.err; then |
| 10512 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10513 | else |
| 10514 | ac_cpp_err= |
| 10515 | fi |
| 10516 | else |
| 10517 | ac_cpp_err=yes |
| 10518 | fi |
| 10519 | if test -z "$ac_cpp_err"; then |
| 10520 | ac_header_preproc=yes |
| 10521 | else |
| 10522 | echo "$as_me: failed program was:" >&5 |
| 10523 | cat conftest.$ac_ext >&5 |
| 10524 | ac_header_preproc=no |
| 10525 | fi |
| 10526 | rm -f conftest.err conftest.$ac_ext |
| 10527 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10528 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10529 | |
| 10530 | # So? What about this header? |
| 10531 | case $ac_header_compiler:$ac_header_preproc in |
| 10532 | yes:no ) |
| 10533 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10534 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10535 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10536 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10537 | no:yes ) |
| 10538 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10539 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10540 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10541 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10542 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10543 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10544 | esac |
| 10545 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10546 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10547 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10549 | else |
| 10550 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10551 | fi |
| 10552 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10553 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10554 | |
| 10555 | fi |
| 10556 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10557 | cat >>confdefs.h <<\_ACEOF |
| 10558 | #define WITH_THREAD 1 |
| 10559 | _ACEOF |
| 10560 | |
| 10561 | |
| 10562 | cat >>confdefs.h <<\_ACEOF |
| 10563 | #define ATHEOS_THREADS 1 |
| 10564 | _ACEOF |
| 10565 | |
| 10566 | THREADOBJ="Python/thread.o" |
| 10567 | else |
| 10568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10569 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10570 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10571 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10572 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10574 | fi |
| 10575 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10576 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10578 | # Is the header compilable? |
| 10579 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10580 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10581 | cat >conftest.$ac_ext <<_ACEOF |
| 10582 | #line $LINENO "configure" |
| 10583 | #include "confdefs.h" |
| 10584 | $ac_includes_default |
| 10585 | #include <kernel/OS.h> |
| 10586 | _ACEOF |
| 10587 | rm -f conftest.$ac_objext |
| 10588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10589 | (eval $ac_compile) 2>&5 |
| 10590 | ac_status=$? |
| 10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10592 | (exit $ac_status); } && |
| 10593 | { ac_try='test -s conftest.$ac_objext' |
| 10594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10595 | (eval $ac_try) 2>&5 |
| 10596 | ac_status=$? |
| 10597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10598 | (exit $ac_status); }; }; then |
| 10599 | ac_header_compiler=yes |
| 10600 | else |
| 10601 | echo "$as_me: failed program was:" >&5 |
| 10602 | cat conftest.$ac_ext >&5 |
| 10603 | ac_header_compiler=no |
| 10604 | fi |
| 10605 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10606 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10607 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10608 | |
| 10609 | # Is the header present? |
| 10610 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10611 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10612 | cat >conftest.$ac_ext <<_ACEOF |
| 10613 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10614 | #include "confdefs.h" |
| 10615 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10616 | _ACEOF |
| 10617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10619 | ac_status=$? |
| 10620 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10621 | rm -f conftest.er1 |
| 10622 | cat conftest.err >&5 |
| 10623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10624 | (exit $ac_status); } >/dev/null; then |
| 10625 | if test -s conftest.err; then |
| 10626 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10627 | else |
| 10628 | ac_cpp_err= |
| 10629 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10631 | ac_cpp_err=yes |
| 10632 | fi |
| 10633 | if test -z "$ac_cpp_err"; then |
| 10634 | ac_header_preproc=yes |
| 10635 | else |
| 10636 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10637 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10638 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10639 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | rm -f conftest.err conftest.$ac_ext |
| 10641 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10642 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10644 | # So? What about this header? |
| 10645 | case $ac_header_compiler:$ac_header_preproc in |
| 10646 | yes:no ) |
| 10647 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10648 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10649 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10650 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10651 | no:yes ) |
| 10652 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10653 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10654 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10655 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10656 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10657 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10658 | esac |
| 10659 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10660 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10661 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10663 | else |
| 10664 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10665 | fi |
| 10666 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10667 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10668 | |
| 10669 | fi |
| 10670 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10671 | cat >>confdefs.h <<\_ACEOF |
| 10672 | #define WITH_THREAD 1 |
| 10673 | _ACEOF |
| 10674 | |
| 10675 | |
| 10676 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10677 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10679 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10680 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10681 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10683 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10684 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10685 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10689 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10690 | cat >conftest.$ac_ext <<_ACEOF |
| 10691 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10692 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10694 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10695 | #ifdef __cplusplus |
| 10696 | extern "C" |
| 10697 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10698 | /* 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] | 10699 | builtin and then its argument prototype would still apply. */ |
| 10700 | char pthread_create (); |
| 10701 | #ifdef F77_DUMMY_MAIN |
| 10702 | # ifdef __cplusplus |
| 10703 | extern "C" |
| 10704 | # endif |
| 10705 | int F77_DUMMY_MAIN() { return 1; } |
| 10706 | #endif |
| 10707 | int |
| 10708 | main () |
| 10709 | { |
| 10710 | pthread_create (); |
| 10711 | ; |
| 10712 | return 0; |
| 10713 | } |
| 10714 | _ACEOF |
| 10715 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10717 | (eval $ac_link) 2>&5 |
| 10718 | ac_status=$? |
| 10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10720 | (exit $ac_status); } && |
| 10721 | { ac_try='test -s conftest$ac_exeext' |
| 10722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10723 | (eval $ac_try) 2>&5 |
| 10724 | ac_status=$? |
| 10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10726 | (exit $ac_status); }; }; then |
| 10727 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10728 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10729 | echo "$as_me: failed program was:" >&5 |
| 10730 | cat conftest.$ac_ext >&5 |
| 10731 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10732 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10733 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10734 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10735 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10736 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10737 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10738 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10739 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10740 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10742 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10743 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10744 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10745 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10746 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10749 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10750 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10753 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10754 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | cat >conftest.$ac_ext <<_ACEOF |
| 10756 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10757 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10758 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10759 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | #ifdef __cplusplus |
| 10761 | extern "C" |
| 10762 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10763 | /* 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] | 10764 | builtin and then its argument prototype would still apply. */ |
| 10765 | char pthread_create (); |
| 10766 | #ifdef F77_DUMMY_MAIN |
| 10767 | # ifdef __cplusplus |
| 10768 | extern "C" |
| 10769 | # endif |
| 10770 | int F77_DUMMY_MAIN() { return 1; } |
| 10771 | #endif |
| 10772 | int |
| 10773 | main () |
| 10774 | { |
| 10775 | pthread_create (); |
| 10776 | ; |
| 10777 | return 0; |
| 10778 | } |
| 10779 | _ACEOF |
| 10780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10782 | (eval $ac_link) 2>&5 |
| 10783 | ac_status=$? |
| 10784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10785 | (exit $ac_status); } && |
| 10786 | { ac_try='test -s conftest$ac_exeext' |
| 10787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10788 | (eval $ac_try) 2>&5 |
| 10789 | ac_status=$? |
| 10790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10791 | (exit $ac_status); }; }; then |
| 10792 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10794 | echo "$as_me: failed program was:" >&5 |
| 10795 | cat conftest.$ac_ext >&5 |
| 10796 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10797 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10799 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10800 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10801 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10802 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10803 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10804 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10805 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10806 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10807 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10808 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10809 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10810 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10811 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10813 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10814 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10815 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10817 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10818 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10819 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10820 | cat >conftest.$ac_ext <<_ACEOF |
| 10821 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10822 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10823 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10824 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10825 | #ifdef __cplusplus |
| 10826 | extern "C" |
| 10827 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10828 | /* 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] | 10829 | builtin and then its argument prototype would still apply. */ |
| 10830 | char __d6_pthread_create (); |
| 10831 | #ifdef F77_DUMMY_MAIN |
| 10832 | # ifdef __cplusplus |
| 10833 | extern "C" |
| 10834 | # endif |
| 10835 | int F77_DUMMY_MAIN() { return 1; } |
| 10836 | #endif |
| 10837 | int |
| 10838 | main () |
| 10839 | { |
| 10840 | __d6_pthread_create (); |
| 10841 | ; |
| 10842 | return 0; |
| 10843 | } |
| 10844 | _ACEOF |
| 10845 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10847 | (eval $ac_link) 2>&5 |
| 10848 | ac_status=$? |
| 10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10850 | (exit $ac_status); } && |
| 10851 | { ac_try='test -s conftest$ac_exeext' |
| 10852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10853 | (eval $ac_try) 2>&5 |
| 10854 | ac_status=$? |
| 10855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10856 | (exit $ac_status); }; }; then |
| 10857 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10859 | echo "$as_me: failed program was:" >&5 |
| 10860 | cat conftest.$ac_ext >&5 |
| 10861 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10862 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10863 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10864 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10865 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10866 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10867 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10868 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10869 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10870 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10871 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10872 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10873 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10874 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10875 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10876 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10879 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10880 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10884 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10885 | cat >conftest.$ac_ext <<_ACEOF |
| 10886 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10887 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10888 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10889 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | #ifdef __cplusplus |
| 10891 | extern "C" |
| 10892 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10893 | /* 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] | 10894 | builtin and then its argument prototype would still apply. */ |
| 10895 | char __pthread_create_system (); |
| 10896 | #ifdef F77_DUMMY_MAIN |
| 10897 | # ifdef __cplusplus |
| 10898 | extern "C" |
| 10899 | # endif |
| 10900 | int F77_DUMMY_MAIN() { return 1; } |
| 10901 | #endif |
| 10902 | int |
| 10903 | main () |
| 10904 | { |
| 10905 | __pthread_create_system (); |
| 10906 | ; |
| 10907 | return 0; |
| 10908 | } |
| 10909 | _ACEOF |
| 10910 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10912 | (eval $ac_link) 2>&5 |
| 10913 | ac_status=$? |
| 10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10915 | (exit $ac_status); } && |
| 10916 | { ac_try='test -s conftest$ac_exeext' |
| 10917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10918 | (eval $ac_try) 2>&5 |
| 10919 | ac_status=$? |
| 10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10921 | (exit $ac_status); }; }; then |
| 10922 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | echo "$as_me: failed program was:" >&5 |
| 10925 | cat conftest.$ac_ext >&5 |
| 10926 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10927 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10928 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10929 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10930 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10931 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10932 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10933 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10934 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10935 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10936 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10937 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10938 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10939 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10940 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10941 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10943 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10944 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10945 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10949 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10950 | cat >conftest.$ac_ext <<_ACEOF |
| 10951 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10952 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10953 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10954 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 | #ifdef __cplusplus |
| 10956 | extern "C" |
| 10957 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10958 | /* 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] | 10959 | builtin and then its argument prototype would still apply. */ |
| 10960 | char pthread_create (); |
| 10961 | #ifdef F77_DUMMY_MAIN |
| 10962 | # ifdef __cplusplus |
| 10963 | extern "C" |
| 10964 | # endif |
| 10965 | int F77_DUMMY_MAIN() { return 1; } |
| 10966 | #endif |
| 10967 | int |
| 10968 | main () |
| 10969 | { |
| 10970 | pthread_create (); |
| 10971 | ; |
| 10972 | return 0; |
| 10973 | } |
| 10974 | _ACEOF |
| 10975 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10977 | (eval $ac_link) 2>&5 |
| 10978 | ac_status=$? |
| 10979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10980 | (exit $ac_status); } && |
| 10981 | { ac_try='test -s conftest$ac_exeext' |
| 10982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10983 | (eval $ac_try) 2>&5 |
| 10984 | ac_status=$? |
| 10985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10986 | (exit $ac_status); }; }; then |
| 10987 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | echo "$as_me: failed program was:" >&5 |
| 10990 | cat conftest.$ac_ext >&5 |
| 10991 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10992 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10993 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10994 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10996 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10997 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10998 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10999 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11000 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11001 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11002 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11003 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11004 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11005 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11006 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11007 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11008 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11009 | fi |
| 11010 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11011 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11012 | fi |
| 11013 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11014 | fi |
| 11015 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11016 | fi |
| 11017 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11018 | fi |
| 11019 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11020 | fi |
| 11021 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11022 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11023 | fi |
| 11024 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11025 | |
| 11026 | fi |
| 11027 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11029 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11030 | fi; |
| 11031 | fi |
| 11032 | |
| 11033 | |
| 11034 | fi |
| 11035 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11036 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11037 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11038 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11039 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | |
| 11041 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11042 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11044 | |
| 11045 | fi |
| 11046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11048 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11049 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11051 | else |
| 11052 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11053 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11055 | cat >conftest.$ac_ext <<_ACEOF |
| 11056 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11057 | #include "confdefs.h" |
| 11058 | #include <pthread.h> |
| 11059 | void *foo(void *parm) { |
| 11060 | return NULL; |
| 11061 | } |
| 11062 | main() { |
| 11063 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11064 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11065 | if (pthread_attr_init(&attr)) exit(-1); |
| 11066 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11067 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11068 | exit(0); |
| 11069 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | _ACEOF |
| 11071 | rm -f conftest$ac_exeext |
| 11072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11073 | (eval $ac_link) 2>&5 |
| 11074 | ac_status=$? |
| 11075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11076 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11078 | (eval $ac_try) 2>&5 |
| 11079 | ac_status=$? |
| 11080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11081 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11082 | ac_cv_pthread_system_supported=yes |
| 11083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11085 | echo "$as_me: failed program was:" >&5 |
| 11086 | cat conftest.$ac_ext >&5 |
| 11087 | ( exit $ac_status ) |
| 11088 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11089 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11090 | 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] | 11091 | fi |
| 11092 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11093 | fi |
| 11094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11095 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11096 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11097 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11098 | |
| 11099 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11100 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11101 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11102 | |
| 11103 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11104 | |
| 11105 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11106 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11110 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11113 | cat >conftest.$ac_ext <<_ACEOF |
| 11114 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11115 | #include "confdefs.h" |
| 11116 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11117 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11118 | #include <assert.h> |
| 11119 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11120 | #ifdef __cplusplus |
| 11121 | extern "C" |
| 11122 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11123 | /* 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] | 11124 | builtin and then its argument prototype would still apply. */ |
| 11125 | char $ac_func (); |
| 11126 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11128 | #ifdef F77_DUMMY_MAIN |
| 11129 | # ifdef __cplusplus |
| 11130 | extern "C" |
| 11131 | # endif |
| 11132 | int F77_DUMMY_MAIN() { return 1; } |
| 11133 | #endif |
| 11134 | int |
| 11135 | main () |
| 11136 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11137 | /* The GNU C library defines this for functions which it implements |
| 11138 | to always fail with ENOSYS. Some functions are actually named |
| 11139 | something starting with __ and the normal name is an alias. */ |
| 11140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11141 | choke me |
| 11142 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11143 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11144 | #endif |
| 11145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11146 | ; |
| 11147 | return 0; |
| 11148 | } |
| 11149 | _ACEOF |
| 11150 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11152 | (eval $ac_link) 2>&5 |
| 11153 | ac_status=$? |
| 11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11155 | (exit $ac_status); } && |
| 11156 | { ac_try='test -s conftest$ac_exeext' |
| 11157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11158 | (eval $ac_try) 2>&5 |
| 11159 | ac_status=$? |
| 11160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11161 | (exit $ac_status); }; }; then |
| 11162 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11164 | echo "$as_me: failed program was:" >&5 |
| 11165 | cat conftest.$ac_ext >&5 |
| 11166 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11169 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11172 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11173 | cat >>confdefs.h <<_ACEOF |
| 11174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11175 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11176 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11177 | fi |
| 11178 | done |
| 11179 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11180 | fi |
| 11181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11182 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11183 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11184 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11188 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11189 | cat >conftest.$ac_ext <<_ACEOF |
| 11190 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11191 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11192 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11193 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | #ifdef __cplusplus |
| 11195 | extern "C" |
| 11196 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11197 | /* 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] | 11198 | builtin and then its argument prototype would still apply. */ |
| 11199 | char usconfig (); |
| 11200 | #ifdef F77_DUMMY_MAIN |
| 11201 | # ifdef __cplusplus |
| 11202 | extern "C" |
| 11203 | # endif |
| 11204 | int F77_DUMMY_MAIN() { return 1; } |
| 11205 | #endif |
| 11206 | int |
| 11207 | main () |
| 11208 | { |
| 11209 | usconfig (); |
| 11210 | ; |
| 11211 | return 0; |
| 11212 | } |
| 11213 | _ACEOF |
| 11214 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11216 | (eval $ac_link) 2>&5 |
| 11217 | ac_status=$? |
| 11218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11219 | (exit $ac_status); } && |
| 11220 | { ac_try='test -s conftest$ac_exeext' |
| 11221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11222 | (eval $ac_try) 2>&5 |
| 11223 | ac_status=$? |
| 11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11225 | (exit $ac_status); }; }; then |
| 11226 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11227 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | echo "$as_me: failed program was:" >&5 |
| 11229 | cat conftest.$ac_ext >&5 |
| 11230 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11231 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11232 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11233 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11234 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11235 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11236 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11237 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11238 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11239 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11240 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11241 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11242 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11243 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11244 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11245 | fi |
| 11246 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11247 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11248 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11249 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11250 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11251 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11253 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11255 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | cat >conftest.$ac_ext <<_ACEOF |
| 11257 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11258 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11260 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | #ifdef __cplusplus |
| 11262 | extern "C" |
| 11263 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11264 | /* 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] | 11265 | builtin and then its argument prototype would still apply. */ |
| 11266 | char thr_create (); |
| 11267 | #ifdef F77_DUMMY_MAIN |
| 11268 | # ifdef __cplusplus |
| 11269 | extern "C" |
| 11270 | # endif |
| 11271 | int F77_DUMMY_MAIN() { return 1; } |
| 11272 | #endif |
| 11273 | int |
| 11274 | main () |
| 11275 | { |
| 11276 | thr_create (); |
| 11277 | ; |
| 11278 | return 0; |
| 11279 | } |
| 11280 | _ACEOF |
| 11281 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11283 | (eval $ac_link) 2>&5 |
| 11284 | ac_status=$? |
| 11285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11286 | (exit $ac_status); } && |
| 11287 | { ac_try='test -s conftest$ac_exeext' |
| 11288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11289 | (eval $ac_try) 2>&5 |
| 11290 | ac_status=$? |
| 11291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11292 | (exit $ac_status); }; }; then |
| 11293 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | echo "$as_me: failed program was:" >&5 |
| 11296 | cat conftest.$ac_ext >&5 |
| 11297 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11298 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11300 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11303 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11304 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11305 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11306 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11308 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11309 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11310 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11311 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11312 | fi |
| 11313 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11314 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11315 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11316 | if test "$USE_THREAD_MODULE" != "#" |
| 11317 | then |
| 11318 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11319 | # needs this '-threads' argument during linking. |
| 11320 | case $ac_sys_system in |
| 11321 | OSF1) LDLAST=-threads;; |
| 11322 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11323 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11324 | |
| 11325 | if test "$posix_threads" = yes -a \ |
| 11326 | "$ac_sys_system" = "SunOS" -a \ |
| 11327 | "$ac_sys_release" = "5.6"; then |
| 11328 | |
| 11329 | cat >>confdefs.h <<\_ACEOF |
| 11330 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11331 | _ACEOF |
| 11332 | |
| 11333 | fi |
| 11334 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11335 | fi |
| 11336 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11337 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11338 | |
| 11339 | |
| 11340 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11341 | 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] | 11342 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11343 | if test "${enable_ipv6+set}" = set; then |
| 11344 | enableval="$enable_ipv6" |
| 11345 | case "$enableval" in |
| 11346 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11347 | echo "$as_me:$LINENO: result: no" >&5 |
| 11348 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11349 | ipv6=no |
| 11350 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11352 | echo "${ECHO_T}yes" >&6 |
| 11353 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11354 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11355 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11356 | |
| 11357 | ipv6=yes |
| 11358 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11362 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11363 | echo "$as_me:$LINENO: result: no" >&5 |
| 11364 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11365 | ipv6=no |
| 11366 | |
| 11367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11368 | cat >conftest.$ac_ext <<_ACEOF |
| 11369 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11370 | #include "confdefs.h" |
| 11371 | /* AF_INET6 available check */ |
| 11372 | #include <sys/types.h> |
| 11373 | #include <sys/socket.h> |
| 11374 | main() |
| 11375 | { |
| 11376 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11377 | exit(1); |
| 11378 | else |
| 11379 | exit(0); |
| 11380 | } |
| 11381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | _ACEOF |
| 11383 | rm -f conftest$ac_exeext |
| 11384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11385 | (eval $ac_link) 2>&5 |
| 11386 | ac_status=$? |
| 11387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11390 | (eval $ac_try) 2>&5 |
| 11391 | ac_status=$? |
| 11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11393 | (exit $ac_status); }; }; then |
| 11394 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11395 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11396 | ipv6=yes |
| 11397 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11398 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11399 | echo "$as_me: failed program was:" >&5 |
| 11400 | cat conftest.$ac_ext >&5 |
| 11401 | ( exit $ac_status ) |
| 11402 | echo "$as_me:$LINENO: result: no" >&5 |
| 11403 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11404 | ipv6=no |
| 11405 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 | 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] | 11407 | fi |
| 11408 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11409 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11410 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11411 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11412 | cat >conftest.$ac_ext <<_ACEOF |
| 11413 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11414 | #include "confdefs.h" |
| 11415 | #include <sys/types.h> |
| 11416 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | #ifdef F77_DUMMY_MAIN |
| 11418 | # ifdef __cplusplus |
| 11419 | extern "C" |
| 11420 | # endif |
| 11421 | int F77_DUMMY_MAIN() { return 1; } |
| 11422 | #endif |
| 11423 | int |
| 11424 | main () |
| 11425 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11426 | struct sockaddr_in6 x; |
| 11427 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | ; |
| 11429 | return 0; |
| 11430 | } |
| 11431 | _ACEOF |
| 11432 | rm -f conftest.$ac_objext |
| 11433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11434 | (eval $ac_compile) 2>&5 |
| 11435 | ac_status=$? |
| 11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11437 | (exit $ac_status); } && |
| 11438 | { ac_try='test -s conftest.$ac_objext' |
| 11439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11440 | (eval $ac_try) 2>&5 |
| 11441 | ac_status=$? |
| 11442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11443 | (exit $ac_status); }; }; then |
| 11444 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11445 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11446 | ipv6=yes |
| 11447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | echo "$as_me: failed program was:" >&5 |
| 11449 | cat conftest.$ac_ext >&5 |
| 11450 | echo "$as_me:$LINENO: result: no" >&5 |
| 11451 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11452 | ipv6=no |
| 11453 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11455 | fi |
| 11456 | |
| 11457 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11458 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11459 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11461 | |
| 11462 | fi |
| 11463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11464 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11465 | |
| 11466 | ipv6type=unknown |
| 11467 | ipv6lib=none |
| 11468 | ipv6trylibc=no |
| 11469 | |
| 11470 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11471 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11472 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11473 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11474 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11475 | case $i in |
| 11476 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11477 | cat >conftest.$ac_ext <<_ACEOF |
| 11478 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11479 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11480 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11481 | #include <netinet/in.h> |
| 11482 | #ifdef IPV6_INRIA_VERSION |
| 11483 | yes |
| 11484 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11485 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11487 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11488 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11489 | fi |
| 11490 | rm -f conftest* |
| 11491 | |
| 11492 | ;; |
| 11493 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11494 | cat >conftest.$ac_ext <<_ACEOF |
| 11495 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11496 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11497 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11498 | #include <netinet/in.h> |
| 11499 | #ifdef __KAME__ |
| 11500 | yes |
| 11501 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11502 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11504 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11505 | ipv6type=$i; |
| 11506 | ipv6lib=inet6 |
| 11507 | ipv6libdir=/usr/local/v6/lib |
| 11508 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11509 | fi |
| 11510 | rm -f conftest* |
| 11511 | |
| 11512 | ;; |
| 11513 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11514 | cat >conftest.$ac_ext <<_ACEOF |
| 11515 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11516 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11517 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11518 | #include <features.h> |
| 11519 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11520 | yes |
| 11521 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11523 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11524 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11525 | ipv6type=$i; |
| 11526 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11527 | fi |
| 11528 | rm -f conftest* |
| 11529 | |
| 11530 | ;; |
| 11531 | linux-inet6) |
| 11532 | if test -d /usr/inet6; then |
| 11533 | ipv6type=$i |
| 11534 | ipv6lib=inet6 |
| 11535 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11536 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11537 | fi |
| 11538 | ;; |
| 11539 | solaris) |
| 11540 | if test -f /etc/netconfig; then |
| 11541 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11542 | ipv6type=$i |
| 11543 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11544 | fi |
| 11545 | fi |
| 11546 | ;; |
| 11547 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | cat >conftest.$ac_ext <<_ACEOF |
| 11549 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11550 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11551 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11552 | #include <sys/param.h> |
| 11553 | #ifdef _TOSHIBA_INET6 |
| 11554 | yes |
| 11555 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11556 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11558 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11559 | ipv6type=$i; |
| 11560 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11561 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11562 | fi |
| 11563 | rm -f conftest* |
| 11564 | |
| 11565 | ;; |
| 11566 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | cat >conftest.$ac_ext <<_ACEOF |
| 11568 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11569 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11570 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11571 | #include </usr/local/v6/include/sys/v6config.h> |
| 11572 | #ifdef __V6D__ |
| 11573 | yes |
| 11574 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11576 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11577 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11578 | ipv6type=$i; |
| 11579 | ipv6lib=v6; |
| 11580 | ipv6libdir=/usr/local/v6/lib; |
| 11581 | OPT="-I/usr/local/v6/include $OPT" |
| 11582 | fi |
| 11583 | rm -f conftest* |
| 11584 | |
| 11585 | ;; |
| 11586 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11587 | cat >conftest.$ac_ext <<_ACEOF |
| 11588 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11589 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11590 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11591 | #include <sys/param.h> |
| 11592 | #ifdef _ZETA_MINAMI_INET6 |
| 11593 | yes |
| 11594 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11595 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11597 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11598 | ipv6type=$i; |
| 11599 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11600 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11601 | fi |
| 11602 | rm -f conftest* |
| 11603 | |
| 11604 | ;; |
| 11605 | esac |
| 11606 | if test "$ipv6type" != "unknown"; then |
| 11607 | break |
| 11608 | fi |
| 11609 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11611 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11612 | fi |
| 11613 | |
| 11614 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11615 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11616 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11617 | echo "using lib$ipv6lib" |
| 11618 | else |
| 11619 | if test $ipv6trylibc = "yes"; then |
| 11620 | echo "using libc" |
| 11621 | else |
| 11622 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11623 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11624 | echo 'ipv6 kit and compile beforehand.' |
| 11625 | exit 1 |
| 11626 | fi |
| 11627 | fi |
| 11628 | fi |
| 11629 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11630 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11631 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11632 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11633 | |
| 11634 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11635 | if test "${with_universal_newlines+set}" = set; then |
| 11636 | withval="$with_universal_newlines" |
| 11637 | |
| 11638 | fi; |
| 11639 | |
| 11640 | if test -z "$with_universal_newlines" |
| 11641 | then with_universal_newlines="yes" |
| 11642 | fi |
| 11643 | if test "$with_universal_newlines" != "no" |
| 11644 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11645 | |
| 11646 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11647 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11648 | _ACEOF |
| 11649 | |
| 11650 | fi |
| 11651 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11652 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11653 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11654 | # Check for --with-doc-strings |
| 11655 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11656 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11657 | |
| 11658 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11659 | if test "${with_doc_strings+set}" = set; then |
| 11660 | withval="$with_doc_strings" |
| 11661 | |
| 11662 | fi; |
| 11663 | |
| 11664 | if test -z "$with_doc_strings" |
| 11665 | then with_doc_strings="yes" |
| 11666 | fi |
| 11667 | if test "$with_doc_strings" != "no" |
| 11668 | then |
| 11669 | |
| 11670 | cat >>confdefs.h <<\_ACEOF |
| 11671 | #define WITH_DOC_STRINGS 1 |
| 11672 | _ACEOF |
| 11673 | |
| 11674 | fi |
| 11675 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11676 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11677 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11678 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11679 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11680 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11681 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11682 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11683 | if test "${with_pymalloc+set}" = set; then |
| 11684 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11686 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11687 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11688 | if test -z "$with_pymalloc" |
| 11689 | then with_pymalloc="yes" |
| 11690 | fi |
| 11691 | if test "$with_pymalloc" != "no" |
| 11692 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11693 | |
| 11694 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11695 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11696 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11697 | |
| 11698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11699 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11700 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11701 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11702 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11703 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11704 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11705 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11706 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11707 | if test "${with_wctype_functions+set}" = set; then |
| 11708 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11710 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | then |
| 11712 | |
| 11713 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11714 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11715 | _ACEOF |
| 11716 | |
| 11717 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11718 | echo "${ECHO_T}yes" >&6 |
| 11719 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11720 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11721 | fi |
| 11722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11723 | echo "$as_me:$LINENO: result: no" >&5 |
| 11724 | echo "${ECHO_T}no" >&6 |
| 11725 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11726 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11727 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11728 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11729 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11731 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11732 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11733 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11734 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11735 | if test "${with_sgi_dl+set}" = set; then |
| 11736 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 | |
| 11738 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11739 | echo "${ECHO_T}$withval" >&6 |
| 11740 | |
| 11741 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11742 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11743 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11744 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11745 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11746 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11747 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11748 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11749 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11750 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11751 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11752 | fi |
| 11753 | DLINCLDIR=${dldir} |
| 11754 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 | echo "$as_me:$LINENO: result: no" >&5 |
| 11757 | echo "${ECHO_T}no" >&6 |
| 11758 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11760 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11761 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11762 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11763 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11764 | if test "${with_dl_dld+set}" = set; then |
| 11765 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11766 | |
| 11767 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11768 | echo "${ECHO_T}$withval" >&6 |
| 11769 | |
| 11770 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11771 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11772 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11773 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11774 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11775 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11776 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11777 | 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] | 11778 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11779 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11780 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11781 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11782 | fi |
| 11783 | DLINCLDIR=${dldir} |
| 11784 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11786 | echo "$as_me:$LINENO: result: no" >&5 |
| 11787 | echo "${ECHO_T}no" >&6 |
| 11788 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11789 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11790 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11791 | # 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] | 11792 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11793 | for ac_func in dlopen |
| 11794 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11796 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11797 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11798 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11801 | cat >conftest.$ac_ext <<_ACEOF |
| 11802 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11803 | #include "confdefs.h" |
| 11804 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11805 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11806 | #include <assert.h> |
| 11807 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11808 | #ifdef __cplusplus |
| 11809 | extern "C" |
| 11810 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11811 | /* 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] | 11812 | builtin and then its argument prototype would still apply. */ |
| 11813 | char $ac_func (); |
| 11814 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11816 | #ifdef F77_DUMMY_MAIN |
| 11817 | # ifdef __cplusplus |
| 11818 | extern "C" |
| 11819 | # endif |
| 11820 | int F77_DUMMY_MAIN() { return 1; } |
| 11821 | #endif |
| 11822 | int |
| 11823 | main () |
| 11824 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11825 | /* The GNU C library defines this for functions which it implements |
| 11826 | to always fail with ENOSYS. Some functions are actually named |
| 11827 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11828 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11829 | choke me |
| 11830 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11831 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11832 | #endif |
| 11833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11834 | ; |
| 11835 | return 0; |
| 11836 | } |
| 11837 | _ACEOF |
| 11838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11840 | (eval $ac_link) 2>&5 |
| 11841 | ac_status=$? |
| 11842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11843 | (exit $ac_status); } && |
| 11844 | { ac_try='test -s conftest$ac_exeext' |
| 11845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11846 | (eval $ac_try) 2>&5 |
| 11847 | ac_status=$? |
| 11848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11849 | (exit $ac_status); }; }; then |
| 11850 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11852 | echo "$as_me: failed program was:" >&5 |
| 11853 | cat conftest.$ac_ext >&5 |
| 11854 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11859 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11860 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11861 | cat >>confdefs.h <<_ACEOF |
| 11862 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11863 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11864 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11865 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11866 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11867 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11868 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11869 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11870 | # loading of modules. |
| 11871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11872 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11873 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11874 | if test -z "$DYNLOADFILE" |
| 11875 | then |
| 11876 | case $ac_sys_system/$ac_sys_release in |
| 11877 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11878 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11879 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11880 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11881 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11882 | *) |
| 11883 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11884 | # out any dynamic loading |
| 11885 | if test "$ac_cv_func_dlopen" = yes |
| 11886 | then DYNLOADFILE="dynload_shlib.o" |
| 11887 | else DYNLOADFILE="dynload_stub.o" |
| 11888 | fi |
| 11889 | ;; |
| 11890 | esac |
| 11891 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11893 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11894 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11895 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11896 | |
| 11897 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11898 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11899 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11900 | |
| 11901 | fi |
| 11902 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11903 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11904 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11906 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11907 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11908 | if test -z "$MACHDEP_OBJS" |
| 11909 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11910 | MACHDEP_OBJS=$extra_machdep_objs |
| 11911 | else |
| 11912 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11913 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11915 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11916 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11917 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 11989 | |
| 11990 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11991 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11992 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11993 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11994 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11995 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11996 | hstrerror inet_pton kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 11997 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11998 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11999 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 12000 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12001 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12002 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 12003 | truncate uname unsetenv utimes waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12004 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12006 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12007 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12008 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12011 | cat >conftest.$ac_ext <<_ACEOF |
| 12012 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12013 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12014 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12015 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12016 | #include <assert.h> |
| 12017 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12018 | #ifdef __cplusplus |
| 12019 | extern "C" |
| 12020 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12021 | /* 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] | 12022 | builtin and then its argument prototype would still apply. */ |
| 12023 | char $ac_func (); |
| 12024 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12026 | #ifdef F77_DUMMY_MAIN |
| 12027 | # ifdef __cplusplus |
| 12028 | extern "C" |
| 12029 | # endif |
| 12030 | int F77_DUMMY_MAIN() { return 1; } |
| 12031 | #endif |
| 12032 | int |
| 12033 | main () |
| 12034 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12035 | /* The GNU C library defines this for functions which it implements |
| 12036 | to always fail with ENOSYS. Some functions are actually named |
| 12037 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12038 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12039 | choke me |
| 12040 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12041 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12042 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12044 | ; |
| 12045 | return 0; |
| 12046 | } |
| 12047 | _ACEOF |
| 12048 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12050 | (eval $ac_link) 2>&5 |
| 12051 | ac_status=$? |
| 12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12053 | (exit $ac_status); } && |
| 12054 | { ac_try='test -s conftest$ac_exeext' |
| 12055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12056 | (eval $ac_try) 2>&5 |
| 12057 | ac_status=$? |
| 12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12059 | (exit $ac_status); }; }; then |
| 12060 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12062 | echo "$as_me: failed program was:" >&5 |
| 12063 | cat conftest.$ac_ext >&5 |
| 12064 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12069 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12070 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12071 | cat >>confdefs.h <<_ACEOF |
| 12072 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12073 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12074 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12075 | fi |
| 12076 | done |
| 12077 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12078 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12079 | # For some functions, having a definition is not sufficient, since |
| 12080 | # we want to take their address. |
| 12081 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12082 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12083 | cat >conftest.$ac_ext <<_ACEOF |
| 12084 | #line $LINENO "configure" |
| 12085 | #include "confdefs.h" |
| 12086 | #include <unistd.h> |
| 12087 | #ifdef F77_DUMMY_MAIN |
| 12088 | # ifdef __cplusplus |
| 12089 | extern "C" |
| 12090 | # endif |
| 12091 | int F77_DUMMY_MAIN() { return 1; } |
| 12092 | #endif |
| 12093 | int |
| 12094 | main () |
| 12095 | { |
| 12096 | void *x=chroot |
| 12097 | ; |
| 12098 | return 0; |
| 12099 | } |
| 12100 | _ACEOF |
| 12101 | rm -f conftest.$ac_objext |
| 12102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12103 | (eval $ac_compile) 2>&5 |
| 12104 | ac_status=$? |
| 12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12106 | (exit $ac_status); } && |
| 12107 | { ac_try='test -s conftest.$ac_objext' |
| 12108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12109 | (eval $ac_try) 2>&5 |
| 12110 | ac_status=$? |
| 12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12112 | (exit $ac_status); }; }; then |
| 12113 | |
| 12114 | cat >>confdefs.h <<\_ACEOF |
| 12115 | #define HAVE_CHROOT 1 |
| 12116 | _ACEOF |
| 12117 | |
| 12118 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12119 | echo "${ECHO_T}yes" >&6 |
| 12120 | else |
| 12121 | echo "$as_me: failed program was:" >&5 |
| 12122 | cat conftest.$ac_ext >&5 |
| 12123 | echo "$as_me:$LINENO: result: no" >&5 |
| 12124 | echo "${ECHO_T}no" >&6 |
| 12125 | |
| 12126 | fi |
| 12127 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12128 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12129 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12130 | cat >conftest.$ac_ext <<_ACEOF |
| 12131 | #line $LINENO "configure" |
| 12132 | #include "confdefs.h" |
| 12133 | #include <unistd.h> |
| 12134 | #ifdef F77_DUMMY_MAIN |
| 12135 | # ifdef __cplusplus |
| 12136 | extern "C" |
| 12137 | # endif |
| 12138 | int F77_DUMMY_MAIN() { return 1; } |
| 12139 | #endif |
| 12140 | int |
| 12141 | main () |
| 12142 | { |
| 12143 | void *x=link |
| 12144 | ; |
| 12145 | return 0; |
| 12146 | } |
| 12147 | _ACEOF |
| 12148 | rm -f conftest.$ac_objext |
| 12149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12150 | (eval $ac_compile) 2>&5 |
| 12151 | ac_status=$? |
| 12152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12153 | (exit $ac_status); } && |
| 12154 | { ac_try='test -s conftest.$ac_objext' |
| 12155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12156 | (eval $ac_try) 2>&5 |
| 12157 | ac_status=$? |
| 12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12159 | (exit $ac_status); }; }; then |
| 12160 | |
| 12161 | cat >>confdefs.h <<\_ACEOF |
| 12162 | #define HAVE_LINK 1 |
| 12163 | _ACEOF |
| 12164 | |
| 12165 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12166 | echo "${ECHO_T}yes" >&6 |
| 12167 | else |
| 12168 | echo "$as_me: failed program was:" >&5 |
| 12169 | cat conftest.$ac_ext >&5 |
| 12170 | echo "$as_me:$LINENO: result: no" >&5 |
| 12171 | echo "${ECHO_T}no" >&6 |
| 12172 | |
| 12173 | fi |
| 12174 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12175 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12176 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12177 | cat >conftest.$ac_ext <<_ACEOF |
| 12178 | #line $LINENO "configure" |
| 12179 | #include "confdefs.h" |
| 12180 | #include <unistd.h> |
| 12181 | #ifdef F77_DUMMY_MAIN |
| 12182 | # ifdef __cplusplus |
| 12183 | extern "C" |
| 12184 | # endif |
| 12185 | int F77_DUMMY_MAIN() { return 1; } |
| 12186 | #endif |
| 12187 | int |
| 12188 | main () |
| 12189 | { |
| 12190 | void *x=symlink |
| 12191 | ; |
| 12192 | return 0; |
| 12193 | } |
| 12194 | _ACEOF |
| 12195 | rm -f conftest.$ac_objext |
| 12196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12197 | (eval $ac_compile) 2>&5 |
| 12198 | ac_status=$? |
| 12199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12200 | (exit $ac_status); } && |
| 12201 | { ac_try='test -s conftest.$ac_objext' |
| 12202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12203 | (eval $ac_try) 2>&5 |
| 12204 | ac_status=$? |
| 12205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12206 | (exit $ac_status); }; }; then |
| 12207 | |
| 12208 | cat >>confdefs.h <<\_ACEOF |
| 12209 | #define HAVE_SYMLINK 1 |
| 12210 | _ACEOF |
| 12211 | |
| 12212 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12213 | echo "${ECHO_T}yes" >&6 |
| 12214 | else |
| 12215 | echo "$as_me: failed program was:" >&5 |
| 12216 | cat conftest.$ac_ext >&5 |
| 12217 | echo "$as_me:$LINENO: result: no" >&5 |
| 12218 | echo "${ECHO_T}no" >&6 |
| 12219 | |
| 12220 | fi |
| 12221 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12222 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12223 | # check for openpty and forkpty |
| 12224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12225 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12226 | for ac_func in openpty |
| 12227 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12228 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12229 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12230 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12231 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12234 | cat >conftest.$ac_ext <<_ACEOF |
| 12235 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12236 | #include "confdefs.h" |
| 12237 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12238 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12239 | #include <assert.h> |
| 12240 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12241 | #ifdef __cplusplus |
| 12242 | extern "C" |
| 12243 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12244 | /* 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] | 12245 | builtin and then its argument prototype would still apply. */ |
| 12246 | char $ac_func (); |
| 12247 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12249 | #ifdef F77_DUMMY_MAIN |
| 12250 | # ifdef __cplusplus |
| 12251 | extern "C" |
| 12252 | # endif |
| 12253 | int F77_DUMMY_MAIN() { return 1; } |
| 12254 | #endif |
| 12255 | int |
| 12256 | main () |
| 12257 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12258 | /* The GNU C library defines this for functions which it implements |
| 12259 | to always fail with ENOSYS. Some functions are actually named |
| 12260 | something starting with __ and the normal name is an alias. */ |
| 12261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12262 | choke me |
| 12263 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12265 | #endif |
| 12266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12267 | ; |
| 12268 | return 0; |
| 12269 | } |
| 12270 | _ACEOF |
| 12271 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12273 | (eval $ac_link) 2>&5 |
| 12274 | ac_status=$? |
| 12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12276 | (exit $ac_status); } && |
| 12277 | { ac_try='test -s conftest$ac_exeext' |
| 12278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12279 | (eval $ac_try) 2>&5 |
| 12280 | ac_status=$? |
| 12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12282 | (exit $ac_status); }; }; then |
| 12283 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 | echo "$as_me: failed program was:" >&5 |
| 12286 | cat conftest.$ac_ext >&5 |
| 12287 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12290 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12291 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12292 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12293 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12294 | cat >>confdefs.h <<_ACEOF |
| 12295 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12296 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12297 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12299 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12300 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12301 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12304 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12305 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12306 | cat >conftest.$ac_ext <<_ACEOF |
| 12307 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12308 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12309 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12310 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12311 | #ifdef __cplusplus |
| 12312 | extern "C" |
| 12313 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12314 | /* 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] | 12315 | builtin and then its argument prototype would still apply. */ |
| 12316 | char openpty (); |
| 12317 | #ifdef F77_DUMMY_MAIN |
| 12318 | # ifdef __cplusplus |
| 12319 | extern "C" |
| 12320 | # endif |
| 12321 | int F77_DUMMY_MAIN() { return 1; } |
| 12322 | #endif |
| 12323 | int |
| 12324 | main () |
| 12325 | { |
| 12326 | openpty (); |
| 12327 | ; |
| 12328 | return 0; |
| 12329 | } |
| 12330 | _ACEOF |
| 12331 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12333 | (eval $ac_link) 2>&5 |
| 12334 | ac_status=$? |
| 12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12336 | (exit $ac_status); } && |
| 12337 | { ac_try='test -s conftest$ac_exeext' |
| 12338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12339 | (eval $ac_try) 2>&5 |
| 12340 | ac_status=$? |
| 12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12342 | (exit $ac_status); }; }; then |
| 12343 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12345 | echo "$as_me: failed program was:" >&5 |
| 12346 | cat conftest.$ac_ext >&5 |
| 12347 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12349 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12350 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12351 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12353 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12354 | if test $ac_cv_lib_util_openpty = yes; then |
| 12355 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12356 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12357 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12358 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12359 | fi |
| 12360 | |
| 12361 | fi |
| 12362 | done |
| 12363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12364 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12365 | for ac_func in forkpty |
| 12366 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12368 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12370 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12372 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12373 | cat >conftest.$ac_ext <<_ACEOF |
| 12374 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12375 | #include "confdefs.h" |
| 12376 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12377 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12378 | #include <assert.h> |
| 12379 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 | #ifdef __cplusplus |
| 12381 | extern "C" |
| 12382 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12383 | /* 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] | 12384 | builtin and then its argument prototype would still apply. */ |
| 12385 | char $ac_func (); |
| 12386 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12388 | #ifdef F77_DUMMY_MAIN |
| 12389 | # ifdef __cplusplus |
| 12390 | extern "C" |
| 12391 | # endif |
| 12392 | int F77_DUMMY_MAIN() { return 1; } |
| 12393 | #endif |
| 12394 | int |
| 12395 | main () |
| 12396 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12397 | /* The GNU C library defines this for functions which it implements |
| 12398 | to always fail with ENOSYS. Some functions are actually named |
| 12399 | something starting with __ and the normal name is an alias. */ |
| 12400 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12401 | choke me |
| 12402 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12403 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12404 | #endif |
| 12405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12406 | ; |
| 12407 | return 0; |
| 12408 | } |
| 12409 | _ACEOF |
| 12410 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12412 | (eval $ac_link) 2>&5 |
| 12413 | ac_status=$? |
| 12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12415 | (exit $ac_status); } && |
| 12416 | { ac_try='test -s conftest$ac_exeext' |
| 12417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12418 | (eval $ac_try) 2>&5 |
| 12419 | ac_status=$? |
| 12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12421 | (exit $ac_status); }; }; then |
| 12422 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12424 | echo "$as_me: failed program was:" >&5 |
| 12425 | cat conftest.$ac_ext >&5 |
| 12426 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12429 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12431 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12432 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12433 | cat >>confdefs.h <<_ACEOF |
| 12434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12435 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12436 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12438 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12439 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12440 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12443 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12444 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12445 | cat >conftest.$ac_ext <<_ACEOF |
| 12446 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12447 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12448 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12449 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12450 | #ifdef __cplusplus |
| 12451 | extern "C" |
| 12452 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12453 | /* 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] | 12454 | builtin and then its argument prototype would still apply. */ |
| 12455 | char forkpty (); |
| 12456 | #ifdef F77_DUMMY_MAIN |
| 12457 | # ifdef __cplusplus |
| 12458 | extern "C" |
| 12459 | # endif |
| 12460 | int F77_DUMMY_MAIN() { return 1; } |
| 12461 | #endif |
| 12462 | int |
| 12463 | main () |
| 12464 | { |
| 12465 | forkpty (); |
| 12466 | ; |
| 12467 | return 0; |
| 12468 | } |
| 12469 | _ACEOF |
| 12470 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12472 | (eval $ac_link) 2>&5 |
| 12473 | ac_status=$? |
| 12474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12475 | (exit $ac_status); } && |
| 12476 | { ac_try='test -s conftest$ac_exeext' |
| 12477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12478 | (eval $ac_try) 2>&5 |
| 12479 | ac_status=$? |
| 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12481 | (exit $ac_status); }; }; then |
| 12482 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | echo "$as_me: failed program was:" >&5 |
| 12485 | cat conftest.$ac_ext >&5 |
| 12486 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12488 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12489 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12490 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12491 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12492 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12493 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12494 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12495 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12496 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12497 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12498 | fi |
| 12499 | |
| 12500 | fi |
| 12501 | done |
| 12502 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12503 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12504 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12505 | |
| 12506 | |
| 12507 | |
| 12508 | |
| 12509 | |
| 12510 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12511 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12512 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12514 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12516 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12519 | cat >conftest.$ac_ext <<_ACEOF |
| 12520 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12521 | #include "confdefs.h" |
| 12522 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12523 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12524 | #include <assert.h> |
| 12525 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 | #ifdef __cplusplus |
| 12527 | extern "C" |
| 12528 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12529 | /* 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] | 12530 | builtin and then its argument prototype would still apply. */ |
| 12531 | char $ac_func (); |
| 12532 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12534 | #ifdef F77_DUMMY_MAIN |
| 12535 | # ifdef __cplusplus |
| 12536 | extern "C" |
| 12537 | # endif |
| 12538 | int F77_DUMMY_MAIN() { return 1; } |
| 12539 | #endif |
| 12540 | int |
| 12541 | main () |
| 12542 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12543 | /* The GNU C library defines this for functions which it implements |
| 12544 | to always fail with ENOSYS. Some functions are actually named |
| 12545 | something starting with __ and the normal name is an alias. */ |
| 12546 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12547 | choke me |
| 12548 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12549 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12550 | #endif |
| 12551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12552 | ; |
| 12553 | return 0; |
| 12554 | } |
| 12555 | _ACEOF |
| 12556 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12558 | (eval $ac_link) 2>&5 |
| 12559 | ac_status=$? |
| 12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12561 | (exit $ac_status); } && |
| 12562 | { ac_try='test -s conftest$ac_exeext' |
| 12563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12564 | (eval $ac_try) 2>&5 |
| 12565 | ac_status=$? |
| 12566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12567 | (exit $ac_status); }; }; then |
| 12568 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12569 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12570 | echo "$as_me: failed program was:" >&5 |
| 12571 | cat conftest.$ac_ext >&5 |
| 12572 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12575 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12576 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12577 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12578 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12579 | cat >>confdefs.h <<_ACEOF |
| 12580 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12581 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12582 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12583 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12584 | done |
| 12585 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12587 | |
| 12588 | |
| 12589 | |
| 12590 | |
| 12591 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12592 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12593 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12594 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12595 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12596 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12597 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12600 | cat >conftest.$ac_ext <<_ACEOF |
| 12601 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12602 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12603 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12604 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12605 | #include <assert.h> |
| 12606 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12607 | #ifdef __cplusplus |
| 12608 | extern "C" |
| 12609 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12610 | /* 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] | 12611 | builtin and then its argument prototype would still apply. */ |
| 12612 | char $ac_func (); |
| 12613 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12615 | #ifdef F77_DUMMY_MAIN |
| 12616 | # ifdef __cplusplus |
| 12617 | extern "C" |
| 12618 | # endif |
| 12619 | int F77_DUMMY_MAIN() { return 1; } |
| 12620 | #endif |
| 12621 | int |
| 12622 | main () |
| 12623 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12624 | /* The GNU C library defines this for functions which it implements |
| 12625 | to always fail with ENOSYS. Some functions are actually named |
| 12626 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12628 | choke me |
| 12629 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12630 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12631 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12633 | ; |
| 12634 | return 0; |
| 12635 | } |
| 12636 | _ACEOF |
| 12637 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12639 | (eval $ac_link) 2>&5 |
| 12640 | ac_status=$? |
| 12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12642 | (exit $ac_status); } && |
| 12643 | { ac_try='test -s conftest$ac_exeext' |
| 12644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12645 | (eval $ac_try) 2>&5 |
| 12646 | ac_status=$? |
| 12647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12648 | (exit $ac_status); }; }; then |
| 12649 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 | echo "$as_me: failed program was:" >&5 |
| 12652 | cat conftest.$ac_ext >&5 |
| 12653 | eval "$as_ac_var=no" |
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 | 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] | 12656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12658 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12659 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12660 | cat >>confdefs.h <<_ACEOF |
| 12661 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12662 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12663 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12665 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12666 | fi |
| 12667 | done |
| 12668 | |
| 12669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12670 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12671 | for ac_func in getpgrp |
| 12672 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12673 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12674 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12675 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12676 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12679 | cat >conftest.$ac_ext <<_ACEOF |
| 12680 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12681 | #include "confdefs.h" |
| 12682 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12684 | #include <assert.h> |
| 12685 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12686 | #ifdef __cplusplus |
| 12687 | extern "C" |
| 12688 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12689 | /* 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] | 12690 | builtin and then its argument prototype would still apply. */ |
| 12691 | char $ac_func (); |
| 12692 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12694 | #ifdef F77_DUMMY_MAIN |
| 12695 | # ifdef __cplusplus |
| 12696 | extern "C" |
| 12697 | # endif |
| 12698 | int F77_DUMMY_MAIN() { return 1; } |
| 12699 | #endif |
| 12700 | int |
| 12701 | main () |
| 12702 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12703 | /* The GNU C library defines this for functions which it implements |
| 12704 | to always fail with ENOSYS. Some functions are actually named |
| 12705 | something starting with __ and the normal name is an alias. */ |
| 12706 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12707 | choke me |
| 12708 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12709 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12710 | #endif |
| 12711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12712 | ; |
| 12713 | return 0; |
| 12714 | } |
| 12715 | _ACEOF |
| 12716 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12718 | (eval $ac_link) 2>&5 |
| 12719 | ac_status=$? |
| 12720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12721 | (exit $ac_status); } && |
| 12722 | { ac_try='test -s conftest$ac_exeext' |
| 12723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12724 | (eval $ac_try) 2>&5 |
| 12725 | ac_status=$? |
| 12726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12727 | (exit $ac_status); }; }; then |
| 12728 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12730 | echo "$as_me: failed program was:" >&5 |
| 12731 | cat conftest.$ac_ext >&5 |
| 12732 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12735 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12737 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12738 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12739 | cat >>confdefs.h <<_ACEOF |
| 12740 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12741 | _ACEOF |
| 12742 | cat >conftest.$ac_ext <<_ACEOF |
| 12743 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12744 | #include "confdefs.h" |
| 12745 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12746 | #ifdef F77_DUMMY_MAIN |
| 12747 | # ifdef __cplusplus |
| 12748 | extern "C" |
| 12749 | # endif |
| 12750 | int F77_DUMMY_MAIN() { return 1; } |
| 12751 | #endif |
| 12752 | int |
| 12753 | main () |
| 12754 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12755 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12756 | ; |
| 12757 | return 0; |
| 12758 | } |
| 12759 | _ACEOF |
| 12760 | rm -f conftest.$ac_objext |
| 12761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12762 | (eval $ac_compile) 2>&5 |
| 12763 | ac_status=$? |
| 12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12765 | (exit $ac_status); } && |
| 12766 | { ac_try='test -s conftest.$ac_objext' |
| 12767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12768 | (eval $ac_try) 2>&5 |
| 12769 | ac_status=$? |
| 12770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12771 | (exit $ac_status); }; }; then |
| 12772 | |
| 12773 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12774 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12777 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12778 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12779 | echo "$as_me: failed program was:" >&5 |
| 12780 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12781 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12782 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12783 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12784 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12785 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12786 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12787 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12788 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12789 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12791 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12792 | if test "$cross_compiling" = yes; then |
| 12793 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12794 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12795 | { (exit 1); exit 1; }; } |
| 12796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12797 | cat >conftest.$ac_ext <<_ACEOF |
| 12798 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12799 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12800 | #if HAVE_UNISTD_H |
| 12801 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12802 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | #ifdef F77_DUMMY_MAIN |
| 12805 | # ifdef __cplusplus |
| 12806 | extern "C" |
| 12807 | # endif |
| 12808 | int F77_DUMMY_MAIN() { return 1; } |
| 12809 | #endif |
| 12810 | int |
| 12811 | main () |
| 12812 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12813 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12814 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12815 | exit successfully. */ |
| 12816 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12817 | ; |
| 12818 | return 0; |
| 12819 | } |
| 12820 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12821 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12823 | (eval $ac_link) 2>&5 |
| 12824 | ac_status=$? |
| 12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12826 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12828 | (eval $ac_try) 2>&5 |
| 12829 | ac_status=$? |
| 12830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12831 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12832 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12833 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12834 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12835 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12837 | ( exit $ac_status ) |
| 12838 | ac_cv_func_setpgrp_void=yes |
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 | 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] | 12841 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12842 | fi |
| 12843 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12844 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12845 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | |
| 12847 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12848 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12849 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12850 | |
| 12851 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12854 | for ac_func in gettimeofday |
| 12855 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12856 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12857 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12858 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12859 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12861 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12862 | cat >conftest.$ac_ext <<_ACEOF |
| 12863 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12864 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12865 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12867 | #include <assert.h> |
| 12868 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | #ifdef __cplusplus |
| 12870 | extern "C" |
| 12871 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12872 | /* 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] | 12873 | builtin and then its argument prototype would still apply. */ |
| 12874 | char $ac_func (); |
| 12875 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12876 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | #ifdef F77_DUMMY_MAIN |
| 12878 | # ifdef __cplusplus |
| 12879 | extern "C" |
| 12880 | # endif |
| 12881 | int F77_DUMMY_MAIN() { return 1; } |
| 12882 | #endif |
| 12883 | int |
| 12884 | main () |
| 12885 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12886 | /* The GNU C library defines this for functions which it implements |
| 12887 | to always fail with ENOSYS. Some functions are actually named |
| 12888 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12889 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12890 | choke me |
| 12891 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12893 | #endif |
| 12894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12895 | ; |
| 12896 | return 0; |
| 12897 | } |
| 12898 | _ACEOF |
| 12899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12901 | (eval $ac_link) 2>&5 |
| 12902 | ac_status=$? |
| 12903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12904 | (exit $ac_status); } && |
| 12905 | { ac_try='test -s conftest$ac_exeext' |
| 12906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12907 | (eval $ac_try) 2>&5 |
| 12908 | ac_status=$? |
| 12909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12910 | (exit $ac_status); }; }; then |
| 12911 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12913 | echo "$as_me: failed program was:" >&5 |
| 12914 | cat conftest.$ac_ext >&5 |
| 12915 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12918 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12920 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12921 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12922 | cat >>confdefs.h <<_ACEOF |
| 12923 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12924 | _ACEOF |
| 12925 | cat >conftest.$ac_ext <<_ACEOF |
| 12926 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12927 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12928 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | #ifdef F77_DUMMY_MAIN |
| 12930 | # ifdef __cplusplus |
| 12931 | extern "C" |
| 12932 | # endif |
| 12933 | int F77_DUMMY_MAIN() { return 1; } |
| 12934 | #endif |
| 12935 | int |
| 12936 | main () |
| 12937 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12938 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12939 | ; |
| 12940 | return 0; |
| 12941 | } |
| 12942 | _ACEOF |
| 12943 | rm -f conftest.$ac_objext |
| 12944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12945 | (eval $ac_compile) 2>&5 |
| 12946 | ac_status=$? |
| 12947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12948 | (exit $ac_status); } && |
| 12949 | { ac_try='test -s conftest.$ac_objext' |
| 12950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12951 | (eval $ac_try) 2>&5 |
| 12952 | ac_status=$? |
| 12953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12954 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12955 | : |
| 12956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | echo "$as_me: failed program was:" >&5 |
| 12958 | cat conftest.$ac_ext >&5 |
| 12959 | |
| 12960 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12961 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12964 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12965 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12967 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12968 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12969 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12971 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12972 | echo "$as_me:$LINENO: checking for major" >&5 |
| 12973 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 12974 | cat >conftest.$ac_ext <<_ACEOF |
| 12975 | #line $LINENO "configure" |
| 12976 | #include "confdefs.h" |
| 12977 | |
| 12978 | #if defined(MAJOR_IN_MKDEV) |
| 12979 | #include <sys/mkdev.h> |
| 12980 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12981 | #include <sys/sysmacros.h> |
| 12982 | #else |
| 12983 | #include <sys/types.h> |
| 12984 | #endif |
| 12985 | |
| 12986 | #ifdef F77_DUMMY_MAIN |
| 12987 | # ifdef __cplusplus |
| 12988 | extern "C" |
| 12989 | # endif |
| 12990 | int F77_DUMMY_MAIN() { return 1; } |
| 12991 | #endif |
| 12992 | int |
| 12993 | main () |
| 12994 | { |
| 12995 | |
| 12996 | makedev(major(0),minor(0)); |
| 12997 | |
| 12998 | ; |
| 12999 | return 0; |
| 13000 | } |
| 13001 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13004 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13005 | ac_status=$? |
| 13006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13007 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13008 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13010 | (eval $ac_try) 2>&5 |
| 13011 | ac_status=$? |
| 13012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13013 | (exit $ac_status); }; }; then |
| 13014 | |
| 13015 | |
| 13016 | cat >>confdefs.h <<\_ACEOF |
| 13017 | #define HAVE_DEVICE_MACROS 1 |
| 13018 | _ACEOF |
| 13019 | |
| 13020 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13021 | echo "${ECHO_T}yes" >&6 |
| 13022 | |
| 13023 | else |
| 13024 | echo "$as_me: failed program was:" >&5 |
| 13025 | cat conftest.$ac_ext >&5 |
| 13026 | |
| 13027 | echo "$as_me:$LINENO: result: no" >&5 |
| 13028 | echo "${ECHO_T}no" >&6 |
| 13029 | |
| 13030 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13031 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13032 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13033 | # 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] | 13034 | # for [no]getaddrinfo in netdb.h. |
| 13035 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 13036 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 13037 | cat >conftest.$ac_ext <<_ACEOF |
| 13038 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13039 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13040 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13041 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13042 | #include <sys/socket.h> |
| 13043 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13044 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13046 | #ifdef F77_DUMMY_MAIN |
| 13047 | # ifdef __cplusplus |
| 13048 | extern "C" |
| 13049 | # endif |
| 13050 | int F77_DUMMY_MAIN() { return 1; } |
| 13051 | #endif |
| 13052 | int |
| 13053 | main () |
| 13054 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13055 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13056 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13058 | ; |
| 13059 | return 0; |
| 13060 | } |
| 13061 | _ACEOF |
| 13062 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13064 | (eval $ac_link) 2>&5 |
| 13065 | ac_status=$? |
| 13066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13067 | (exit $ac_status); } && |
| 13068 | { ac_try='test -s conftest$ac_exeext' |
| 13069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13070 | (eval $ac_try) 2>&5 |
| 13071 | ac_status=$? |
| 13072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13073 | (exit $ac_status); }; }; then |
| 13074 | |
| 13075 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13076 | echo "${ECHO_T}yes" >&6 |
| 13077 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 13078 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13079 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13081 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13082 | buggygetaddrinfo=yes |
| 13083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13084 | cat >conftest.$ac_ext <<_ACEOF |
| 13085 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13086 | #include "confdefs.h" |
| 13087 | |
| 13088 | #include <sys/types.h> |
| 13089 | #include <netdb.h> |
| 13090 | #include <string.h> |
| 13091 | #include <sys/socket.h> |
| 13092 | #include <netinet/in.h> |
| 13093 | |
| 13094 | main() |
| 13095 | { |
| 13096 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 13097 | struct addrinfo hints, *ai, *aitop; |
| 13098 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 13099 | |
| 13100 | for (passive = 0; passive <= 1; passive++) { |
| 13101 | memset(&hints, 0, sizeof(hints)); |
| 13102 | hints.ai_family = AF_UNSPEC; |
| 13103 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 13104 | hints.ai_socktype = SOCK_STREAM; |
| 13105 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 13106 | (void)gai_strerror(gaierr); |
| 13107 | goto bad; |
| 13108 | } |
| 13109 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 13110 | if (ai->ai_addr == NULL || |
| 13111 | ai->ai_addrlen == 0 || |
| 13112 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 13113 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 13114 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 13115 | goto bad; |
| 13116 | } |
| 13117 | switch (ai->ai_family) { |
| 13118 | case AF_INET: |
| 13119 | if (strcmp(strport, "54321") != 0) { |
| 13120 | goto bad; |
| 13121 | } |
| 13122 | if (passive) { |
| 13123 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 13124 | goto bad; |
| 13125 | } |
| 13126 | } else { |
| 13127 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 13128 | goto bad; |
| 13129 | } |
| 13130 | } |
| 13131 | inet4++; |
| 13132 | break; |
| 13133 | case AF_INET6: |
| 13134 | if (strcmp(strport, "54321") != 0) { |
| 13135 | goto bad; |
| 13136 | } |
| 13137 | if (passive) { |
| 13138 | if (strcmp(straddr, "::") != 0) { |
| 13139 | goto bad; |
| 13140 | } |
| 13141 | } else { |
| 13142 | if (strcmp(straddr, "::1") != 0) { |
| 13143 | goto bad; |
| 13144 | } |
| 13145 | } |
| 13146 | inet6++; |
| 13147 | break; |
| 13148 | case AF_UNSPEC: |
| 13149 | goto bad; |
| 13150 | break; |
| 13151 | default: |
| 13152 | /* another family support? */ |
| 13153 | break; |
| 13154 | } |
| 13155 | } |
| 13156 | } |
| 13157 | |
| 13158 | if (!(inet4 == 0 || inet4 == 2)) |
| 13159 | goto bad; |
| 13160 | if (!(inet6 == 0 || inet6 == 2)) |
| 13161 | goto bad; |
| 13162 | |
| 13163 | if (aitop) |
| 13164 | freeaddrinfo(aitop); |
| 13165 | exit(0); |
| 13166 | |
| 13167 | bad: |
| 13168 | if (aitop) |
| 13169 | freeaddrinfo(aitop); |
| 13170 | exit(1); |
| 13171 | } |
| 13172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | _ACEOF |
| 13174 | rm -f conftest$ac_exeext |
| 13175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13176 | (eval $ac_link) 2>&5 |
| 13177 | ac_status=$? |
| 13178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13181 | (eval $ac_try) 2>&5 |
| 13182 | ac_status=$? |
| 13183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13184 | (exit $ac_status); }; }; then |
| 13185 | echo "$as_me:$LINENO: result: good" >&5 |
| 13186 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13187 | buggygetaddrinfo=no |
| 13188 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13190 | echo "$as_me: failed program was:" >&5 |
| 13191 | cat conftest.$ac_ext >&5 |
| 13192 | ( exit $ac_status ) |
| 13193 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13194 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13195 | buggygetaddrinfo=yes |
| 13196 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13197 | 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] | 13198 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13200 | echo "$as_me: failed program was:" >&5 |
| 13201 | cat conftest.$ac_ext >&5 |
| 13202 | |
| 13203 | echo "$as_me:$LINENO: result: no" >&5 |
| 13204 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13205 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13206 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13207 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13208 | 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] | 13209 | |
| 13210 | if test "$buggygetaddrinfo" = "yes"; then |
| 13211 | if test "$ipv6" = "yes"; then |
| 13212 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13213 | echo ' or you can specify "--disable-ipv6"'. |
| 13214 | exit 1 |
| 13215 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 | |
| 13218 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13219 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13221 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13222 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13224 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13225 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13226 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13227 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13228 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13229 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13232 | cat >conftest.$ac_ext <<_ACEOF |
| 13233 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13234 | #include "confdefs.h" |
| 13235 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13236 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13237 | #include <assert.h> |
| 13238 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | #ifdef __cplusplus |
| 13240 | extern "C" |
| 13241 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13242 | /* 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] | 13243 | builtin and then its argument prototype would still apply. */ |
| 13244 | char $ac_func (); |
| 13245 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13247 | #ifdef F77_DUMMY_MAIN |
| 13248 | # ifdef __cplusplus |
| 13249 | extern "C" |
| 13250 | # endif |
| 13251 | int F77_DUMMY_MAIN() { return 1; } |
| 13252 | #endif |
| 13253 | int |
| 13254 | main () |
| 13255 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13256 | /* The GNU C library defines this for functions which it implements |
| 13257 | to always fail with ENOSYS. Some functions are actually named |
| 13258 | something starting with __ and the normal name is an alias. */ |
| 13259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13260 | choke me |
| 13261 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13263 | #endif |
| 13264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13265 | ; |
| 13266 | return 0; |
| 13267 | } |
| 13268 | _ACEOF |
| 13269 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13271 | (eval $ac_link) 2>&5 |
| 13272 | ac_status=$? |
| 13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13274 | (exit $ac_status); } && |
| 13275 | { ac_try='test -s conftest$ac_exeext' |
| 13276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13277 | (eval $ac_try) 2>&5 |
| 13278 | ac_status=$? |
| 13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13280 | (exit $ac_status); }; }; then |
| 13281 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | echo "$as_me: failed program was:" >&5 |
| 13284 | cat conftest.$ac_ext >&5 |
| 13285 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13288 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13290 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13291 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13292 | cat >>confdefs.h <<_ACEOF |
| 13293 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13294 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13295 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13296 | fi |
| 13297 | done |
| 13298 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13299 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13300 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13301 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13302 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13303 | if test "${ac_cv_header_time+set}" = set; then |
| 13304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13306 | cat >conftest.$ac_ext <<_ACEOF |
| 13307 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13308 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13309 | #include <sys/types.h> |
| 13310 | #include <sys/time.h> |
| 13311 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13312 | |
| 13313 | #ifdef F77_DUMMY_MAIN |
| 13314 | # ifdef __cplusplus |
| 13315 | extern "C" |
| 13316 | # endif |
| 13317 | int F77_DUMMY_MAIN() { return 1; } |
| 13318 | #endif |
| 13319 | int |
| 13320 | main () |
| 13321 | { |
| 13322 | if ((struct tm *) 0) |
| 13323 | return 0; |
| 13324 | ; |
| 13325 | return 0; |
| 13326 | } |
| 13327 | _ACEOF |
| 13328 | rm -f conftest.$ac_objext |
| 13329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13330 | (eval $ac_compile) 2>&5 |
| 13331 | ac_status=$? |
| 13332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13333 | (exit $ac_status); } && |
| 13334 | { ac_try='test -s conftest.$ac_objext' |
| 13335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13336 | (eval $ac_try) 2>&5 |
| 13337 | ac_status=$? |
| 13338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13339 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13340 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 | echo "$as_me: failed program was:" >&5 |
| 13343 | cat conftest.$ac_ext >&5 |
| 13344 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13347 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13348 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13349 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13350 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13351 | |
| 13352 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13353 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13354 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13355 | |
| 13356 | fi |
| 13357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13358 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13359 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13360 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13363 | cat >conftest.$ac_ext <<_ACEOF |
| 13364 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13365 | #include "confdefs.h" |
| 13366 | #include <sys/types.h> |
| 13367 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | |
| 13369 | #ifdef F77_DUMMY_MAIN |
| 13370 | # ifdef __cplusplus |
| 13371 | extern "C" |
| 13372 | # endif |
| 13373 | int F77_DUMMY_MAIN() { return 1; } |
| 13374 | #endif |
| 13375 | int |
| 13376 | main () |
| 13377 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13378 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13379 | ; |
| 13380 | return 0; |
| 13381 | } |
| 13382 | _ACEOF |
| 13383 | rm -f conftest.$ac_objext |
| 13384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13385 | (eval $ac_compile) 2>&5 |
| 13386 | ac_status=$? |
| 13387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13388 | (exit $ac_status); } && |
| 13389 | { ac_try='test -s conftest.$ac_objext' |
| 13390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13391 | (eval $ac_try) 2>&5 |
| 13392 | ac_status=$? |
| 13393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13394 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13395 | ac_cv_struct_tm=time.h |
| 13396 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | echo "$as_me: failed program was:" >&5 |
| 13398 | cat conftest.$ac_ext >&5 |
| 13399 | ac_cv_struct_tm=sys/time.h |
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 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13403 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13404 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13405 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13406 | |
| 13407 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13408 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13409 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13410 | |
| 13411 | fi |
| 13412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13413 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13414 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13415 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 13416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13418 | cat >conftest.$ac_ext <<_ACEOF |
| 13419 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13420 | #include "confdefs.h" |
| 13421 | #include <sys/types.h> |
| 13422 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13423 | |
| 13424 | |
| 13425 | #ifdef F77_DUMMY_MAIN |
| 13426 | # ifdef __cplusplus |
| 13427 | extern "C" |
| 13428 | # endif |
| 13429 | int F77_DUMMY_MAIN() { return 1; } |
| 13430 | #endif |
| 13431 | int |
| 13432 | main () |
| 13433 | { |
| 13434 | static struct tm ac_aggr; |
| 13435 | if (ac_aggr.tm_zone) |
| 13436 | return 0; |
| 13437 | ; |
| 13438 | return 0; |
| 13439 | } |
| 13440 | _ACEOF |
| 13441 | rm -f conftest.$ac_objext |
| 13442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13443 | (eval $ac_compile) 2>&5 |
| 13444 | ac_status=$? |
| 13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13446 | (exit $ac_status); } && |
| 13447 | { ac_try='test -s conftest.$ac_objext' |
| 13448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13449 | (eval $ac_try) 2>&5 |
| 13450 | ac_status=$? |
| 13451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13452 | (exit $ac_status); }; }; then |
| 13453 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13455 | echo "$as_me: failed program was:" >&5 |
| 13456 | cat conftest.$ac_ext >&5 |
| 13457 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13458 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13459 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13460 | fi |
| 13461 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13462 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13463 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13464 | |
| 13465 | cat >>confdefs.h <<_ACEOF |
| 13466 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13467 | _ACEOF |
| 13468 | |
| 13469 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13470 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13472 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13473 | |
| 13474 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13475 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13476 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13477 | |
| 13478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13479 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13480 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13481 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13484 | cat >conftest.$ac_ext <<_ACEOF |
| 13485 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13486 | #include "confdefs.h" |
| 13487 | #include <time.h> |
| 13488 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13489 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13490 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13491 | |
| 13492 | #ifdef F77_DUMMY_MAIN |
| 13493 | # ifdef __cplusplus |
| 13494 | extern "C" |
| 13495 | # endif |
| 13496 | int F77_DUMMY_MAIN() { return 1; } |
| 13497 | #endif |
| 13498 | int |
| 13499 | main () |
| 13500 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13501 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | ; |
| 13503 | return 0; |
| 13504 | } |
| 13505 | _ACEOF |
| 13506 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13508 | (eval $ac_link) 2>&5 |
| 13509 | ac_status=$? |
| 13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13511 | (exit $ac_status); } && |
| 13512 | { ac_try='test -s conftest$ac_exeext' |
| 13513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13514 | (eval $ac_try) 2>&5 |
| 13515 | ac_status=$? |
| 13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13517 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13518 | ac_cv_var_tzname=yes |
| 13519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | echo "$as_me: failed program was:" >&5 |
| 13521 | cat conftest.$ac_ext >&5 |
| 13522 | ac_cv_var_tzname=no |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13525 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 13527 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13528 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13529 | |
| 13530 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13531 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13533 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13534 | fi |
| 13535 | fi |
| 13536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13537 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13538 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13539 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13541 | else |
| 13542 | cat >conftest.$ac_ext <<_ACEOF |
| 13543 | #line $LINENO "configure" |
| 13544 | #include "confdefs.h" |
| 13545 | $ac_includes_default |
| 13546 | #ifdef F77_DUMMY_MAIN |
| 13547 | # ifdef __cplusplus |
| 13548 | extern "C" |
| 13549 | # endif |
| 13550 | int F77_DUMMY_MAIN() { return 1; } |
| 13551 | #endif |
| 13552 | int |
| 13553 | main () |
| 13554 | { |
| 13555 | static struct stat ac_aggr; |
| 13556 | if (ac_aggr.st_rdev) |
| 13557 | return 0; |
| 13558 | ; |
| 13559 | return 0; |
| 13560 | } |
| 13561 | _ACEOF |
| 13562 | rm -f conftest.$ac_objext |
| 13563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13564 | (eval $ac_compile) 2>&5 |
| 13565 | ac_status=$? |
| 13566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13567 | (exit $ac_status); } && |
| 13568 | { ac_try='test -s conftest.$ac_objext' |
| 13569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13570 | (eval $ac_try) 2>&5 |
| 13571 | ac_status=$? |
| 13572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13573 | (exit $ac_status); }; }; then |
| 13574 | ac_cv_member_struct_stat_st_rdev=yes |
| 13575 | else |
| 13576 | echo "$as_me: failed program was:" >&5 |
| 13577 | cat conftest.$ac_ext >&5 |
| 13578 | ac_cv_member_struct_stat_st_rdev=no |
| 13579 | fi |
| 13580 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13581 | fi |
| 13582 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13583 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13584 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13585 | |
| 13586 | cat >>confdefs.h <<_ACEOF |
| 13587 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13588 | _ACEOF |
| 13589 | |
| 13590 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13591 | fi |
| 13592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13593 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13594 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13595 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13598 | cat >conftest.$ac_ext <<_ACEOF |
| 13599 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13600 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | $ac_includes_default |
| 13602 | #ifdef F77_DUMMY_MAIN |
| 13603 | # ifdef __cplusplus |
| 13604 | extern "C" |
| 13605 | # endif |
| 13606 | int F77_DUMMY_MAIN() { return 1; } |
| 13607 | #endif |
| 13608 | int |
| 13609 | main () |
| 13610 | { |
| 13611 | static struct stat ac_aggr; |
| 13612 | if (ac_aggr.st_blksize) |
| 13613 | return 0; |
| 13614 | ; |
| 13615 | return 0; |
| 13616 | } |
| 13617 | _ACEOF |
| 13618 | rm -f conftest.$ac_objext |
| 13619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13620 | (eval $ac_compile) 2>&5 |
| 13621 | ac_status=$? |
| 13622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13623 | (exit $ac_status); } && |
| 13624 | { ac_try='test -s conftest.$ac_objext' |
| 13625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13626 | (eval $ac_try) 2>&5 |
| 13627 | ac_status=$? |
| 13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13629 | (exit $ac_status); }; }; then |
| 13630 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13632 | echo "$as_me: failed program was:" >&5 |
| 13633 | cat conftest.$ac_ext >&5 |
| 13634 | ac_cv_member_struct_stat_st_blksize=no |
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 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13637 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13638 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13639 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13640 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13642 | cat >>confdefs.h <<_ACEOF |
| 13643 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13644 | _ACEOF |
| 13645 | |
| 13646 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13647 | fi |
| 13648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13649 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13650 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13651 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13654 | cat >conftest.$ac_ext <<_ACEOF |
| 13655 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13656 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13657 | $ac_includes_default |
| 13658 | #ifdef F77_DUMMY_MAIN |
| 13659 | # ifdef __cplusplus |
| 13660 | extern "C" |
| 13661 | # endif |
| 13662 | int F77_DUMMY_MAIN() { return 1; } |
| 13663 | #endif |
| 13664 | int |
| 13665 | main () |
| 13666 | { |
| 13667 | static struct stat ac_aggr; |
| 13668 | if (ac_aggr.st_blocks) |
| 13669 | return 0; |
| 13670 | ; |
| 13671 | return 0; |
| 13672 | } |
| 13673 | _ACEOF |
| 13674 | rm -f conftest.$ac_objext |
| 13675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13676 | (eval $ac_compile) 2>&5 |
| 13677 | ac_status=$? |
| 13678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13679 | (exit $ac_status); } && |
| 13680 | { ac_try='test -s conftest.$ac_objext' |
| 13681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13682 | (eval $ac_try) 2>&5 |
| 13683 | ac_status=$? |
| 13684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13685 | (exit $ac_status); }; }; then |
| 13686 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13688 | echo "$as_me: failed program was:" >&5 |
| 13689 | cat conftest.$ac_ext >&5 |
| 13690 | ac_cv_member_struct_stat_st_blocks=no |
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 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13694 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13695 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13696 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13698 | cat >>confdefs.h <<_ACEOF |
| 13699 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13700 | _ACEOF |
| 13701 | |
| 13702 | |
| 13703 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13704 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13705 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13706 | |
| 13707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13708 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13709 | fi |
| 13710 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13712 | |
| 13713 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13714 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13715 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13718 | cat >conftest.$ac_ext <<_ACEOF |
| 13719 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13720 | #include "confdefs.h" |
| 13721 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 | #ifdef F77_DUMMY_MAIN |
| 13723 | # ifdef __cplusplus |
| 13724 | extern "C" |
| 13725 | # endif |
| 13726 | int F77_DUMMY_MAIN() { return 1; } |
| 13727 | #endif |
| 13728 | int |
| 13729 | main () |
| 13730 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13731 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13732 | ; |
| 13733 | return 0; |
| 13734 | } |
| 13735 | _ACEOF |
| 13736 | rm -f conftest.$ac_objext |
| 13737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13738 | (eval $ac_compile) 2>&5 |
| 13739 | ac_status=$? |
| 13740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13741 | (exit $ac_status); } && |
| 13742 | { ac_try='test -s conftest.$ac_objext' |
| 13743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13744 | (eval $ac_try) 2>&5 |
| 13745 | ac_status=$? |
| 13746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13747 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13748 | ac_cv_header_time_altzone=yes |
| 13749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13750 | echo "$as_me: failed program was:" >&5 |
| 13751 | cat conftest.$ac_ext >&5 |
| 13752 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13753 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13754 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13755 | fi |
| 13756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13757 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13758 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13759 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13760 | |
| 13761 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13762 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13763 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13764 | |
| 13765 | fi |
| 13766 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13767 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13768 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13769 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13770 | cat >conftest.$ac_ext <<_ACEOF |
| 13771 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13772 | #include "confdefs.h" |
| 13773 | |
| 13774 | #include <sys/types.h> |
| 13775 | #include <sys/select.h> |
| 13776 | #include <sys/time.h> |
| 13777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13778 | #ifdef F77_DUMMY_MAIN |
| 13779 | # ifdef __cplusplus |
| 13780 | extern "C" |
| 13781 | # endif |
| 13782 | int F77_DUMMY_MAIN() { return 1; } |
| 13783 | #endif |
| 13784 | int |
| 13785 | main () |
| 13786 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13787 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13788 | ; |
| 13789 | return 0; |
| 13790 | } |
| 13791 | _ACEOF |
| 13792 | rm -f conftest.$ac_objext |
| 13793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13794 | (eval $ac_compile) 2>&5 |
| 13795 | ac_status=$? |
| 13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13797 | (exit $ac_status); } && |
| 13798 | { ac_try='test -s conftest.$ac_objext' |
| 13799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13800 | (eval $ac_try) 2>&5 |
| 13801 | ac_status=$? |
| 13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13803 | (exit $ac_status); }; }; then |
| 13804 | |
| 13805 | |
| 13806 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13807 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13808 | _ACEOF |
| 13809 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13810 | was_it_defined=yes |
| 13811 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13813 | echo "$as_me: failed program was:" >&5 |
| 13814 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13815 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13817 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13818 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13820 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13821 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13822 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13825 | cat >conftest.$ac_ext <<_ACEOF |
| 13826 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13827 | #include "confdefs.h" |
| 13828 | |
| 13829 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13830 | #ifdef F77_DUMMY_MAIN |
| 13831 | # ifdef __cplusplus |
| 13832 | extern "C" |
| 13833 | # endif |
| 13834 | int F77_DUMMY_MAIN() { return 1; } |
| 13835 | #endif |
| 13836 | int |
| 13837 | main () |
| 13838 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13839 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13840 | ; |
| 13841 | return 0; |
| 13842 | } |
| 13843 | _ACEOF |
| 13844 | rm -f conftest.$ac_objext |
| 13845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13846 | (eval $ac_compile) 2>&5 |
| 13847 | ac_status=$? |
| 13848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13849 | (exit $ac_status); } && |
| 13850 | { ac_try='test -s conftest.$ac_objext' |
| 13851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13852 | (eval $ac_try) 2>&5 |
| 13853 | ac_status=$? |
| 13854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13855 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13856 | ac_cv_struct_addrinfo=yes |
| 13857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13858 | echo "$as_me: failed program was:" >&5 |
| 13859 | cat conftest.$ac_ext >&5 |
| 13860 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13861 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13862 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13863 | fi |
| 13864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13865 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13866 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13867 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13868 | |
| 13869 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13870 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13871 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13872 | |
| 13873 | fi |
| 13874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13875 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13876 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13877 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13880 | cat >conftest.$ac_ext <<_ACEOF |
| 13881 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13882 | #include "confdefs.h" |
| 13883 | |
| 13884 | # include <sys/types.h> |
| 13885 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13886 | #ifdef F77_DUMMY_MAIN |
| 13887 | # ifdef __cplusplus |
| 13888 | extern "C" |
| 13889 | # endif |
| 13890 | int F77_DUMMY_MAIN() { return 1; } |
| 13891 | #endif |
| 13892 | int |
| 13893 | main () |
| 13894 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13895 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13896 | ; |
| 13897 | return 0; |
| 13898 | } |
| 13899 | _ACEOF |
| 13900 | rm -f conftest.$ac_objext |
| 13901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13902 | (eval $ac_compile) 2>&5 |
| 13903 | ac_status=$? |
| 13904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13905 | (exit $ac_status); } && |
| 13906 | { ac_try='test -s conftest.$ac_objext' |
| 13907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13908 | (eval $ac_try) 2>&5 |
| 13909 | ac_status=$? |
| 13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13911 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13912 | ac_cv_struct_sockaddr_storage=yes |
| 13913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13914 | echo "$as_me: failed program was:" >&5 |
| 13915 | cat conftest.$ac_ext >&5 |
| 13916 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13917 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13918 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13919 | fi |
| 13920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13921 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13922 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13923 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13924 | |
| 13925 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13926 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13927 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13928 | |
| 13929 | fi |
| 13930 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13931 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13932 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13934 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13935 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13936 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13939 | cat >conftest.$ac_ext <<_ACEOF |
| 13940 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13941 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13942 | $ac_includes_default |
| 13943 | #ifdef F77_DUMMY_MAIN |
| 13944 | # ifdef __cplusplus |
| 13945 | extern "C" |
| 13946 | # endif |
| 13947 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13948 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13949 | int |
| 13950 | main () |
| 13951 | { |
| 13952 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13953 | test_array [0] = 0 |
| 13954 | |
| 13955 | ; |
| 13956 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13957 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13958 | _ACEOF |
| 13959 | rm -f conftest.$ac_objext |
| 13960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13961 | (eval $ac_compile) 2>&5 |
| 13962 | ac_status=$? |
| 13963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13964 | (exit $ac_status); } && |
| 13965 | { ac_try='test -s conftest.$ac_objext' |
| 13966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13967 | (eval $ac_try) 2>&5 |
| 13968 | ac_status=$? |
| 13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13970 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13971 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | else |
| 13973 | echo "$as_me: failed program was:" >&5 |
| 13974 | cat conftest.$ac_ext >&5 |
| 13975 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13976 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13977 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13978 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13979 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13980 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13981 | 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] | 13982 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13983 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13984 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13985 | |
| 13986 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13988 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13989 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13990 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13993 | ac_cv_prog_cc_stdc=no |
| 13994 | ac_save_CC=$CC |
| 13995 | cat >conftest.$ac_ext <<_ACEOF |
| 13996 | #line $LINENO "configure" |
| 13997 | #include "confdefs.h" |
| 13998 | #include <stdarg.h> |
| 13999 | #include <stdio.h> |
| 14000 | #include <sys/types.h> |
| 14001 | #include <sys/stat.h> |
| 14002 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 14003 | struct buf { int x; }; |
| 14004 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 14005 | static char *e (p, i) |
| 14006 | char **p; |
| 14007 | int i; |
| 14008 | { |
| 14009 | return p[i]; |
| 14010 | } |
| 14011 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 14012 | { |
| 14013 | char *s; |
| 14014 | va_list v; |
| 14015 | va_start (v,p); |
| 14016 | s = g (p, va_arg (v,int)); |
| 14017 | va_end (v); |
| 14018 | return s; |
| 14019 | } |
| 14020 | int test (int i, double x); |
| 14021 | struct s1 {int (*f) (int a);}; |
| 14022 | struct s2 {int (*f) (double a);}; |
| 14023 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 14024 | int argc; |
| 14025 | char **argv; |
| 14026 | #ifdef F77_DUMMY_MAIN |
| 14027 | # ifdef __cplusplus |
| 14028 | extern "C" |
| 14029 | # endif |
| 14030 | int F77_DUMMY_MAIN() { return 1; } |
| 14031 | #endif |
| 14032 | int |
| 14033 | main () |
| 14034 | { |
| 14035 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 14036 | ; |
| 14037 | return 0; |
| 14038 | } |
| 14039 | _ACEOF |
| 14040 | # Don't try gcc -ansi; that turns off useful extensions and |
| 14041 | # breaks some systems' header files. |
| 14042 | # AIX -qlanglvl=ansi |
| 14043 | # Ultrix and OSF/1 -std1 |
| 14044 | # HP-UX 10.20 and later -Ae |
| 14045 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 14046 | # SVR4 -Xc -D__EXTENSIONS__ |
| 14047 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 14048 | do |
| 14049 | CC="$ac_save_CC $ac_arg" |
| 14050 | rm -f conftest.$ac_objext |
| 14051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14052 | (eval $ac_compile) 2>&5 |
| 14053 | ac_status=$? |
| 14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14055 | (exit $ac_status); } && |
| 14056 | { ac_try='test -s conftest.$ac_objext' |
| 14057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14058 | (eval $ac_try) 2>&5 |
| 14059 | ac_status=$? |
| 14060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14061 | (exit $ac_status); }; }; then |
| 14062 | ac_cv_prog_cc_stdc=$ac_arg |
| 14063 | break |
| 14064 | else |
| 14065 | echo "$as_me: failed program was:" >&5 |
| 14066 | cat conftest.$ac_ext >&5 |
| 14067 | fi |
| 14068 | rm -f conftest.$ac_objext |
| 14069 | done |
| 14070 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 14071 | CC=$ac_save_CC |
| 14072 | |
| 14073 | fi |
| 14074 | |
| 14075 | case "x$ac_cv_prog_cc_stdc" in |
| 14076 | x|xno) |
| 14077 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 14078 | echo "${ECHO_T}none needed" >&6 ;; |
| 14079 | *) |
| 14080 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 14081 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 14082 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 14083 | esac |
| 14084 | |
| 14085 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14086 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14087 | if test "${ac_cv_c_const+set}" = set; then |
| 14088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14089 | else |
| 14090 | cat >conftest.$ac_ext <<_ACEOF |
| 14091 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14092 | #include "confdefs.h" |
| 14093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | #ifdef F77_DUMMY_MAIN |
| 14095 | # ifdef __cplusplus |
| 14096 | extern "C" |
| 14097 | # endif |
| 14098 | int F77_DUMMY_MAIN() { return 1; } |
| 14099 | #endif |
| 14100 | int |
| 14101 | main () |
| 14102 | { |
| 14103 | /* FIXME: Include the comments suggested by Paul. */ |
| 14104 | #ifndef __cplusplus |
| 14105 | /* Ultrix mips cc rejects this. */ |
| 14106 | typedef int charset[2]; |
| 14107 | const charset x; |
| 14108 | /* SunOS 4.1.1 cc rejects this. */ |
| 14109 | char const *const *ccp; |
| 14110 | char **p; |
| 14111 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14112 | struct point {int x, y;}; |
| 14113 | static struct point const zero = {0,0}; |
| 14114 | /* AIX XL C 1.02.0.0 rejects this. |
| 14115 | It does not let you subtract one const X* pointer from another in |
| 14116 | an arm of an if-expression whose if-part is not a constant |
| 14117 | expression */ |
| 14118 | const char *g = "string"; |
| 14119 | ccp = &g + (g ? g-g : 0); |
| 14120 | /* HPUX 7.0 cc rejects these. */ |
| 14121 | ++ccp; |
| 14122 | p = (char**) ccp; |
| 14123 | ccp = (char const *const *) p; |
| 14124 | { /* SCO 3.2v4 cc rejects this. */ |
| 14125 | char *t; |
| 14126 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14128 | *t++ = 0; |
| 14129 | } |
| 14130 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14131 | int x[] = {25, 17}; |
| 14132 | const int *foo = &x[0]; |
| 14133 | ++foo; |
| 14134 | } |
| 14135 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14136 | typedef const int *iptr; |
| 14137 | iptr p = 0; |
| 14138 | ++p; |
| 14139 | } |
| 14140 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14141 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14142 | struct s { int j; const int *ap[3]; }; |
| 14143 | struct s *b; b->j = 5; |
| 14144 | } |
| 14145 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14146 | const int foo = 10; |
| 14147 | } |
| 14148 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14150 | ; |
| 14151 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14152 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | _ACEOF |
| 14154 | rm -f conftest.$ac_objext |
| 14155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14156 | (eval $ac_compile) 2>&5 |
| 14157 | ac_status=$? |
| 14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14159 | (exit $ac_status); } && |
| 14160 | { ac_try='test -s conftest.$ac_objext' |
| 14161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14162 | (eval $ac_try) 2>&5 |
| 14163 | ac_status=$? |
| 14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14165 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14166 | ac_cv_c_const=yes |
| 14167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | echo "$as_me: failed program was:" >&5 |
| 14169 | cat conftest.$ac_ext >&5 |
| 14170 | ac_cv_c_const=no |
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 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14174 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14175 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14176 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14177 | |
| 14178 | cat >>confdefs.h <<\_ACEOF |
| 14179 | #define const |
| 14180 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14181 | |
| 14182 | fi |
| 14183 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14184 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14185 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14186 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14187 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14188 | cat >conftest.$ac_ext <<_ACEOF |
| 14189 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14190 | #include "confdefs.h" |
| 14191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14192 | #ifdef F77_DUMMY_MAIN |
| 14193 | # ifdef __cplusplus |
| 14194 | extern "C" |
| 14195 | # endif |
| 14196 | int F77_DUMMY_MAIN() { return 1; } |
| 14197 | #endif |
| 14198 | int |
| 14199 | main () |
| 14200 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14201 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14202 | ; |
| 14203 | return 0; |
| 14204 | } |
| 14205 | _ACEOF |
| 14206 | rm -f conftest.$ac_objext |
| 14207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14208 | (eval $ac_compile) 2>&5 |
| 14209 | ac_status=$? |
| 14210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14211 | (exit $ac_status); } && |
| 14212 | { ac_try='test -s conftest.$ac_objext' |
| 14213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14214 | (eval $ac_try) 2>&5 |
| 14215 | ac_status=$? |
| 14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14217 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14218 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14220 | echo "$as_me: failed program was:" >&5 |
| 14221 | cat conftest.$ac_ext >&5 |
| 14222 | |
| 14223 | cat >>confdefs.h <<\_ACEOF |
| 14224 | #define volatile |
| 14225 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14226 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14227 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14229 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14230 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14231 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14232 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14233 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14234 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14235 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14236 | cat >conftest.$ac_ext <<_ACEOF |
| 14237 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14238 | #include "confdefs.h" |
| 14239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14240 | #ifdef F77_DUMMY_MAIN |
| 14241 | # ifdef __cplusplus |
| 14242 | extern "C" |
| 14243 | # endif |
| 14244 | int F77_DUMMY_MAIN() { return 1; } |
| 14245 | #endif |
| 14246 | int |
| 14247 | main () |
| 14248 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14249 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | ; |
| 14251 | return 0; |
| 14252 | } |
| 14253 | _ACEOF |
| 14254 | rm -f conftest.$ac_objext |
| 14255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14256 | (eval $ac_compile) 2>&5 |
| 14257 | ac_status=$? |
| 14258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14259 | (exit $ac_status); } && |
| 14260 | { ac_try='test -s conftest.$ac_objext' |
| 14261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14262 | (eval $ac_try) 2>&5 |
| 14263 | ac_status=$? |
| 14264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14265 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14266 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14267 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14268 | echo "$as_me: failed program was:" >&5 |
| 14269 | cat conftest.$ac_ext >&5 |
| 14270 | |
| 14271 | cat >>confdefs.h <<\_ACEOF |
| 14272 | #define signed |
| 14273 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14274 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14275 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14276 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14278 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14279 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14280 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14281 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14282 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14283 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 14284 | cat >conftest.$ac_ext <<_ACEOF |
| 14285 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14286 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14287 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14288 | #ifdef F77_DUMMY_MAIN |
| 14289 | # ifdef __cplusplus |
| 14290 | extern "C" |
| 14291 | # endif |
| 14292 | int F77_DUMMY_MAIN() { return 1; } |
| 14293 | #endif |
| 14294 | int |
| 14295 | main () |
| 14296 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14297 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14298 | ; |
| 14299 | return 0; |
| 14300 | } |
| 14301 | _ACEOF |
| 14302 | rm -f conftest.$ac_objext |
| 14303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14304 | (eval $ac_compile) 2>&5 |
| 14305 | ac_status=$? |
| 14306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14307 | (exit $ac_status); } && |
| 14308 | { ac_try='test -s conftest.$ac_objext' |
| 14309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14310 | (eval $ac_try) 2>&5 |
| 14311 | ac_status=$? |
| 14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14313 | (exit $ac_status); }; }; then |
| 14314 | |
| 14315 | |
| 14316 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14317 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14318 | _ACEOF |
| 14319 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14320 | have_prototypes=yes |
| 14321 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14322 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14323 | echo "$as_me: failed program was:" >&5 |
| 14324 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14327 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14328 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14329 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14330 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14331 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14332 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14333 | cat >conftest.$ac_ext <<_ACEOF |
| 14334 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14335 | #include "confdefs.h" |
| 14336 | |
| 14337 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14338 | int foo(int x, ...) { |
| 14339 | va_list va; |
| 14340 | va_start(va, x); |
| 14341 | va_arg(va, int); |
| 14342 | va_arg(va, char *); |
| 14343 | va_arg(va, double); |
| 14344 | return 0; |
| 14345 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14347 | #ifdef F77_DUMMY_MAIN |
| 14348 | # ifdef __cplusplus |
| 14349 | extern "C" |
| 14350 | # endif |
| 14351 | int F77_DUMMY_MAIN() { return 1; } |
| 14352 | #endif |
| 14353 | int |
| 14354 | main () |
| 14355 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14356 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14357 | ; |
| 14358 | return 0; |
| 14359 | } |
| 14360 | _ACEOF |
| 14361 | rm -f conftest.$ac_objext |
| 14362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14363 | (eval $ac_compile) 2>&5 |
| 14364 | ac_status=$? |
| 14365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14366 | (exit $ac_status); } && |
| 14367 | { ac_try='test -s conftest.$ac_objext' |
| 14368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14369 | (eval $ac_try) 2>&5 |
| 14370 | ac_status=$? |
| 14371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14372 | (exit $ac_status); }; }; then |
| 14373 | |
| 14374 | |
| 14375 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14376 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14377 | _ACEOF |
| 14378 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14379 | works=yes |
| 14380 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14381 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14382 | echo "$as_me: failed program was:" >&5 |
| 14383 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14384 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14385 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14386 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14387 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14388 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14389 | if test "$have_prototypes" = yes; then |
| 14390 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14391 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14392 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14393 | cat >conftest.$ac_ext <<_ACEOF |
| 14394 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14395 | #include "confdefs.h" |
| 14396 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14397 | #ifdef F77_DUMMY_MAIN |
| 14398 | # ifdef __cplusplus |
| 14399 | extern "C" |
| 14400 | # endif |
| 14401 | int F77_DUMMY_MAIN() { return 1; } |
| 14402 | #endif |
| 14403 | int |
| 14404 | main () |
| 14405 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14406 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | ; |
| 14408 | return 0; |
| 14409 | } |
| 14410 | _ACEOF |
| 14411 | rm -f conftest.$ac_objext |
| 14412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14413 | (eval $ac_compile) 2>&5 |
| 14414 | ac_status=$? |
| 14415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14416 | (exit $ac_status); } && |
| 14417 | { ac_try='test -s conftest.$ac_objext' |
| 14418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14419 | (eval $ac_try) 2>&5 |
| 14420 | ac_status=$? |
| 14421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14422 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14423 | : |
| 14424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14425 | echo "$as_me: failed program was:" >&5 |
| 14426 | cat conftest.$ac_ext >&5 |
| 14427 | |
| 14428 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14429 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14430 | _ACEOF |
| 14431 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14432 | bad_prototypes=yes |
| 14433 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14436 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14437 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14438 | fi |
| 14439 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14440 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14441 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14442 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14443 | cat >conftest.$ac_ext <<_ACEOF |
| 14444 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14445 | #include "confdefs.h" |
| 14446 | #include <sys/types.h> |
| 14447 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14448 | #ifdef F77_DUMMY_MAIN |
| 14449 | # ifdef __cplusplus |
| 14450 | extern "C" |
| 14451 | # endif |
| 14452 | int F77_DUMMY_MAIN() { return 1; } |
| 14453 | #endif |
| 14454 | int |
| 14455 | main () |
| 14456 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14457 | struct sockaddr x; |
| 14458 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14459 | ; |
| 14460 | return 0; |
| 14461 | } |
| 14462 | _ACEOF |
| 14463 | rm -f conftest.$ac_objext |
| 14464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14465 | (eval $ac_compile) 2>&5 |
| 14466 | ac_status=$? |
| 14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14468 | (exit $ac_status); } && |
| 14469 | { ac_try='test -s conftest.$ac_objext' |
| 14470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14471 | (eval $ac_try) 2>&5 |
| 14472 | ac_status=$? |
| 14473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14474 | (exit $ac_status); }; }; then |
| 14475 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14476 | echo "${ECHO_T}yes" >&6 |
| 14477 | |
| 14478 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14479 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14480 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14481 | |
| 14482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | echo "$as_me: failed program was:" >&5 |
| 14484 | cat conftest.$ac_ext >&5 |
| 14485 | echo "$as_me:$LINENO: result: no" >&5 |
| 14486 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14488 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14489 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14490 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14491 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 14492 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 14493 | cat >conftest.$ac_ext <<_ACEOF |
| 14494 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14495 | #include "confdefs.h" |
| 14496 | |
| 14497 | #ifdef HAVE_STDARG_PROTOTYPES |
| 14498 | #include <stdarg.h> |
| 14499 | #else |
| 14500 | #include <varargs.h> |
| 14501 | #endif |
| 14502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14503 | #ifdef F77_DUMMY_MAIN |
| 14504 | # ifdef __cplusplus |
| 14505 | extern "C" |
| 14506 | # endif |
| 14507 | int F77_DUMMY_MAIN() { return 1; } |
| 14508 | #endif |
| 14509 | int |
| 14510 | main () |
| 14511 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14512 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14513 | ; |
| 14514 | return 0; |
| 14515 | } |
| 14516 | _ACEOF |
| 14517 | rm -f conftest.$ac_objext |
| 14518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14519 | (eval $ac_compile) 2>&5 |
| 14520 | ac_status=$? |
| 14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14522 | (exit $ac_status); } && |
| 14523 | { ac_try='test -s conftest.$ac_objext' |
| 14524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14525 | (eval $ac_try) 2>&5 |
| 14526 | ac_status=$? |
| 14527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14528 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14529 | : |
| 14530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14531 | echo "$as_me: failed program was:" >&5 |
| 14532 | cat conftest.$ac_ext >&5 |
| 14533 | |
| 14534 | |
| 14535 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14536 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14537 | _ACEOF |
| 14538 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14539 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14540 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14543 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14544 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14545 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14546 | # 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] | 14547 | |
| 14548 | |
| 14549 | |
| 14550 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14551 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14552 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14554 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 | cat >conftest.$ac_ext <<_ACEOF |
| 14556 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14557 | #include "confdefs.h" |
| 14558 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14559 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14560 | #include <assert.h> |
| 14561 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14562 | #ifdef __cplusplus |
| 14563 | extern "C" |
| 14564 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14565 | /* 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] | 14566 | builtin and then its argument prototype would still apply. */ |
| 14567 | char gethostbyname_r (); |
| 14568 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14570 | #ifdef F77_DUMMY_MAIN |
| 14571 | # ifdef __cplusplus |
| 14572 | extern "C" |
| 14573 | # endif |
| 14574 | int F77_DUMMY_MAIN() { return 1; } |
| 14575 | #endif |
| 14576 | int |
| 14577 | main () |
| 14578 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14579 | /* The GNU C library defines this for functions which it implements |
| 14580 | to always fail with ENOSYS. Some functions are actually named |
| 14581 | something starting with __ and the normal name is an alias. */ |
| 14582 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14583 | choke me |
| 14584 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14585 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14586 | #endif |
| 14587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14588 | ; |
| 14589 | return 0; |
| 14590 | } |
| 14591 | _ACEOF |
| 14592 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14594 | (eval $ac_link) 2>&5 |
| 14595 | ac_status=$? |
| 14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14597 | (exit $ac_status); } && |
| 14598 | { ac_try='test -s conftest$ac_exeext' |
| 14599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14600 | (eval $ac_try) 2>&5 |
| 14601 | ac_status=$? |
| 14602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14603 | (exit $ac_status); }; }; then |
| 14604 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | echo "$as_me: failed program was:" >&5 |
| 14607 | cat conftest.$ac_ext >&5 |
| 14608 | ac_cv_func_gethostbyname_r=no |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14611 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14613 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14614 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14617 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14618 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14621 | 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] | 14622 | OLD_CFLAGS=$CFLAGS |
| 14623 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14624 | cat >conftest.$ac_ext <<_ACEOF |
| 14625 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14626 | #include "confdefs.h" |
| 14627 | |
| 14628 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 | |
| 14630 | #ifdef F77_DUMMY_MAIN |
| 14631 | # ifdef __cplusplus |
| 14632 | extern "C" |
| 14633 | # endif |
| 14634 | int F77_DUMMY_MAIN() { return 1; } |
| 14635 | #endif |
| 14636 | int |
| 14637 | main () |
| 14638 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14639 | |
| 14640 | char *name; |
| 14641 | struct hostent *he, *res; |
| 14642 | char buffer[2048]; |
| 14643 | int buflen = 2048; |
| 14644 | int h_errnop; |
| 14645 | |
| 14646 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14647 | |
| 14648 | ; |
| 14649 | return 0; |
| 14650 | } |
| 14651 | _ACEOF |
| 14652 | rm -f conftest.$ac_objext |
| 14653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14654 | (eval $ac_compile) 2>&5 |
| 14655 | ac_status=$? |
| 14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14657 | (exit $ac_status); } && |
| 14658 | { ac_try='test -s conftest.$ac_objext' |
| 14659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14660 | (eval $ac_try) 2>&5 |
| 14661 | ac_status=$? |
| 14662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14663 | (exit $ac_status); }; }; then |
| 14664 | |
| 14665 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14666 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14667 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14669 | |
| 14670 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14671 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14672 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14674 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14675 | echo "${ECHO_T}yes" >&6 |
| 14676 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14678 | echo "$as_me: failed program was:" >&5 |
| 14679 | cat conftest.$ac_ext >&5 |
| 14680 | |
| 14681 | echo "$as_me:$LINENO: result: no" >&5 |
| 14682 | echo "${ECHO_T}no" >&6 |
| 14683 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14684 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14685 | cat >conftest.$ac_ext <<_ACEOF |
| 14686 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14687 | #include "confdefs.h" |
| 14688 | |
| 14689 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | |
| 14691 | #ifdef F77_DUMMY_MAIN |
| 14692 | # ifdef __cplusplus |
| 14693 | extern "C" |
| 14694 | # endif |
| 14695 | int F77_DUMMY_MAIN() { return 1; } |
| 14696 | #endif |
| 14697 | int |
| 14698 | main () |
| 14699 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14700 | |
| 14701 | char *name; |
| 14702 | struct hostent *he; |
| 14703 | char buffer[2048]; |
| 14704 | int buflen = 2048; |
| 14705 | int h_errnop; |
| 14706 | |
| 14707 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | |
| 14709 | ; |
| 14710 | return 0; |
| 14711 | } |
| 14712 | _ACEOF |
| 14713 | rm -f conftest.$ac_objext |
| 14714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14715 | (eval $ac_compile) 2>&5 |
| 14716 | ac_status=$? |
| 14717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14718 | (exit $ac_status); } && |
| 14719 | { ac_try='test -s conftest.$ac_objext' |
| 14720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14721 | (eval $ac_try) 2>&5 |
| 14722 | ac_status=$? |
| 14723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14724 | (exit $ac_status); }; }; then |
| 14725 | |
| 14726 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14727 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14730 | |
| 14731 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14732 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14733 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14735 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14736 | echo "${ECHO_T}yes" >&6 |
| 14737 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 | echo "$as_me: failed program was:" >&5 |
| 14740 | cat conftest.$ac_ext >&5 |
| 14741 | |
| 14742 | echo "$as_me:$LINENO: result: no" >&5 |
| 14743 | echo "${ECHO_T}no" >&6 |
| 14744 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14745 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14746 | cat >conftest.$ac_ext <<_ACEOF |
| 14747 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14748 | #include "confdefs.h" |
| 14749 | |
| 14750 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14751 | |
| 14752 | #ifdef F77_DUMMY_MAIN |
| 14753 | # ifdef __cplusplus |
| 14754 | extern "C" |
| 14755 | # endif |
| 14756 | int F77_DUMMY_MAIN() { return 1; } |
| 14757 | #endif |
| 14758 | int |
| 14759 | main () |
| 14760 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14761 | |
| 14762 | char *name; |
| 14763 | struct hostent *he; |
| 14764 | struct hostent_data data; |
| 14765 | |
| 14766 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14767 | |
| 14768 | ; |
| 14769 | return 0; |
| 14770 | } |
| 14771 | _ACEOF |
| 14772 | rm -f conftest.$ac_objext |
| 14773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14774 | (eval $ac_compile) 2>&5 |
| 14775 | ac_status=$? |
| 14776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14777 | (exit $ac_status); } && |
| 14778 | { ac_try='test -s conftest.$ac_objext' |
| 14779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14780 | (eval $ac_try) 2>&5 |
| 14781 | ac_status=$? |
| 14782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14783 | (exit $ac_status); }; }; then |
| 14784 | |
| 14785 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14786 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14787 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14789 | |
| 14790 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14791 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14794 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14795 | echo "${ECHO_T}yes" >&6 |
| 14796 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14798 | echo "$as_me: failed program was:" >&5 |
| 14799 | cat conftest.$ac_ext >&5 |
| 14800 | |
| 14801 | echo "$as_me:$LINENO: result: no" >&5 |
| 14802 | echo "${ECHO_T}no" >&6 |
| 14803 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14804 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14805 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14806 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14807 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14809 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14810 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14811 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14812 | CFLAGS=$OLD_CFLAGS |
| 14813 | |
| 14814 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14816 | |
| 14817 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14818 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14819 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14820 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14821 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14822 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14825 | cat >conftest.$ac_ext <<_ACEOF |
| 14826 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14827 | #include "confdefs.h" |
| 14828 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14829 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14830 | #include <assert.h> |
| 14831 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | #ifdef __cplusplus |
| 14833 | extern "C" |
| 14834 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14835 | /* 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] | 14836 | builtin and then its argument prototype would still apply. */ |
| 14837 | char $ac_func (); |
| 14838 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 | #ifdef F77_DUMMY_MAIN |
| 14841 | # ifdef __cplusplus |
| 14842 | extern "C" |
| 14843 | # endif |
| 14844 | int F77_DUMMY_MAIN() { return 1; } |
| 14845 | #endif |
| 14846 | int |
| 14847 | main () |
| 14848 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14849 | /* The GNU C library defines this for functions which it implements |
| 14850 | to always fail with ENOSYS. Some functions are actually named |
| 14851 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14852 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14853 | choke me |
| 14854 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14855 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14856 | #endif |
| 14857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | ; |
| 14859 | return 0; |
| 14860 | } |
| 14861 | _ACEOF |
| 14862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14864 | (eval $ac_link) 2>&5 |
| 14865 | ac_status=$? |
| 14866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14867 | (exit $ac_status); } && |
| 14868 | { ac_try='test -s conftest$ac_exeext' |
| 14869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14870 | (eval $ac_try) 2>&5 |
| 14871 | ac_status=$? |
| 14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14873 | (exit $ac_status); }; }; then |
| 14874 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14876 | echo "$as_me: failed program was:" >&5 |
| 14877 | cat conftest.$ac_ext >&5 |
| 14878 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14883 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14884 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14885 | cat >>confdefs.h <<_ACEOF |
| 14886 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14887 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14888 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14889 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14890 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14891 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14892 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14893 | fi |
| 14894 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14895 | |
| 14896 | |
| 14897 | |
| 14898 | |
| 14899 | |
| 14900 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14901 | # checks for system services |
| 14902 | # (none yet) |
| 14903 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14904 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14905 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14906 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14907 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | cat >conftest.$ac_ext <<_ACEOF |
| 14911 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14912 | #include "confdefs.h" |
| 14913 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14914 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14915 | #include <assert.h> |
| 14916 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14917 | #ifdef __cplusplus |
| 14918 | extern "C" |
| 14919 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14920 | /* 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] | 14921 | builtin and then its argument prototype would still apply. */ |
| 14922 | char __fpu_control (); |
| 14923 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14925 | #ifdef F77_DUMMY_MAIN |
| 14926 | # ifdef __cplusplus |
| 14927 | extern "C" |
| 14928 | # endif |
| 14929 | int F77_DUMMY_MAIN() { return 1; } |
| 14930 | #endif |
| 14931 | int |
| 14932 | main () |
| 14933 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14934 | /* The GNU C library defines this for functions which it implements |
| 14935 | to always fail with ENOSYS. Some functions are actually named |
| 14936 | something starting with __ and the normal name is an alias. */ |
| 14937 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14938 | choke me |
| 14939 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14940 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14941 | #endif |
| 14942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14943 | ; |
| 14944 | return 0; |
| 14945 | } |
| 14946 | _ACEOF |
| 14947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14949 | (eval $ac_link) 2>&5 |
| 14950 | ac_status=$? |
| 14951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14952 | (exit $ac_status); } && |
| 14953 | { ac_try='test -s conftest$ac_exeext' |
| 14954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14955 | (eval $ac_try) 2>&5 |
| 14956 | ac_status=$? |
| 14957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14958 | (exit $ac_status); }; }; then |
| 14959 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14961 | echo "$as_me: failed program was:" >&5 |
| 14962 | cat conftest.$ac_ext >&5 |
| 14963 | ac_cv_func___fpu_control=no |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14967 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14968 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14969 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14970 | : |
| 14971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14972 | |
| 14973 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14974 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14975 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14978 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14979 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14980 | cat >conftest.$ac_ext <<_ACEOF |
| 14981 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14982 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14983 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14984 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14985 | #ifdef __cplusplus |
| 14986 | extern "C" |
| 14987 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14988 | /* 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] | 14989 | builtin and then its argument prototype would still apply. */ |
| 14990 | char __fpu_control (); |
| 14991 | #ifdef F77_DUMMY_MAIN |
| 14992 | # ifdef __cplusplus |
| 14993 | extern "C" |
| 14994 | # endif |
| 14995 | int F77_DUMMY_MAIN() { return 1; } |
| 14996 | #endif |
| 14997 | int |
| 14998 | main () |
| 14999 | { |
| 15000 | __fpu_control (); |
| 15001 | ; |
| 15002 | return 0; |
| 15003 | } |
| 15004 | _ACEOF |
| 15005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15007 | (eval $ac_link) 2>&5 |
| 15008 | ac_status=$? |
| 15009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15010 | (exit $ac_status); } && |
| 15011 | { ac_try='test -s conftest$ac_exeext' |
| 15012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15013 | (eval $ac_try) 2>&5 |
| 15014 | ac_status=$? |
| 15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15016 | (exit $ac_status); }; }; then |
| 15017 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | echo "$as_me: failed program was:" >&5 |
| 15020 | cat conftest.$ac_ext >&5 |
| 15021 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15024 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 15027 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 15028 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 15029 | cat >>confdefs.h <<_ACEOF |
| 15030 | #define HAVE_LIBIEEE 1 |
| 15031 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15032 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15033 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15034 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15035 | fi |
| 15036 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15037 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15038 | fi |
| 15039 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15040 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15041 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 15043 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 15044 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15045 | # Check whether --with-fpectl or --without-fpectl was given. |
| 15046 | if test "${with_fpectl+set}" = set; then |
| 15047 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15049 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | then |
| 15051 | |
| 15052 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15053 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15054 | _ACEOF |
| 15055 | |
| 15056 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15057 | echo "${ECHO_T}yes" >&6 |
| 15058 | else echo "$as_me:$LINENO: result: no" >&5 |
| 15059 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15060 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15062 | echo "$as_me:$LINENO: result: no" >&5 |
| 15063 | echo "${ECHO_T}no" >&6 |
| 15064 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15065 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15066 | # check for --with-libm=... |
| 15067 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15068 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 15069 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15070 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15071 | *) LIBM=-lm |
| 15072 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 15074 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 15075 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15076 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15077 | if test "${with_libm+set}" = set; then |
| 15078 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15079 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15080 | if test "$withval" = no |
| 15081 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 15083 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15084 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15085 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 15087 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 15088 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 15089 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 15090 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15091 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15093 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 15094 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 15095 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15096 | |
| 15097 | # check for --with-libc=... |
| 15098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 15100 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 15101 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15102 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15103 | if test "${with_libc+set}" = set; then |
| 15104 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15106 | if test "$withval" = no |
| 15107 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 15109 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15110 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15111 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15112 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 15113 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 15114 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 15115 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 15116 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15117 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15119 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 15120 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 15121 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15122 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15123 | # check for hypot() in math library |
| 15124 | LIBS_SAVE=$LIBS |
| 15125 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15127 | for ac_func in hypot |
| 15128 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15130 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15131 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15132 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15135 | cat >conftest.$ac_ext <<_ACEOF |
| 15136 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15137 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15138 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15140 | #include <assert.h> |
| 15141 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15142 | #ifdef __cplusplus |
| 15143 | extern "C" |
| 15144 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15145 | /* 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] | 15146 | builtin and then its argument prototype would still apply. */ |
| 15147 | char $ac_func (); |
| 15148 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | #ifdef F77_DUMMY_MAIN |
| 15151 | # ifdef __cplusplus |
| 15152 | extern "C" |
| 15153 | # endif |
| 15154 | int F77_DUMMY_MAIN() { return 1; } |
| 15155 | #endif |
| 15156 | int |
| 15157 | main () |
| 15158 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15159 | /* The GNU C library defines this for functions which it implements |
| 15160 | to always fail with ENOSYS. Some functions are actually named |
| 15161 | something starting with __ and the normal name is an alias. */ |
| 15162 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15163 | choke me |
| 15164 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15165 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15166 | #endif |
| 15167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15168 | ; |
| 15169 | return 0; |
| 15170 | } |
| 15171 | _ACEOF |
| 15172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15174 | (eval $ac_link) 2>&5 |
| 15175 | ac_status=$? |
| 15176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15177 | (exit $ac_status); } && |
| 15178 | { ac_try='test -s conftest$ac_exeext' |
| 15179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15180 | (eval $ac_try) 2>&5 |
| 15181 | ac_status=$? |
| 15182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15183 | (exit $ac_status); }; }; then |
| 15184 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15186 | echo "$as_me: failed program was:" >&5 |
| 15187 | cat conftest.$ac_ext >&5 |
| 15188 | eval "$as_ac_var=no" |
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 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15191 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15193 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15194 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15195 | cat >>confdefs.h <<_ACEOF |
| 15196 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15197 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15198 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15201 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15202 | done |
| 15203 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15204 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15205 | LIBS=$LIBS_SAVE |
| 15206 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15207 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15208 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 15209 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 15210 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 15211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15212 | else |
| 15213 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15214 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | cat >conftest.$ac_ext <<_ACEOF |
| 15217 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15218 | #include "confdefs.h" |
| 15219 | #include <stdio.h> |
| 15220 | #ifdef HAVE_STDLIB |
| 15221 | #include <stdlib.h> |
| 15222 | #else |
| 15223 | char *malloc(), *realloc(); |
| 15224 | int *free(); |
| 15225 | #endif |
| 15226 | main() { |
| 15227 | char *p; |
| 15228 | p = malloc(0); |
| 15229 | if (p == NULL) exit(1); |
| 15230 | p = realloc(p, 0); |
| 15231 | if (p == NULL) exit(1); |
| 15232 | free(p); |
| 15233 | exit(0); |
| 15234 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15235 | _ACEOF |
| 15236 | rm -f conftest$ac_exeext |
| 15237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15238 | (eval $ac_link) 2>&5 |
| 15239 | ac_status=$? |
| 15240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15243 | (eval $ac_try) 2>&5 |
| 15244 | ac_status=$? |
| 15245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15246 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15247 | ac_cv_malloc_zero=nonnull |
| 15248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15249 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15250 | echo "$as_me: failed program was:" >&5 |
| 15251 | cat conftest.$ac_ext >&5 |
| 15252 | ( exit $ac_status ) |
| 15253 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | 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] | 15256 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15257 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15258 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 15260 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15261 | if test "$ac_cv_malloc_zero" = null |
| 15262 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15263 | |
| 15264 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15265 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15266 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15267 | |
| 15268 | fi |
| 15269 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15270 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15272 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15273 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15274 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15276 | fi |
| 15277 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15278 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15279 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15280 | # Is the header compilable? |
| 15281 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15282 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15283 | cat >conftest.$ac_ext <<_ACEOF |
| 15284 | #line $LINENO "configure" |
| 15285 | #include "confdefs.h" |
| 15286 | $ac_includes_default |
| 15287 | #include <wchar.h> |
| 15288 | _ACEOF |
| 15289 | rm -f conftest.$ac_objext |
| 15290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15291 | (eval $ac_compile) 2>&5 |
| 15292 | ac_status=$? |
| 15293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15294 | (exit $ac_status); } && |
| 15295 | { ac_try='test -s conftest.$ac_objext' |
| 15296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15297 | (eval $ac_try) 2>&5 |
| 15298 | ac_status=$? |
| 15299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15300 | (exit $ac_status); }; }; then |
| 15301 | ac_header_compiler=yes |
| 15302 | else |
| 15303 | echo "$as_me: failed program was:" >&5 |
| 15304 | cat conftest.$ac_ext >&5 |
| 15305 | ac_header_compiler=no |
| 15306 | fi |
| 15307 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15308 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15309 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15310 | |
| 15311 | # Is the header present? |
| 15312 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15313 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15314 | cat >conftest.$ac_ext <<_ACEOF |
| 15315 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15316 | #include "confdefs.h" |
| 15317 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15318 | _ACEOF |
| 15319 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15320 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15321 | ac_status=$? |
| 15322 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 15323 | rm -f conftest.er1 |
| 15324 | cat conftest.err >&5 |
| 15325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15326 | (exit $ac_status); } >/dev/null; then |
| 15327 | if test -s conftest.err; then |
| 15328 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15329 | else |
| 15330 | ac_cpp_err= |
| 15331 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15333 | ac_cpp_err=yes |
| 15334 | fi |
| 15335 | if test -z "$ac_cpp_err"; then |
| 15336 | ac_header_preproc=yes |
| 15337 | else |
| 15338 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15339 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15340 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15341 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15342 | rm -f conftest.err conftest.$ac_ext |
| 15343 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15344 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15345 | |
| 15346 | # So? What about this header? |
| 15347 | case $ac_header_compiler:$ac_header_preproc in |
| 15348 | yes:no ) |
| 15349 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15350 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15351 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15352 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15353 | no:yes ) |
| 15354 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15355 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15356 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15357 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15358 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15359 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15360 | esac |
| 15361 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15362 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15363 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15365 | else |
| 15366 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15367 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15368 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15369 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15370 | |
| 15371 | fi |
| 15372 | if test $ac_cv_header_wchar_h = yes; then |
| 15373 | |
| 15374 | |
| 15375 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15376 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | _ACEOF |
| 15378 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15379 | wchar_h="yes" |
| 15380 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15381 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15382 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15383 | |
| 15384 | fi |
| 15385 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15388 | # determine wchar_t size |
| 15389 | if test "$wchar_h" = yes |
| 15390 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15391 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15392 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15393 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15395 | else |
| 15396 | cat >conftest.$ac_ext <<_ACEOF |
| 15397 | #line $LINENO "configure" |
| 15398 | #include "confdefs.h" |
| 15399 | #include <wchar.h> |
| 15400 | |
| 15401 | #ifdef F77_DUMMY_MAIN |
| 15402 | # ifdef __cplusplus |
| 15403 | extern "C" |
| 15404 | # endif |
| 15405 | int F77_DUMMY_MAIN() { return 1; } |
| 15406 | #endif |
| 15407 | int |
| 15408 | main () |
| 15409 | { |
| 15410 | if ((wchar_t *) 0) |
| 15411 | return 0; |
| 15412 | if (sizeof (wchar_t)) |
| 15413 | return 0; |
| 15414 | ; |
| 15415 | return 0; |
| 15416 | } |
| 15417 | _ACEOF |
| 15418 | rm -f conftest.$ac_objext |
| 15419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15420 | (eval $ac_compile) 2>&5 |
| 15421 | ac_status=$? |
| 15422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15423 | (exit $ac_status); } && |
| 15424 | { ac_try='test -s conftest.$ac_objext' |
| 15425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15426 | (eval $ac_try) 2>&5 |
| 15427 | ac_status=$? |
| 15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15429 | (exit $ac_status); }; }; then |
| 15430 | ac_cv_type_wchar_t=yes |
| 15431 | else |
| 15432 | echo "$as_me: failed program was:" >&5 |
| 15433 | cat conftest.$ac_ext >&5 |
| 15434 | ac_cv_type_wchar_t=no |
| 15435 | fi |
| 15436 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15437 | fi |
| 15438 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15439 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15440 | |
| 15441 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15442 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15443 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15445 | else |
| 15446 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15447 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15448 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15449 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15450 | # This bug is HP SR number 8606223364. |
| 15451 | if test "$cross_compiling" = yes; then |
| 15452 | # Depending upon the size, compute the lo and hi bounds. |
| 15453 | cat >conftest.$ac_ext <<_ACEOF |
| 15454 | #line $LINENO "configure" |
| 15455 | #include "confdefs.h" |
| 15456 | #include <wchar.h> |
| 15457 | |
| 15458 | #ifdef F77_DUMMY_MAIN |
| 15459 | # ifdef __cplusplus |
| 15460 | extern "C" |
| 15461 | # endif |
| 15462 | int F77_DUMMY_MAIN() { return 1; } |
| 15463 | #endif |
| 15464 | int |
| 15465 | main () |
| 15466 | { |
| 15467 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 15468 | test_array [0] = 0 |
| 15469 | |
| 15470 | ; |
| 15471 | return 0; |
| 15472 | } |
| 15473 | _ACEOF |
| 15474 | rm -f conftest.$ac_objext |
| 15475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15476 | (eval $ac_compile) 2>&5 |
| 15477 | ac_status=$? |
| 15478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15479 | (exit $ac_status); } && |
| 15480 | { ac_try='test -s conftest.$ac_objext' |
| 15481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15482 | (eval $ac_try) 2>&5 |
| 15483 | ac_status=$? |
| 15484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15485 | (exit $ac_status); }; }; then |
| 15486 | ac_lo=0 ac_mid=0 |
| 15487 | while :; do |
| 15488 | cat >conftest.$ac_ext <<_ACEOF |
| 15489 | #line $LINENO "configure" |
| 15490 | #include "confdefs.h" |
| 15491 | #include <wchar.h> |
| 15492 | |
| 15493 | #ifdef F77_DUMMY_MAIN |
| 15494 | # ifdef __cplusplus |
| 15495 | extern "C" |
| 15496 | # endif |
| 15497 | int F77_DUMMY_MAIN() { return 1; } |
| 15498 | #endif |
| 15499 | int |
| 15500 | main () |
| 15501 | { |
| 15502 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15503 | test_array [0] = 0 |
| 15504 | |
| 15505 | ; |
| 15506 | return 0; |
| 15507 | } |
| 15508 | _ACEOF |
| 15509 | rm -f conftest.$ac_objext |
| 15510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15511 | (eval $ac_compile) 2>&5 |
| 15512 | ac_status=$? |
| 15513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15514 | (exit $ac_status); } && |
| 15515 | { ac_try='test -s conftest.$ac_objext' |
| 15516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15517 | (eval $ac_try) 2>&5 |
| 15518 | ac_status=$? |
| 15519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15520 | (exit $ac_status); }; }; then |
| 15521 | ac_hi=$ac_mid; break |
| 15522 | else |
| 15523 | echo "$as_me: failed program was:" >&5 |
| 15524 | cat conftest.$ac_ext >&5 |
| 15525 | ac_lo=`expr $ac_mid + 1` |
| 15526 | if test $ac_lo -le $ac_mid; then |
| 15527 | ac_lo= ac_hi= |
| 15528 | break |
| 15529 | fi |
| 15530 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 15531 | fi |
| 15532 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15533 | done |
| 15534 | else |
| 15535 | echo "$as_me: failed program was:" >&5 |
| 15536 | cat conftest.$ac_ext >&5 |
| 15537 | cat >conftest.$ac_ext <<_ACEOF |
| 15538 | #line $LINENO "configure" |
| 15539 | #include "confdefs.h" |
| 15540 | #include <wchar.h> |
| 15541 | |
| 15542 | #ifdef F77_DUMMY_MAIN |
| 15543 | # ifdef __cplusplus |
| 15544 | extern "C" |
| 15545 | # endif |
| 15546 | int F77_DUMMY_MAIN() { return 1; } |
| 15547 | #endif |
| 15548 | int |
| 15549 | main () |
| 15550 | { |
| 15551 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 15552 | test_array [0] = 0 |
| 15553 | |
| 15554 | ; |
| 15555 | return 0; |
| 15556 | } |
| 15557 | _ACEOF |
| 15558 | rm -f conftest.$ac_objext |
| 15559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15560 | (eval $ac_compile) 2>&5 |
| 15561 | ac_status=$? |
| 15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15563 | (exit $ac_status); } && |
| 15564 | { ac_try='test -s conftest.$ac_objext' |
| 15565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15566 | (eval $ac_try) 2>&5 |
| 15567 | ac_status=$? |
| 15568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15569 | (exit $ac_status); }; }; then |
| 15570 | ac_hi=-1 ac_mid=-1 |
| 15571 | while :; do |
| 15572 | cat >conftest.$ac_ext <<_ACEOF |
| 15573 | #line $LINENO "configure" |
| 15574 | #include "confdefs.h" |
| 15575 | #include <wchar.h> |
| 15576 | |
| 15577 | #ifdef F77_DUMMY_MAIN |
| 15578 | # ifdef __cplusplus |
| 15579 | extern "C" |
| 15580 | # endif |
| 15581 | int F77_DUMMY_MAIN() { return 1; } |
| 15582 | #endif |
| 15583 | int |
| 15584 | main () |
| 15585 | { |
| 15586 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 15587 | test_array [0] = 0 |
| 15588 | |
| 15589 | ; |
| 15590 | return 0; |
| 15591 | } |
| 15592 | _ACEOF |
| 15593 | rm -f conftest.$ac_objext |
| 15594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15595 | (eval $ac_compile) 2>&5 |
| 15596 | ac_status=$? |
| 15597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15598 | (exit $ac_status); } && |
| 15599 | { ac_try='test -s conftest.$ac_objext' |
| 15600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15601 | (eval $ac_try) 2>&5 |
| 15602 | ac_status=$? |
| 15603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15604 | (exit $ac_status); }; }; then |
| 15605 | ac_lo=$ac_mid; break |
| 15606 | else |
| 15607 | echo "$as_me: failed program was:" >&5 |
| 15608 | cat conftest.$ac_ext >&5 |
| 15609 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15610 | if test $ac_mid -le $ac_hi; then |
| 15611 | ac_lo= ac_hi= |
| 15612 | break |
| 15613 | fi |
| 15614 | ac_mid=`expr 2 '*' $ac_mid` |
| 15615 | fi |
| 15616 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15617 | done |
| 15618 | else |
| 15619 | echo "$as_me: failed program was:" >&5 |
| 15620 | cat conftest.$ac_ext >&5 |
| 15621 | ac_lo= ac_hi= |
| 15622 | fi |
| 15623 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15624 | fi |
| 15625 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15626 | # Binary search between lo and hi bounds. |
| 15627 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15628 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15629 | cat >conftest.$ac_ext <<_ACEOF |
| 15630 | #line $LINENO "configure" |
| 15631 | #include "confdefs.h" |
| 15632 | #include <wchar.h> |
| 15633 | |
| 15634 | #ifdef F77_DUMMY_MAIN |
| 15635 | # ifdef __cplusplus |
| 15636 | extern "C" |
| 15637 | # endif |
| 15638 | int F77_DUMMY_MAIN() { return 1; } |
| 15639 | #endif |
| 15640 | int |
| 15641 | main () |
| 15642 | { |
| 15643 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15644 | test_array [0] = 0 |
| 15645 | |
| 15646 | ; |
| 15647 | return 0; |
| 15648 | } |
| 15649 | _ACEOF |
| 15650 | rm -f conftest.$ac_objext |
| 15651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15652 | (eval $ac_compile) 2>&5 |
| 15653 | ac_status=$? |
| 15654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15655 | (exit $ac_status); } && |
| 15656 | { ac_try='test -s conftest.$ac_objext' |
| 15657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15658 | (eval $ac_try) 2>&5 |
| 15659 | ac_status=$? |
| 15660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15661 | (exit $ac_status); }; }; then |
| 15662 | ac_hi=$ac_mid |
| 15663 | else |
| 15664 | echo "$as_me: failed program was:" >&5 |
| 15665 | cat conftest.$ac_ext >&5 |
| 15666 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15667 | fi |
| 15668 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15669 | done |
| 15670 | case $ac_lo in |
| 15671 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15672 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15673 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15674 | { (exit 1); exit 1; }; } ;; |
| 15675 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15676 | else |
| 15677 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15678 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15679 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15680 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15682 | cat >conftest.$ac_ext <<_ACEOF |
| 15683 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15684 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15685 | #include <wchar.h> |
| 15686 | |
| 15687 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15688 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15689 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15690 | #include <stdlib.h> |
| 15691 | #ifdef F77_DUMMY_MAIN |
| 15692 | # ifdef __cplusplus |
| 15693 | extern "C" |
| 15694 | # endif |
| 15695 | int F77_DUMMY_MAIN() { return 1; } |
| 15696 | #endif |
| 15697 | int |
| 15698 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15699 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15700 | |
| 15701 | FILE *f = fopen ("conftest.val", "w"); |
| 15702 | if (! f) |
| 15703 | exit (1); |
| 15704 | if (((long) (sizeof (wchar_t))) < 0) |
| 15705 | { |
| 15706 | long i = longval (); |
| 15707 | if (i != ((long) (sizeof (wchar_t)))) |
| 15708 | exit (1); |
| 15709 | fprintf (f, "%ld\n", i); |
| 15710 | } |
| 15711 | else |
| 15712 | { |
| 15713 | unsigned long i = ulongval (); |
| 15714 | if (i != ((long) (sizeof (wchar_t)))) |
| 15715 | exit (1); |
| 15716 | fprintf (f, "%lu\n", i); |
| 15717 | } |
| 15718 | exit (ferror (f) || fclose (f) != 0); |
| 15719 | |
| 15720 | ; |
| 15721 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15722 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15723 | _ACEOF |
| 15724 | rm -f conftest$ac_exeext |
| 15725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15726 | (eval $ac_link) 2>&5 |
| 15727 | ac_status=$? |
| 15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15731 | (eval $ac_try) 2>&5 |
| 15732 | ac_status=$? |
| 15733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15734 | (exit $ac_status); }; }; then |
| 15735 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15737 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15738 | echo "$as_me: failed program was:" >&5 |
| 15739 | cat conftest.$ac_ext >&5 |
| 15740 | ( exit $ac_status ) |
| 15741 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15742 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15743 | { (exit 1); exit 1; }; } |
| 15744 | fi |
| 15745 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15746 | fi |
| 15747 | fi |
| 15748 | rm -f conftest.val |
| 15749 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15750 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15751 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15752 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15753 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15754 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15755 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15756 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15757 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15758 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15759 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15760 | fi |
| 15761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15762 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15763 | 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] | 15764 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15765 | if test "${enable_unicode+set}" = set; then |
| 15766 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15767 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15768 | else |
| 15769 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15770 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15771 | |
| 15772 | if test $enable_unicode = yes |
| 15773 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15774 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15775 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15776 | fi |
| 15777 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15778 | |
| 15779 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15780 | case "$enable_unicode" in |
| 15781 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15783 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15784 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15785 | |
| 15786 | ;; |
| 15787 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15788 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15789 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15790 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15791 | |
| 15792 | ;; |
| 15793 | esac |
| 15794 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15796 | |
| 15797 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15798 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15799 | if test "$enable_unicode" = "no" |
| 15800 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15801 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15802 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15803 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15804 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15805 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15806 | |
| 15807 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15808 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15809 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15810 | |
| 15811 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15812 | then |
| 15813 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | cat >>confdefs.h <<\_ACEOF |
| 15816 | #define HAVE_USABLE_WCHAR_T 1 |
| 15817 | _ACEOF |
| 15818 | |
| 15819 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15820 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15821 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15822 | |
| 15823 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15824 | then |
| 15825 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15826 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15827 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15829 | |
| 15830 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15831 | then |
| 15832 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15834 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15835 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15836 | |
| 15837 | else |
| 15838 | PY_UNICODE_TYPE="no type found" |
| 15839 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15841 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15842 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15843 | |
| 15844 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15845 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15846 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15847 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15851 | cat >conftest.$ac_ext <<_ACEOF |
| 15852 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15853 | #include "confdefs.h" |
| 15854 | #include <sys/types.h> |
| 15855 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | #ifdef F77_DUMMY_MAIN |
| 15858 | # ifdef __cplusplus |
| 15859 | extern "C" |
| 15860 | # endif |
| 15861 | int F77_DUMMY_MAIN() { return 1; } |
| 15862 | #endif |
| 15863 | int |
| 15864 | main () |
| 15865 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15866 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15867 | bogus endian macros |
| 15868 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | |
| 15870 | ; |
| 15871 | return 0; |
| 15872 | } |
| 15873 | _ACEOF |
| 15874 | rm -f conftest.$ac_objext |
| 15875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15876 | (eval $ac_compile) 2>&5 |
| 15877 | ac_status=$? |
| 15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15879 | (exit $ac_status); } && |
| 15880 | { ac_try='test -s conftest.$ac_objext' |
| 15881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15882 | (eval $ac_try) 2>&5 |
| 15883 | ac_status=$? |
| 15884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15885 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15886 | # 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] | 15887 | cat >conftest.$ac_ext <<_ACEOF |
| 15888 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15889 | #include "confdefs.h" |
| 15890 | #include <sys/types.h> |
| 15891 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | #ifdef F77_DUMMY_MAIN |
| 15894 | # ifdef __cplusplus |
| 15895 | extern "C" |
| 15896 | # endif |
| 15897 | int F77_DUMMY_MAIN() { return 1; } |
| 15898 | #endif |
| 15899 | int |
| 15900 | main () |
| 15901 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15902 | #if BYTE_ORDER != BIG_ENDIAN |
| 15903 | not big endian |
| 15904 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15905 | |
| 15906 | ; |
| 15907 | return 0; |
| 15908 | } |
| 15909 | _ACEOF |
| 15910 | rm -f conftest.$ac_objext |
| 15911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15912 | (eval $ac_compile) 2>&5 |
| 15913 | ac_status=$? |
| 15914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15915 | (exit $ac_status); } && |
| 15916 | { ac_try='test -s conftest.$ac_objext' |
| 15917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15918 | (eval $ac_try) 2>&5 |
| 15919 | ac_status=$? |
| 15920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15921 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15922 | ac_cv_c_bigendian=yes |
| 15923 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15924 | echo "$as_me: failed program was:" >&5 |
| 15925 | cat conftest.$ac_ext >&5 |
| 15926 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15927 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15930 | echo "$as_me: failed program was:" >&5 |
| 15931 | cat conftest.$ac_ext >&5 |
| 15932 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15933 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15934 | # try to guess the endianess by grep'ing values into an object file |
| 15935 | ac_cv_c_bigendian=unknown |
| 15936 | cat >conftest.$ac_ext <<_ACEOF |
| 15937 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15938 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15940 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15941 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15942 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15943 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15944 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15945 | #ifdef F77_DUMMY_MAIN |
| 15946 | # ifdef __cplusplus |
| 15947 | extern "C" |
| 15948 | # endif |
| 15949 | int F77_DUMMY_MAIN() { return 1; } |
| 15950 | #endif |
| 15951 | int |
| 15952 | main () |
| 15953 | { |
| 15954 | _ascii (); _ebcdic (); |
| 15955 | ; |
| 15956 | return 0; |
| 15957 | } |
| 15958 | _ACEOF |
| 15959 | rm -f conftest.$ac_objext |
| 15960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15961 | (eval $ac_compile) 2>&5 |
| 15962 | ac_status=$? |
| 15963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15964 | (exit $ac_status); } && |
| 15965 | { ac_try='test -s conftest.$ac_objext' |
| 15966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15967 | (eval $ac_try) 2>&5 |
| 15968 | ac_status=$? |
| 15969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15970 | (exit $ac_status); }; }; then |
| 15971 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15972 | ac_cv_c_bigendian=yes |
| 15973 | fi |
| 15974 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15975 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15976 | ac_cv_c_bigendian=no |
| 15977 | else |
| 15978 | # finding both strings is unlikely to happen, but who knows? |
| 15979 | ac_cv_c_bigendian=unknown |
| 15980 | fi |
| 15981 | fi |
| 15982 | else |
| 15983 | echo "$as_me: failed program was:" >&5 |
| 15984 | cat conftest.$ac_ext >&5 |
| 15985 | fi |
| 15986 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15987 | else |
| 15988 | cat >conftest.$ac_ext <<_ACEOF |
| 15989 | #line $LINENO "configure" |
| 15990 | #include "confdefs.h" |
| 15991 | int |
| 15992 | main () |
| 15993 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15994 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15995 | union |
| 15996 | { |
| 15997 | long l; |
| 15998 | char c[sizeof (long)]; |
| 15999 | } u; |
| 16000 | u.l = 1; |
| 16001 | exit (u.c[sizeof (long) - 1] == 1); |
| 16002 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16003 | _ACEOF |
| 16004 | rm -f conftest$ac_exeext |
| 16005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16006 | (eval $ac_link) 2>&5 |
| 16007 | ac_status=$? |
| 16008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16011 | (eval $ac_try) 2>&5 |
| 16012 | ac_status=$? |
| 16013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16014 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16015 | ac_cv_c_bigendian=no |
| 16016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16017 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16018 | echo "$as_me: failed program was:" >&5 |
| 16019 | cat conftest.$ac_ext >&5 |
| 16020 | ( exit $ac_status ) |
| 16021 | ac_cv_c_bigendian=yes |
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 | 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] | 16024 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16025 | fi |
| 16026 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16027 | fi |
| 16028 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16029 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16030 | case $ac_cv_c_bigendian in |
| 16031 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16033 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16034 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | _ACEOF |
| 16036 | ;; |
| 16037 | no) |
| 16038 | ;; |
| 16039 | *) |
| 16040 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 16041 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 16042 | echo "$as_me: error: unknown endianess |
| 16043 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16044 | { (exit 1); exit 1; }; } ;; |
| 16045 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16046 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16047 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16048 | # Check whether right shifting a negative integer extends the sign bit |
| 16049 | # 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] | 16050 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 16051 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 16052 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 16053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16055 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16056 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16057 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16059 | cat >conftest.$ac_ext <<_ACEOF |
| 16060 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16061 | #include "confdefs.h" |
| 16062 | |
| 16063 | int main() |
| 16064 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16065 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16066 | } |
| 16067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16068 | _ACEOF |
| 16069 | rm -f conftest$ac_exeext |
| 16070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16071 | (eval $ac_link) 2>&5 |
| 16072 | ac_status=$? |
| 16073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16074 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16076 | (eval $ac_try) 2>&5 |
| 16077 | ac_status=$? |
| 16078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16079 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16080 | ac_cv_rshift_extends_sign=yes |
| 16081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16082 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16083 | echo "$as_me: failed program was:" >&5 |
| 16084 | cat conftest.$ac_ext >&5 |
| 16085 | ( exit $ac_status ) |
| 16086 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16089 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16090 | fi |
| 16091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16092 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 16093 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16094 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16095 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16096 | |
| 16097 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16098 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16099 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16100 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16101 | fi |
| 16102 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16103 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16104 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 16105 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 16106 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 16107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | |
| 16110 | cat >conftest.$ac_ext <<_ACEOF |
| 16111 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16112 | #include "confdefs.h" |
| 16113 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | #ifdef F77_DUMMY_MAIN |
| 16115 | # ifdef __cplusplus |
| 16116 | extern "C" |
| 16117 | # endif |
| 16118 | int F77_DUMMY_MAIN() { return 1; } |
| 16119 | #endif |
| 16120 | int |
| 16121 | main () |
| 16122 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16123 | |
| 16124 | FILE *f = fopen("/dev/null", "r"); |
| 16125 | flockfile(f); |
| 16126 | getc_unlocked(f); |
| 16127 | funlockfile(f); |
| 16128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16129 | ; |
| 16130 | return 0; |
| 16131 | } |
| 16132 | _ACEOF |
| 16133 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16135 | (eval $ac_link) 2>&5 |
| 16136 | ac_status=$? |
| 16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16138 | (exit $ac_status); } && |
| 16139 | { ac_try='test -s conftest$ac_exeext' |
| 16140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16141 | (eval $ac_try) 2>&5 |
| 16142 | ac_status=$? |
| 16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16144 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16145 | ac_cv_have_getc_unlocked=yes |
| 16146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | echo "$as_me: failed program was:" >&5 |
| 16148 | cat conftest.$ac_ext >&5 |
| 16149 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16152 | fi |
| 16153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16154 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 16155 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16156 | if test "$ac_cv_have_getc_unlocked" = yes |
| 16157 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | |
| 16159 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16160 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16162 | |
| 16163 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16164 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16165 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16166 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 16167 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 16168 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 16169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16172 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16173 | cat >conftest.$ac_ext <<_ACEOF |
| 16174 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16175 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16176 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16177 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16178 | #ifdef __cplusplus |
| 16179 | extern "C" |
| 16180 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16181 | /* 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] | 16182 | builtin and then its argument prototype would still apply. */ |
| 16183 | char rl_pre_input_hook (); |
| 16184 | #ifdef F77_DUMMY_MAIN |
| 16185 | # ifdef __cplusplus |
| 16186 | extern "C" |
| 16187 | # endif |
| 16188 | int F77_DUMMY_MAIN() { return 1; } |
| 16189 | #endif |
| 16190 | int |
| 16191 | main () |
| 16192 | { |
| 16193 | rl_pre_input_hook (); |
| 16194 | ; |
| 16195 | return 0; |
| 16196 | } |
| 16197 | _ACEOF |
| 16198 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16200 | (eval $ac_link) 2>&5 |
| 16201 | ac_status=$? |
| 16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16203 | (exit $ac_status); } && |
| 16204 | { ac_try='test -s conftest$ac_exeext' |
| 16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16206 | (eval $ac_try) 2>&5 |
| 16207 | ac_status=$? |
| 16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16209 | (exit $ac_status); }; }; then |
| 16210 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | echo "$as_me: failed program was:" >&5 |
| 16213 | cat conftest.$ac_ext >&5 |
| 16214 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16215 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16216 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16217 | LIBS=$ac_check_lib_save_LIBS |
| 16218 | fi |
| 16219 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16220 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16221 | 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] | 16222 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16223 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16224 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16225 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16226 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16227 | fi |
| 16228 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16229 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16230 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16232 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16233 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16235 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16236 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16237 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | cat >conftest.$ac_ext <<_ACEOF |
| 16239 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16240 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16242 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16243 | #ifdef __cplusplus |
| 16244 | extern "C" |
| 16245 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16246 | /* 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] | 16247 | builtin and then its argument prototype would still apply. */ |
| 16248 | char rl_completion_matches (); |
| 16249 | #ifdef F77_DUMMY_MAIN |
| 16250 | # ifdef __cplusplus |
| 16251 | extern "C" |
| 16252 | # endif |
| 16253 | int F77_DUMMY_MAIN() { return 1; } |
| 16254 | #endif |
| 16255 | int |
| 16256 | main () |
| 16257 | { |
| 16258 | rl_completion_matches (); |
| 16259 | ; |
| 16260 | return 0; |
| 16261 | } |
| 16262 | _ACEOF |
| 16263 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16265 | (eval $ac_link) 2>&5 |
| 16266 | ac_status=$? |
| 16267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16268 | (exit $ac_status); } && |
| 16269 | { ac_try='test -s conftest$ac_exeext' |
| 16270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16271 | (eval $ac_try) 2>&5 |
| 16272 | ac_status=$? |
| 16273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16274 | (exit $ac_status); }; }; then |
| 16275 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16277 | echo "$as_me: failed program was:" >&5 |
| 16278 | cat conftest.$ac_ext >&5 |
| 16279 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16280 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16282 | LIBS=$ac_check_lib_save_LIBS |
| 16283 | fi |
| 16284 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16285 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16286 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16288 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16289 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16291 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16292 | fi |
| 16293 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16295 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16296 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16297 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16300 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16301 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16302 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16304 | cat >conftest.$ac_ext <<_ACEOF |
| 16305 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16306 | #include "confdefs.h" |
| 16307 | |
| 16308 | int main() |
| 16309 | { |
| 16310 | int val1 = nice(1); |
| 16311 | if (val1 != -1 && val1 == nice(2)) |
| 16312 | exit(0); |
| 16313 | exit(1); |
| 16314 | } |
| 16315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16316 | _ACEOF |
| 16317 | rm -f conftest$ac_exeext |
| 16318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16319 | (eval $ac_link) 2>&5 |
| 16320 | ac_status=$? |
| 16321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16322 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16324 | (eval $ac_try) 2>&5 |
| 16325 | ac_status=$? |
| 16326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16327 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16328 | ac_cv_broken_nice=yes |
| 16329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16330 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16331 | echo "$as_me: failed program was:" >&5 |
| 16332 | cat conftest.$ac_ext >&5 |
| 16333 | ( exit $ac_status ) |
| 16334 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16335 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16336 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16337 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16338 | fi |
| 16339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16340 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16341 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16342 | if test "$ac_cv_broken_nice" = yes |
| 16343 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16344 | |
| 16345 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16346 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16347 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16348 | |
| 16349 | fi |
| 16350 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16351 | # Look for subsecond timestamps in struct stat |
| 16352 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16353 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16354 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16356 | else |
| 16357 | cat >conftest.$ac_ext <<_ACEOF |
| 16358 | #line $LINENO "configure" |
| 16359 | #include "confdefs.h" |
| 16360 | #include <sys/stat.h> |
| 16361 | #ifdef F77_DUMMY_MAIN |
| 16362 | # ifdef __cplusplus |
| 16363 | extern "C" |
| 16364 | # endif |
| 16365 | int F77_DUMMY_MAIN() { return 1; } |
| 16366 | #endif |
| 16367 | int |
| 16368 | main () |
| 16369 | { |
| 16370 | |
| 16371 | struct stat st; |
| 16372 | st.st_mtim.tv_nsec = 1; |
| 16373 | |
| 16374 | ; |
| 16375 | return 0; |
| 16376 | } |
| 16377 | _ACEOF |
| 16378 | rm -f conftest.$ac_objext |
| 16379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16380 | (eval $ac_compile) 2>&5 |
| 16381 | ac_status=$? |
| 16382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16383 | (exit $ac_status); } && |
| 16384 | { ac_try='test -s conftest.$ac_objext' |
| 16385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16386 | (eval $ac_try) 2>&5 |
| 16387 | ac_status=$? |
| 16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16389 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16390 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16391 | else |
| 16392 | echo "$as_me: failed program was:" >&5 |
| 16393 | cat conftest.$ac_ext >&5 |
| 16394 | ac_cv_stat_tv_nsec=no |
| 16395 | fi |
| 16396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16397 | fi |
| 16398 | |
| 16399 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16400 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16401 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16402 | then |
| 16403 | |
| 16404 | cat >>confdefs.h <<\_ACEOF |
| 16405 | #define HAVE_STAT_TV_NSEC 1 |
| 16406 | _ACEOF |
| 16407 | |
| 16408 | fi |
| 16409 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16410 | # 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] | 16411 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 16412 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 16413 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 16414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16416 | cat >conftest.$ac_ext <<_ACEOF |
| 16417 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16418 | #include "confdefs.h" |
| 16419 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16420 | #ifdef F77_DUMMY_MAIN |
| 16421 | # ifdef __cplusplus |
| 16422 | extern "C" |
| 16423 | # endif |
| 16424 | int F77_DUMMY_MAIN() { return 1; } |
| 16425 | #endif |
| 16426 | int |
| 16427 | main () |
| 16428 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16429 | |
| 16430 | int rtn; |
| 16431 | rtn = mvwdelch(0,0,0); |
| 16432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16433 | ; |
| 16434 | return 0; |
| 16435 | } |
| 16436 | _ACEOF |
| 16437 | rm -f conftest.$ac_objext |
| 16438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16439 | (eval $ac_compile) 2>&5 |
| 16440 | ac_status=$? |
| 16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16442 | (exit $ac_status); } && |
| 16443 | { ac_try='test -s conftest.$ac_objext' |
| 16444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16445 | (eval $ac_try) 2>&5 |
| 16446 | ac_status=$? |
| 16447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16448 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16449 | ac_cv_mvwdelch_is_expression=yes |
| 16450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16451 | echo "$as_me: failed program was:" >&5 |
| 16452 | cat conftest.$ac_ext >&5 |
| 16453 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16455 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16456 | fi |
| 16457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16458 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 16459 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16460 | |
| 16461 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 16462 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16463 | |
| 16464 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16465 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16466 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16467 | |
| 16468 | fi |
| 16469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16470 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 16471 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 16472 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 16473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16475 | cat >conftest.$ac_ext <<_ACEOF |
| 16476 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16477 | #include "confdefs.h" |
| 16478 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16479 | #ifdef F77_DUMMY_MAIN |
| 16480 | # ifdef __cplusplus |
| 16481 | extern "C" |
| 16482 | # endif |
| 16483 | int F77_DUMMY_MAIN() { return 1; } |
| 16484 | #endif |
| 16485 | int |
| 16486 | main () |
| 16487 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16488 | |
| 16489 | WINDOW *w; |
| 16490 | w->_flags = 0; |
| 16491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | ; |
| 16493 | return 0; |
| 16494 | } |
| 16495 | _ACEOF |
| 16496 | rm -f conftest.$ac_objext |
| 16497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16498 | (eval $ac_compile) 2>&5 |
| 16499 | ac_status=$? |
| 16500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16501 | (exit $ac_status); } && |
| 16502 | { ac_try='test -s conftest.$ac_objext' |
| 16503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16504 | (eval $ac_try) 2>&5 |
| 16505 | ac_status=$? |
| 16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16507 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16508 | ac_cv_window_has_flags=yes |
| 16509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16510 | echo "$as_me: failed program was:" >&5 |
| 16511 | cat conftest.$ac_ext >&5 |
| 16512 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16513 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16514 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16515 | fi |
| 16516 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16517 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 16518 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16519 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16520 | |
| 16521 | if test "$ac_cv_window_has_flags" = yes |
| 16522 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16523 | |
| 16524 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16525 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16526 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16527 | |
| 16528 | fi |
| 16529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16530 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16531 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16532 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16535 | cat >conftest.$ac_ext <<_ACEOF |
| 16536 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16537 | #include "confdefs.h" |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16538 | |
| 16539 | #ifdef HAVE_SYS_TYPES_H |
| 16540 | #include <sys/types.h> |
| 16541 | #endif |
| 16542 | #ifdef HAVE_SYS_SOCKET_H |
| 16543 | #include <sys/socket.h> |
| 16544 | #endif |
| 16545 | |
| 16546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16547 | #ifdef F77_DUMMY_MAIN |
| 16548 | # ifdef __cplusplus |
| 16549 | extern "C" |
| 16550 | # endif |
| 16551 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16552 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16553 | int |
| 16554 | main () |
| 16555 | { |
| 16556 | if ((socklen_t *) 0) |
| 16557 | return 0; |
| 16558 | if (sizeof (socklen_t)) |
| 16559 | return 0; |
| 16560 | ; |
| 16561 | return 0; |
| 16562 | } |
| 16563 | _ACEOF |
| 16564 | rm -f conftest.$ac_objext |
| 16565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16566 | (eval $ac_compile) 2>&5 |
| 16567 | ac_status=$? |
| 16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16569 | (exit $ac_status); } && |
| 16570 | { ac_try='test -s conftest.$ac_objext' |
| 16571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16572 | (eval $ac_try) 2>&5 |
| 16573 | ac_status=$? |
| 16574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16575 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16576 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16578 | echo "$as_me: failed program was:" >&5 |
| 16579 | cat conftest.$ac_ext >&5 |
| 16580 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16581 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16582 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16583 | fi |
| 16584 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16585 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16586 | if test $ac_cv_type_socklen_t = yes; then |
| 16587 | : |
| 16588 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16589 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16590 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16591 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16592 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16593 | |
| 16594 | fi |
| 16595 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16596 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16597 | |
| 16598 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16599 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16600 | do |
| 16601 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16602 | done |
| 16603 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16604 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 16605 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16606 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 16607 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16608 | for dir in $SRCDIRS; do |
| 16609 | if test ! -d $dir; then |
| 16610 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16611 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16612 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16613 | echo "$as_me:$LINENO: result: done" >&5 |
| 16614 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16615 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16616 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16617 | 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] | 16618 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16620 | # This file is a shell script that caches the results of configure |
| 16621 | # 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] | 16622 | # scripts and configure runs, see configure's option --config-cache. |
| 16623 | # It is not useful on other systems. If it contains results you don't |
| 16624 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16625 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | # config.status only pays attention to the cache file if you give it |
| 16627 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16628 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 16630 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16631 | # following values. |
| 16632 | |
| 16633 | _ACEOF |
| 16634 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16635 | # The following way of writing the cache mishandles newlines in values, |
| 16636 | # but we know of no workaround that is simple, portable, and efficient. |
| 16637 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16638 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16639 | # 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] | 16640 | { |
| 16641 | (set) 2>&1 | |
| 16642 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16643 | *ac_space=\ *) |
| 16644 | # `set' does not quote correctly, so add quotes (double-quote |
| 16645 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16646 | sed -n \ |
| 16647 | "s/'/'\\\\''/g; |
| 16648 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16649 | ;; |
| 16650 | *) |
| 16651 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16652 | sed -n \ |
| 16653 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16654 | ;; |
| 16655 | esac; |
| 16656 | } | |
| 16657 | sed ' |
| 16658 | t clear |
| 16659 | : clear |
| 16660 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16661 | t end |
| 16662 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16663 | : end' >>confcache |
| 16664 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16665 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16666 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16667 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16668 | else |
| 16669 | echo "not updating unwritable cache $cache_file" |
| 16670 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16671 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16672 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16673 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16674 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16675 | # Let make expand exec_prefix. |
| 16676 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16678 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16679 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16680 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16681 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16682 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16683 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16684 | s/:*\$(srcdir):*/:/; |
| 16685 | s/:*\${srcdir}:*/:/; |
| 16686 | s/:*@srcdir@:*/:/; |
| 16687 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16688 | s/:*$//; |
| 16689 | s/^[^=]*=[ ]*$//; |
| 16690 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16691 | fi |
| 16692 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16693 | DEFS=-DHAVE_CONFIG_H |
| 16694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16696 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16697 | ac_clean_files_save=$ac_clean_files |
| 16698 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16699 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16700 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16701 | cat >$CONFIG_STATUS <<_ACEOF |
| 16702 | #! $SHELL |
| 16703 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16704 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16705 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16706 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16708 | debug=false |
| 16709 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16710 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16714 | ## --------------------- ## |
| 16715 | ## M4sh Initialization. ## |
| 16716 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16718 | # Be Bourne compatible |
| 16719 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16720 | emulate sh |
| 16721 | NULLCMD=: |
| 16722 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16723 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16724 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | # NLS nuisances. |
| 16727 | # Support unset when possible. |
| 16728 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16729 | as_unset=unset |
| 16730 | else |
| 16731 | as_unset=false |
| 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 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16735 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16736 | { LANG=C; export LANG; } |
| 16737 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16738 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16739 | { LC_ALL=C; export LC_ALL; } |
| 16740 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16741 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16742 | { LC_TIME=C; export LC_TIME; } |
| 16743 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16744 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16745 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16746 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16747 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16748 | { LANGUAGE=C; export LANGUAGE; } |
| 16749 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16750 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16751 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16752 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16753 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16754 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16755 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16756 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16757 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16758 | |
| 16759 | |
| 16760 | # Name of the executable. |
| 16761 | as_me=`(basename "$0") 2>/dev/null || |
| 16762 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16763 | X"$0" : 'X\(//\)$' \| \ |
| 16764 | X"$0" : 'X\(/\)$' \| \ |
| 16765 | . : '\(.\)' 2>/dev/null || |
| 16766 | echo X/"$0" | |
| 16767 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16768 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16769 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16770 | s/.*/./; q'` |
| 16771 | |
| 16772 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16773 | # Avoid depending upon Character Ranges. |
| 16774 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16775 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16776 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16777 | as_cr_digits='0123456789' |
| 16778 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16779 | |
| 16780 | # The user is always right. |
| 16781 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16782 | echo "#! /bin/sh" >conftest.sh |
| 16783 | echo "exit 0" >>conftest.sh |
| 16784 | chmod +x conftest.sh |
| 16785 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16786 | PATH_SEPARATOR=';' |
| 16787 | else |
| 16788 | PATH_SEPARATOR=: |
| 16789 | fi |
| 16790 | rm -f conftest.sh |
| 16791 | fi |
| 16792 | |
| 16793 | |
| 16794 | as_lineno_1=$LINENO |
| 16795 | as_lineno_2=$LINENO |
| 16796 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16797 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16798 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16799 | # Find who we are. Look in the path if we contain no path at all |
| 16800 | # relative or not. |
| 16801 | case $0 in |
| 16802 | *[\\/]* ) as_myself=$0 ;; |
| 16803 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16804 | for as_dir in $PATH |
| 16805 | do |
| 16806 | IFS=$as_save_IFS |
| 16807 | test -z "$as_dir" && as_dir=. |
| 16808 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16809 | done |
| 16810 | |
| 16811 | ;; |
| 16812 | esac |
| 16813 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16814 | # in which case we are not to be found in the path. |
| 16815 | if test "x$as_myself" = x; then |
| 16816 | as_myself=$0 |
| 16817 | fi |
| 16818 | if test ! -f "$as_myself"; then |
| 16819 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16820 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16821 | { (exit 1); exit 1; }; } |
| 16822 | fi |
| 16823 | case $CONFIG_SHELL in |
| 16824 | '') |
| 16825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16826 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16827 | do |
| 16828 | IFS=$as_save_IFS |
| 16829 | test -z "$as_dir" && as_dir=. |
| 16830 | for as_base in sh bash ksh sh5; do |
| 16831 | case $as_dir in |
| 16832 | /*) |
| 16833 | if ("$as_dir/$as_base" -c ' |
| 16834 | as_lineno_1=$LINENO |
| 16835 | as_lineno_2=$LINENO |
| 16836 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16837 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16838 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16839 | CONFIG_SHELL=$as_dir/$as_base |
| 16840 | export CONFIG_SHELL |
| 16841 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16842 | fi;; |
| 16843 | esac |
| 16844 | done |
| 16845 | done |
| 16846 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16847 | esac |
| 16848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16849 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16850 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16851 | # line-number line before each line; the second 'sed' does the real |
| 16852 | # work. The second script uses 'N' to pair each line-number line |
| 16853 | # with the numbered line, and appends trailing '-' during |
| 16854 | # substitution so that $LINENO is not a special case at line end. |
| 16855 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16856 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16857 | sed '=' <$as_myself | |
| 16858 | sed ' |
| 16859 | N |
| 16860 | s,$,-, |
| 16861 | : loop |
| 16862 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16863 | t loop |
| 16864 | s,-$,, |
| 16865 | s,^['$as_cr_digits']*\n,, |
| 16866 | ' >$as_me.lineno && |
| 16867 | chmod +x $as_me.lineno || |
| 16868 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16869 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16870 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16872 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16873 | # (the dirname of $[0] is not the place where we might find the |
| 16874 | # original and so on. Autoconf is especially sensible to this). |
| 16875 | . ./$as_me.lineno |
| 16876 | # Exit status is that of the last command. |
| 16877 | exit |
| 16878 | } |
| 16879 | |
| 16880 | |
| 16881 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16882 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16883 | ' ECHO_T=' ' ;; |
| 16884 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16885 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16886 | esac |
| 16887 | |
| 16888 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16889 | as_expr=expr |
| 16890 | else |
| 16891 | as_expr=false |
| 16892 | fi |
| 16893 | |
| 16894 | rm -f conf$$ conf$$.exe conf$$.file |
| 16895 | echo >conf$$.file |
| 16896 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16897 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16898 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16899 | if test -f conf$$.exe; then |
| 16900 | # Don't use ln at all; we don't have any links |
| 16901 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16903 | as_ln_s='ln -s' |
| 16904 | fi |
| 16905 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16906 | as_ln_s=ln |
| 16907 | else |
| 16908 | as_ln_s='cp -p' |
| 16909 | fi |
| 16910 | rm -f conf$$ conf$$.exe conf$$.file |
| 16911 | |
| 16912 | as_executable_p="test -f" |
| 16913 | |
| 16914 | # Sed expression to map a string onto a valid CPP name. |
| 16915 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16916 | |
| 16917 | # Sed expression to map a string onto a valid variable name. |
| 16918 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16919 | |
| 16920 | |
| 16921 | # IFS |
| 16922 | # We need space, tab and new line, in precisely that order. |
| 16923 | as_nl=' |
| 16924 | ' |
| 16925 | IFS=" $as_nl" |
| 16926 | |
| 16927 | # CDPATH. |
| 16928 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16929 | |
| 16930 | exec 6>&1 |
| 16931 | |
| 16932 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16933 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16934 | # values after options handling. Logging --version etc. is OK. |
| 16935 | exec 5>>config.log |
| 16936 | { |
| 16937 | echo |
| 16938 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16939 | ## Running $as_me. ## |
| 16940 | _ASBOX |
| 16941 | } >&5 |
| 16942 | cat >&5 <<_CSEOF |
| 16943 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16944 | 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] | 16945 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16946 | |
| 16947 | CONFIG_FILES = $CONFIG_FILES |
| 16948 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16949 | CONFIG_LINKS = $CONFIG_LINKS |
| 16950 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16951 | $ $0 $@ |
| 16952 | |
| 16953 | _CSEOF |
| 16954 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16955 | echo >&5 |
| 16956 | _ACEOF |
| 16957 | |
| 16958 | # Files that config.status was made for. |
| 16959 | if test -n "$ac_config_files"; then |
| 16960 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16961 | fi |
| 16962 | |
| 16963 | if test -n "$ac_config_headers"; then |
| 16964 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16965 | fi |
| 16966 | |
| 16967 | if test -n "$ac_config_links"; then |
| 16968 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16969 | fi |
| 16970 | |
| 16971 | if test -n "$ac_config_commands"; then |
| 16972 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16973 | fi |
| 16974 | |
| 16975 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16976 | |
| 16977 | ac_cs_usage="\ |
| 16978 | \`$as_me' instantiates files from templates according to the |
| 16979 | current configuration. |
| 16980 | |
| 16981 | Usage: $0 [OPTIONS] [FILE]... |
| 16982 | |
| 16983 | -h, --help print this help, then exit |
| 16984 | -V, --version print version number, then exit |
| 16985 | -d, --debug don't remove temporary files |
| 16986 | --recheck update $as_me by reconfiguring in the same conditions |
| 16987 | --file=FILE[:TEMPLATE] |
| 16988 | instantiate the configuration file FILE |
| 16989 | --header=FILE[:TEMPLATE] |
| 16990 | instantiate the configuration header FILE |
| 16991 | |
| 16992 | Configuration files: |
| 16993 | $config_files |
| 16994 | |
| 16995 | Configuration headers: |
| 16996 | $config_headers |
| 16997 | |
| 16998 | Report bugs to <bug-autoconf@gnu.org>." |
| 16999 | _ACEOF |
| 17000 | |
| 17001 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17002 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17003 | python config.status 2.3 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17004 | configured by $0, generated by GNU Autoconf 2.53, |
| 17005 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 17006 | |
| 17007 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 17008 | Free Software Foundation, Inc. |
| 17009 | This config.status script is free software; the Free Software Foundation |
| 17010 | gives unlimited permission to copy, distribute and modify it." |
| 17011 | srcdir=$srcdir |
| 17012 | INSTALL="$INSTALL" |
| 17013 | _ACEOF |
| 17014 | |
| 17015 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17016 | # If no file are specified by the user, then we need to provide default |
| 17017 | # value. By we need to know if files were specified by the user. |
| 17018 | ac_need_defaults=: |
| 17019 | while test $# != 0 |
| 17020 | do |
| 17021 | case $1 in |
| 17022 | --*=*) |
| 17023 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 17024 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 17025 | shift |
| 17026 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 17027 | shift |
| 17028 | ;; |
| 17029 | -*);; |
| 17030 | *) # This is not an option, so the user has probably given explicit |
| 17031 | # arguments. |
| 17032 | ac_need_defaults=false;; |
| 17033 | esac |
| 17034 | |
| 17035 | case $1 in |
| 17036 | # Handling of the options. |
| 17037 | _ACEOF |
| 17038 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17039 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17040 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 17041 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 17042 | _ACEOF |
| 17043 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17044 | --version | --vers* | -V ) |
| 17045 | echo "$ac_cs_version"; exit 0 ;; |
| 17046 | --he | --h) |
| 17047 | # Conflict between --help and --header |
| 17048 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 17049 | Try \`$0 --help' for more information." >&5 |
| 17050 | echo "$as_me: error: ambiguous option: $1 |
| 17051 | Try \`$0 --help' for more information." >&2;} |
| 17052 | { (exit 1); exit 1; }; };; |
| 17053 | --help | --hel | -h ) |
| 17054 | echo "$ac_cs_usage"; exit 0 ;; |
| 17055 | --debug | --d* | -d ) |
| 17056 | debug=: ;; |
| 17057 | --file | --fil | --fi | --f ) |
| 17058 | shift |
| 17059 | CONFIG_FILES="$CONFIG_FILES $1" |
| 17060 | ac_need_defaults=false;; |
| 17061 | --header | --heade | --head | --hea ) |
| 17062 | shift |
| 17063 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 17064 | ac_need_defaults=false;; |
| 17065 | |
| 17066 | # This is an error. |
| 17067 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 17068 | Try \`$0 --help' for more information." >&5 |
| 17069 | echo "$as_me: error: unrecognized option: $1 |
| 17070 | Try \`$0 --help' for more information." >&2;} |
| 17071 | { (exit 1); exit 1; }; } ;; |
| 17072 | |
| 17073 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 17074 | |
| 17075 | esac |
| 17076 | shift |
| 17077 | done |
| 17078 | |
| 17079 | _ACEOF |
| 17080 | |
| 17081 | |
| 17082 | |
| 17083 | |
| 17084 | |
| 17085 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17086 | for ac_config_target in $ac_config_targets |
| 17087 | do |
| 17088 | case "$ac_config_target" in |
| 17089 | # Handling of arguments. |
| 17090 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 17091 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 17092 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17093 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17094 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17095 | { (exit 1); exit 1; }; };; |
| 17096 | esac |
| 17097 | done |
| 17098 | |
| 17099 | # If the user did not use the arguments to specify the items to instantiate, |
| 17100 | # then the envvar interface is used. Set only those that are not. |
| 17101 | # We use the long form for the default assignment because of an extremely |
| 17102 | # bizarre bug on SunOS 4.1.3. |
| 17103 | if $ac_need_defaults; then |
| 17104 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17105 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17106 | fi |
| 17107 | |
| 17108 | # Create a temporary directory, and hook for its removal unless debugging. |
| 17109 | $debug || |
| 17110 | { |
| 17111 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 17112 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17113 | } |
| 17114 | |
| 17115 | # Create a (secure) tmp directory for tmp files. |
| 17116 | : ${TMPDIR=/tmp} |
| 17117 | { |
| 17118 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 17119 | test -n "$tmp" && test -d "$tmp" |
| 17120 | } || |
| 17121 | { |
| 17122 | tmp=$TMPDIR/cs$$-$RANDOM |
| 17123 | (umask 077 && mkdir $tmp) |
| 17124 | } || |
| 17125 | { |
| 17126 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 17127 | { (exit 1); exit 1; } |
| 17128 | } |
| 17129 | |
| 17130 | _ACEOF |
| 17131 | |
| 17132 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17133 | |
| 17134 | # |
| 17135 | # CONFIG_FILES section. |
| 17136 | # |
| 17137 | |
| 17138 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17139 | # This happens for instance when ./config.status config.h |
| 17140 | if test -n "\$CONFIG_FILES"; then |
| 17141 | # Protect against being on the right side of a sed subst in config.status. |
| 17142 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 17143 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 17144 | s,@SHELL@,$SHELL,;t t |
| 17145 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 17146 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 17147 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 17148 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 17149 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 17150 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 17151 | s,@exec_prefix@,$exec_prefix,;t t |
| 17152 | s,@prefix@,$prefix,;t t |
| 17153 | s,@program_transform_name@,$program_transform_name,;t t |
| 17154 | s,@bindir@,$bindir,;t t |
| 17155 | s,@sbindir@,$sbindir,;t t |
| 17156 | s,@libexecdir@,$libexecdir,;t t |
| 17157 | s,@datadir@,$datadir,;t t |
| 17158 | s,@sysconfdir@,$sysconfdir,;t t |
| 17159 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 17160 | s,@localstatedir@,$localstatedir,;t t |
| 17161 | s,@libdir@,$libdir,;t t |
| 17162 | s,@includedir@,$includedir,;t t |
| 17163 | s,@oldincludedir@,$oldincludedir,;t t |
| 17164 | s,@infodir@,$infodir,;t t |
| 17165 | s,@mandir@,$mandir,;t t |
| 17166 | s,@build_alias@,$build_alias,;t t |
| 17167 | s,@host_alias@,$host_alias,;t t |
| 17168 | s,@target_alias@,$target_alias,;t t |
| 17169 | s,@DEFS@,$DEFS,;t t |
| 17170 | s,@ECHO_C@,$ECHO_C,;t t |
| 17171 | s,@ECHO_N@,$ECHO_N,;t t |
| 17172 | s,@ECHO_T@,$ECHO_T,;t t |
| 17173 | s,@LIBS@,$LIBS,;t t |
| 17174 | s,@VERSION@,$VERSION,;t t |
| 17175 | s,@SOVERSION@,$SOVERSION,;t t |
| 17176 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 17177 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 17178 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 17179 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17180 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17181 | s,@MACHDEP@,$MACHDEP,;t t |
| 17182 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 17183 | s,@CXX@,$CXX,;t t |
| 17184 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17185 | s,@EXEEXT@,$EXEEXT,;t t |
| 17186 | s,@CC@,$CC,;t t |
| 17187 | s,@CFLAGS@,$CFLAGS,;t t |
| 17188 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17189 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17190 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17191 | s,@OBJEXT@,$OBJEXT,;t t |
| 17192 | s,@CPP@,$CPP,;t t |
| 17193 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17194 | s,@LIBRARY@,$LIBRARY,;t t |
| 17195 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17196 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17197 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17198 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17199 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17200 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17201 | s,@LINKCC@,$LINKCC,;t t |
| 17202 | s,@RANLIB@,$RANLIB,;t t |
| 17203 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17204 | s,@AR@,$AR,;t t |
| 17205 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17206 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17207 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17208 | s,@LN@,$LN,;t t |
| 17209 | s,@OPT@,$OPT,;t t |
| 17210 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17211 | s,@SO@,$SO,;t t |
| 17212 | s,@LDSHARED@,$LDSHARED,;t t |
| 17213 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17214 | s,@CCSHARED@,$CCSHARED,;t t |
| 17215 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17216 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17217 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17218 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17219 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17220 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17221 | s,@LDLAST@,$LDLAST,;t t |
| 17222 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17223 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17224 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17225 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17226 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17227 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17228 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17229 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17230 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17231 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17232 | s,@LIBM@,$LIBM,;t t |
| 17233 | s,@LIBC@,$LIBC,;t t |
| 17234 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17235 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17236 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17237 | CEOF |
| 17238 | |
| 17239 | _ACEOF |
| 17240 | |
| 17241 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17242 | # Split the substitutions into bite-sized pieces for seds with |
| 17243 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17244 | ac_max_sed_lines=48 |
| 17245 | ac_sed_frag=1 # Number of current file. |
| 17246 | ac_beg=1 # First line for current file. |
| 17247 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17248 | ac_more_lines=: |
| 17249 | ac_sed_cmds= |
| 17250 | while $ac_more_lines; do |
| 17251 | if test $ac_beg -gt 1; then |
| 17252 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17253 | else |
| 17254 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17255 | fi |
| 17256 | if test ! -s $tmp/subs.frag; then |
| 17257 | ac_more_lines=false |
| 17258 | else |
| 17259 | # The purpose of the label and of the branching condition is to |
| 17260 | # speed up the sed processing (if there are no `@' at all, there |
| 17261 | # is no need to browse any of the substitutions). |
| 17262 | # These are the two extra sed commands mentioned above. |
| 17263 | (echo ':t |
| 17264 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17265 | if test -z "$ac_sed_cmds"; then |
| 17266 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17267 | else |
| 17268 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17269 | fi |
| 17270 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17271 | ac_beg=$ac_end |
| 17272 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17273 | fi |
| 17274 | done |
| 17275 | if test -z "$ac_sed_cmds"; then |
| 17276 | ac_sed_cmds=cat |
| 17277 | fi |
| 17278 | fi # test -n "$CONFIG_FILES" |
| 17279 | |
| 17280 | _ACEOF |
| 17281 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17282 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17283 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17284 | case $ac_file in |
| 17285 | - | *:- | *:-:* ) # input from stdin |
| 17286 | cat >$tmp/stdin |
| 17287 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17288 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17289 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17290 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17291 | * ) ac_file_in=$ac_file.in ;; |
| 17292 | esac |
| 17293 | |
| 17294 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17295 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17296 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17297 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17298 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17299 | X"$ac_file" : 'X\(/\)' \| \ |
| 17300 | . : '\(.\)' 2>/dev/null || |
| 17301 | echo X"$ac_file" | |
| 17302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17303 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17304 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17305 | /^X\(\/\).*/{ s//\1/; q; } |
| 17306 | s/.*/./; q'` |
| 17307 | { case "$ac_dir" in |
| 17308 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17309 | *) as_incr_dir=.;; |
| 17310 | esac |
| 17311 | as_dummy="$ac_dir" |
| 17312 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17313 | case $as_mkdir_dir in |
| 17314 | # Skip DOS drivespec |
| 17315 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17316 | *) |
| 17317 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17318 | test -d "$as_incr_dir" || |
| 17319 | mkdir "$as_incr_dir" || |
| 17320 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17321 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17322 | { (exit 1); exit 1; }; } |
| 17323 | ;; |
| 17324 | esac |
| 17325 | done; } |
| 17326 | |
| 17327 | ac_builddir=. |
| 17328 | |
| 17329 | if test "$ac_dir" != .; then |
| 17330 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17331 | # A "../" for each directory in $ac_dir_suffix. |
| 17332 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17333 | else |
| 17334 | ac_dir_suffix= ac_top_builddir= |
| 17335 | fi |
| 17336 | |
| 17337 | case $srcdir in |
| 17338 | .) # No --srcdir option. We are building in place. |
| 17339 | ac_srcdir=. |
| 17340 | if test -z "$ac_top_builddir"; then |
| 17341 | ac_top_srcdir=. |
| 17342 | else |
| 17343 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17344 | fi ;; |
| 17345 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17346 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17347 | ac_top_srcdir=$srcdir ;; |
| 17348 | *) # Relative path. |
| 17349 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17350 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17351 | esac |
| 17352 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17353 | # absolute. |
| 17354 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 17355 | 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] | 17356 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17357 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17358 | |
| 17359 | |
| 17360 | case $INSTALL in |
| 17361 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17362 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17363 | esac |
| 17364 | |
| 17365 | if test x"$ac_file" != x-; then |
| 17366 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17367 | echo "$as_me: creating $ac_file" >&6;} |
| 17368 | rm -f "$ac_file" |
| 17369 | fi |
| 17370 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17371 | # use $as_me), people would be surprised to read: |
| 17372 | # /* config.h. Generated by config.status. */ |
| 17373 | if test x"$ac_file" = x-; then |
| 17374 | configure_input= |
| 17375 | else |
| 17376 | configure_input="$ac_file. " |
| 17377 | fi |
| 17378 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17379 | sed 's,.*/,,'` by configure." |
| 17380 | |
| 17381 | # First look for the input files in the build tree, otherwise in the |
| 17382 | # src tree. |
| 17383 | ac_file_inputs=`IFS=: |
| 17384 | for f in $ac_file_in; do |
| 17385 | case $f in |
| 17386 | -) echo $tmp/stdin ;; |
| 17387 | [\\/$]*) |
| 17388 | # Absolute (can't be DOS-style, as IFS=:) |
| 17389 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17390 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17391 | { (exit 1); exit 1; }; } |
| 17392 | echo $f;; |
| 17393 | *) # Relative |
| 17394 | if test -f "$f"; then |
| 17395 | # Build tree |
| 17396 | echo $f |
| 17397 | elif test -f "$srcdir/$f"; then |
| 17398 | # Source tree |
| 17399 | echo $srcdir/$f |
| 17400 | else |
| 17401 | # /dev/null tree |
| 17402 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17403 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17404 | { (exit 1); exit 1; }; } |
| 17405 | fi;; |
| 17406 | esac |
| 17407 | done` || { (exit 1); exit 1; } |
| 17408 | _ACEOF |
| 17409 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17410 | sed "$ac_vpsub |
| 17411 | $extrasub |
| 17412 | _ACEOF |
| 17413 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17414 | :t |
| 17415 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17416 | s,@configure_input@,$configure_input,;t t |
| 17417 | s,@srcdir@,$ac_srcdir,;t t |
| 17418 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17419 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17420 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17421 | s,@builddir@,$ac_builddir,;t t |
| 17422 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17423 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17424 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17425 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17426 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17427 | rm -f $tmp/stdin |
| 17428 | if test x"$ac_file" != x-; then |
| 17429 | mv $tmp/out $ac_file |
| 17430 | else |
| 17431 | cat $tmp/out |
| 17432 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17433 | fi |
| 17434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17435 | done |
| 17436 | _ACEOF |
| 17437 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17439 | # |
| 17440 | # CONFIG_HEADER section. |
| 17441 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17442 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17443 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17444 | # 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] | 17445 | # |
| 17446 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17447 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17448 | ac_dB='[ ].*$,\1#\2' |
| 17449 | ac_dC=' ' |
| 17450 | ac_dD=',;t' |
| 17451 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17452 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17453 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17454 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17455 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17457 | 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] | 17458 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17459 | case $ac_file in |
| 17460 | - | *:- | *:-:* ) # input from stdin |
| 17461 | cat >$tmp/stdin |
| 17462 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17463 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17464 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17465 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17466 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17467 | esac |
| 17468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17469 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17470 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17472 | # First look for the input files in the build tree, otherwise in the |
| 17473 | # src tree. |
| 17474 | ac_file_inputs=`IFS=: |
| 17475 | for f in $ac_file_in; do |
| 17476 | case $f in |
| 17477 | -) echo $tmp/stdin ;; |
| 17478 | [\\/$]*) |
| 17479 | # Absolute (can't be DOS-style, as IFS=:) |
| 17480 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17481 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17482 | { (exit 1); exit 1; }; } |
| 17483 | echo $f;; |
| 17484 | *) # Relative |
| 17485 | if test -f "$f"; then |
| 17486 | # Build tree |
| 17487 | echo $f |
| 17488 | elif test -f "$srcdir/$f"; then |
| 17489 | # Source tree |
| 17490 | echo $srcdir/$f |
| 17491 | else |
| 17492 | # /dev/null tree |
| 17493 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17494 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17495 | { (exit 1); exit 1; }; } |
| 17496 | fi;; |
| 17497 | esac |
| 17498 | done` || { (exit 1); exit 1; } |
| 17499 | # Remove the trailing spaces. |
| 17500 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17502 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17504 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17505 | # `conftest.undefs', that substitutes the proper values into |
| 17506 | # config.h.in to produce config.h. The first handles `#define' |
| 17507 | # templates, and the second `#undef' templates. |
| 17508 | # And first: Protect against being on the right side of a sed subst in |
| 17509 | # config.status. Protect against being in an unquoted here document |
| 17510 | # in config.status. |
| 17511 | rm -f conftest.defines conftest.undefs |
| 17512 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17513 | # Putting comments in sed scripts is not portable. |
| 17514 | # |
| 17515 | # `end' is used to avoid that the second main sed command (meant for |
| 17516 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17517 | # See the Autoconf documentation for `clear'. |
| 17518 | cat >confdef2sed.sed <<\_ACEOF |
| 17519 | s/[\\&,]/\\&/g |
| 17520 | s,[\\$`],\\&,g |
| 17521 | t clear |
| 17522 | : clear |
| 17523 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17524 | t end |
| 17525 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17526 | : end |
| 17527 | _ACEOF |
| 17528 | # If some macros were called several times there might be several times |
| 17529 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17530 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17531 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17532 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17533 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17534 | |
| 17535 | # This sed command replaces #undef with comments. This is necessary, for |
| 17536 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17537 | # 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] | 17538 | cat >>conftest.undefs <<\_ACEOF |
| 17539 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17540 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17542 | # Break up conftest.defines because some shells have a limit on the size |
| 17543 | # of here documents, and old seds have small limits too (100 cmds). |
| 17544 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 17545 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 17546 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17547 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17548 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17549 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17550 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17551 | # Write a limited-size here document to $tmp/defines.sed. |
| 17552 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17553 | # Speed up: don't consider the non `#define' lines. |
| 17554 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17555 | # Work around the forget-to-reset-the-flag bug. |
| 17556 | echo 't clr' >>$CONFIG_STATUS |
| 17557 | echo ': clr' >>$CONFIG_STATUS |
| 17558 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17559 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17560 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17561 | rm -f $tmp/in |
| 17562 | mv $tmp/out $tmp/in |
| 17563 | ' >>$CONFIG_STATUS |
| 17564 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17565 | rm -f conftest.defines |
| 17566 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17567 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17568 | rm -f conftest.defines |
| 17569 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 17570 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17572 | # Break up conftest.undefs because some shells have a limit on the size |
| 17573 | # of here documents, and old seds have small limits too (100 cmds). |
| 17574 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17575 | rm -f conftest.tail |
| 17576 | while grep . conftest.undefs >/dev/null |
| 17577 | do |
| 17578 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17579 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17580 | # Speed up: don't consider the non `#undef' |
| 17581 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17582 | # Work around the forget-to-reset-the-flag bug. |
| 17583 | echo 't clr' >>$CONFIG_STATUS |
| 17584 | echo ': clr' >>$CONFIG_STATUS |
| 17585 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17586 | echo 'CEOF |
| 17587 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17588 | rm -f $tmp/in |
| 17589 | mv $tmp/out $tmp/in |
| 17590 | ' >>$CONFIG_STATUS |
| 17591 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17592 | rm -f conftest.undefs |
| 17593 | mv conftest.tail conftest.undefs |
| 17594 | done |
| 17595 | rm -f conftest.undefs |
| 17596 | |
| 17597 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17598 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17599 | # use $as_me), people would be surprised to read: |
| 17600 | # /* config.h. Generated by config.status. */ |
| 17601 | if test x"$ac_file" = x-; then |
| 17602 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17604 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17605 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17606 | cat $tmp/in >>$tmp/config.h |
| 17607 | rm -f $tmp/in |
| 17608 | if test x"$ac_file" != x-; then |
| 17609 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 17610 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17611 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17612 | else |
| 17613 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17614 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17615 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17616 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17617 | X"$ac_file" : 'X\(/\)' \| \ |
| 17618 | . : '\(.\)' 2>/dev/null || |
| 17619 | echo X"$ac_file" | |
| 17620 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17621 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17622 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17623 | /^X\(\/\).*/{ s//\1/; q; } |
| 17624 | s/.*/./; q'` |
| 17625 | { case "$ac_dir" in |
| 17626 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17627 | *) as_incr_dir=.;; |
| 17628 | esac |
| 17629 | as_dummy="$ac_dir" |
| 17630 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17631 | case $as_mkdir_dir in |
| 17632 | # Skip DOS drivespec |
| 17633 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17634 | *) |
| 17635 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17636 | test -d "$as_incr_dir" || |
| 17637 | mkdir "$as_incr_dir" || |
| 17638 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17639 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17640 | { (exit 1); exit 1; }; } |
| 17641 | ;; |
| 17642 | esac |
| 17643 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17645 | rm -f $ac_file |
| 17646 | mv $tmp/config.h $ac_file |
| 17647 | fi |
| 17648 | else |
| 17649 | cat $tmp/config.h |
| 17650 | rm -f $tmp/config.h |
| 17651 | fi |
| 17652 | done |
| 17653 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17655 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17657 | { (exit 0); exit 0; } |
| 17658 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17659 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17660 | ac_clean_files=$ac_clean_files_save |
| 17661 | |
| 17662 | |
| 17663 | # configure is writing to config.log, and then calls config.status. |
| 17664 | # config.status does its own redirection, appending to config.log. |
| 17665 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17666 | # by configure, so config.status won't be able to write to it; its |
| 17667 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17668 | # effectively closing config.log, so it can be properly (re)opened and |
| 17669 | # appended to by config.status. When coming back to configure, we |
| 17670 | # need to make the FD available again. |
| 17671 | if test "$no_create" != yes; then |
| 17672 | ac_cs_success=: |
| 17673 | exec 5>/dev/null |
| 17674 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17675 | exec 5>>config.log |
| 17676 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17677 | # would make configure fail if this is the last instruction. |
| 17678 | $ac_cs_success || { (exit 1); exit 1; } |
| 17679 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17680 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17681 | |
| 17682 | echo "creating Setup" |
| 17683 | if test ! -f Modules/Setup |
| 17684 | then |
| 17685 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17686 | fi |
| 17687 | |
| 17688 | echo "creating Setup.local" |
| 17689 | if test ! -f Modules/Setup.local |
| 17690 | then |
| 17691 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17692 | fi |
| 17693 | |
| 17694 | echo "creating Makefile" |
| 17695 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17696 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17697 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17698 | mv config.c Modules |