Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.422 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +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. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10 | |
| 11 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 12 | as_expr=expr |
| 13 | else |
| 14 | as_expr=false |
| 15 | fi |
| 16 | |
| 17 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 30 | # NLS nuisances. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 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; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
| 63 | |
| 64 | # Name of the executable. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 65 | as_me=`(basename "$0") 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 89 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 230 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | d6640d4 | 2003-07-06 09:29:52 +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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 953 | generated by GNU Autoconf 2.53. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1065 | sed "/^$/d" confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1231 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 | |
| 1233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1234 | |
| 1235 | |
| 1236 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1237 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1238 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1239 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1240 | # with other autoconf-based packages that include Python.h |
| 1241 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1242 | rm confdefs.h |
| 1243 | mv confdefs.h.new confdefs.h |
| 1244 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1245 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1246 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1247 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1248 | |
| 1249 | SOVERSION=1.0 |
| 1250 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1251 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1252 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1253 | |
| 1254 | cat >>confdefs.h <<\_ACEOF |
| 1255 | #define _GNU_SOURCE 1 |
| 1256 | _ACEOF |
| 1257 | |
| 1258 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1259 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1260 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1261 | # them. |
| 1262 | |
| 1263 | cat >>confdefs.h <<\_ACEOF |
| 1264 | #define _NETBSD_SOURCE 1 |
| 1265 | _ACEOF |
| 1266 | |
| 1267 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1268 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1269 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1270 | # them. |
| 1271 | |
| 1272 | cat >>confdefs.h <<\_ACEOF |
| 1273 | #define __BSD_VISIBLE 1 |
| 1274 | _ACEOF |
| 1275 | |
| 1276 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1277 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1278 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1279 | # Arguments passed to configure. |
| 1280 | |
| 1281 | CONFIG_ARGS="$ac_configure_args" |
| 1282 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1283 | # Check whether --enable-framework or --disable-framework was given. |
| 1284 | if test "${enable_framework+set}" = set; then |
| 1285 | enableval="$enable_framework" |
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 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1288 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1289 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1290 | esac |
| 1291 | case $enableval in |
| 1292 | no) |
| 1293 | PYTHONFRAMEWORK= |
| 1294 | PYTHONFRAMEWORKDIR=no-framework |
| 1295 | PYTHONFRAMEWORKPREFIX= |
| 1296 | PYTHONFRAMEWORKINSTALLDIR= |
| 1297 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1298 | ;; |
| 1299 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1300 | PYTHONFRAMEWORK=Python |
| 1301 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1302 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1303 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1304 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1305 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1308 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1309 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1310 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1311 | PYTHONFRAMEWORKPREFIX= |
| 1312 | PYTHONFRAMEWORKINSTALLDIR= |
| 1313 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1315 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1320 | |
| 1321 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1322 | ## AC_HELP_STRING(--with-dyld, |
| 1323 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1324 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1325 | # Set name for machine-dependent library files |
| 1326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1327 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1328 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1329 | if test -z "$MACHDEP" |
| 1330 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1331 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1332 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1333 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1334 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1335 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1336 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1337 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1338 | ac_md_system=`echo $ac_sys_system | |
| 1339 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1340 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1341 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1342 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1343 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1344 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1345 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1346 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1347 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1348 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1349 | esac |
| 1350 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1351 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1352 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1353 | # disable features if it is defined, without any means to access these |
| 1354 | # features as extensions. For these systems, we skip the definition of |
| 1355 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1356 | # some feature, make sure there is no alternative way to access this |
| 1357 | # feature. Also, when using wildcards, make sure you have verified the |
| 1358 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1359 | # wildcard, and that the wildcard does not include future systems |
| 1360 | # (which may remove their limitations). |
| 1361 | case $ac_sys_system/$ac_sys_release in |
| 1362 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1363 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 858f817 | 2003-05-24 12:35:47 +0000 | [diff] [blame] | 1364 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm. |
| 1365 | OpenBSD/2.* | OpenBSD/3.[0123]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1366 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1367 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1368 | # of union __?sigval. Reported by Stuart Bishop. |
| 1369 | SunOS/5.6) |
| 1370 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1371 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1372 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
| 1373 | OpenUNIX/8.0.0| UnixWare/7.1.[0-3]) |
| 1374 | define_xopen_source=no;; |
| 1375 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1376 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1377 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1378 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1379 | esac |
| 1380 | |
| 1381 | if test $define_xopen_source = yes |
| 1382 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1383 | |
| 1384 | cat >>confdefs.h <<\_ACEOF |
| 1385 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1386 | _ACEOF |
| 1387 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1388 | |
| 1389 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1390 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1391 | # several APIs are not declared. Since this is also needed in some |
| 1392 | # cases for HP-UX, we define it globally. |
| 1393 | |
| 1394 | |
| 1395 | cat >>confdefs.h <<\_ACEOF |
| 1396 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1397 | _ACEOF |
| 1398 | |
| 1399 | |
| 1400 | cat >>confdefs.h <<\_ACEOF |
| 1401 | #define _POSIX_C_SOURCE 200112L |
| 1402 | _ACEOF |
| 1403 | |
| 1404 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1405 | fi |
| 1406 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1407 | # |
| 1408 | # SGI compilers allow the specification of the both the ABI and the |
| 1409 | # ISA on the command line. Depending on the values of these switches, |
| 1410 | # different and often incompatable code will be generated. |
| 1411 | # |
| 1412 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1413 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1414 | # variable is also adjusted. |
| 1415 | # |
| 1416 | |
| 1417 | if test ! -z "$SGI_ABI" |
| 1418 | then |
| 1419 | CC="cc $SGI_ABI" |
| 1420 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1421 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1424 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1425 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1426 | # And add extra plat-mac for darwin |
| 1427 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1428 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1429 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1430 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1431 | if test -z "$EXTRAPLATDIR" |
| 1432 | then |
| 1433 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1434 | darwin) |
| 1435 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1436 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1437 | ;; |
| 1438 | *) |
| 1439 | EXTRAPLATDIR="" |
| 1440 | EXTRAMACHDEPPATH="" |
| 1441 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1442 | esac |
| 1443 | fi |
| 1444 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1445 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1446 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1447 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1448 | |
| 1449 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1450 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1451 | # just to get things to compile and link. Users are free to override OPT |
| 1452 | # when running configure or make. The build should not break if they do. |
| 1453 | # BASECFLAGS should generally not be messed with, however. |
| 1454 | |
| 1455 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1456 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1458 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1459 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1460 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1461 | if test "${with_gcc+set}" = set; then |
| 1462 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1463 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1464 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1465 | no) CC=cc |
| 1466 | without_gcc=yes;; |
| 1467 | yes) CC=gcc |
| 1468 | without_gcc=no;; |
| 1469 | *) CC=$withval |
| 1470 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1471 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1474 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1475 | AIX*) CC=cc_r |
| 1476 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1477 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1478 | case $BE_HOST_CPU in |
| 1479 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1480 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1481 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1482 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1483 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1484 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1485 | ;; |
| 1486 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1487 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1488 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1489 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1490 | ;; |
| 1491 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1493 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1494 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1495 | ;; |
| 1496 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1497 | AR="\$(srcdir)/Modules/ar_beos" |
| 1498 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1499 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1500 | Monterey*) |
| 1501 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1502 | without_gcc=;; |
| 1503 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1504 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 | fi; |
| 1506 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1507 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1508 | |
| 1509 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1510 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1511 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1513 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1514 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1515 | # Check whether --with-cxx or --without-cxx was given. |
| 1516 | if test "${with_cxx+set}" = set; then |
| 1517 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1518 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1519 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1520 | case $withval in |
| 1521 | no) CXX= |
| 1522 | with_cxx=no;; |
| 1523 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1524 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1525 | with_cxx=$withval;; |
| 1526 | esac |
| 1527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1528 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1529 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1530 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1532 | fi; |
| 1533 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1534 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1535 | |
| 1536 | if test "$with_cxx" = "yes" |
| 1537 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1538 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1539 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1540 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1541 | fi |
| 1542 | |
| 1543 | |
| 1544 | |
| 1545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1546 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1547 | then |
| 1548 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1549 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | # 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] | 1551 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1554 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1556 | else |
| 1557 | if test -n "$CXX"; then |
| 1558 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1561 | for as_dir in $PATH |
| 1562 | do |
| 1563 | IFS=$as_save_IFS |
| 1564 | test -z "$as_dir" && as_dir=. |
| 1565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1567 | ac_cv_prog_CXX="$ac_prog" |
| 1568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1569 | break 2 |
| 1570 | fi |
| 1571 | done |
| 1572 | done |
| 1573 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1574 | fi |
| 1575 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1576 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1577 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1578 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1579 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1581 | echo "$as_me:$LINENO: result: no" >&5 |
| 1582 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1583 | fi |
| 1584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1585 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1586 | done |
| 1587 | test -n "$CXX" || CXX="notfound" |
| 1588 | |
| 1589 | if test "$CXX" = "notfound" |
| 1590 | then |
| 1591 | CXX= |
| 1592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1593 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1594 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1595 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1596 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1597 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1598 | cat >conftest.$ac_ext <<_ACEOF |
| 1599 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1600 | #include "confdefs.h" |
| 1601 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1602 | #ifdef F77_DUMMY_MAIN |
| 1603 | # ifdef __cplusplus |
| 1604 | extern "C" |
| 1605 | # endif |
| 1606 | int F77_DUMMY_MAIN() { return 1; } |
| 1607 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1608 | int |
| 1609 | main () |
| 1610 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1612 | ; |
| 1613 | return 0; |
| 1614 | } |
| 1615 | _ACEOF |
| 1616 | ac_clean_files_save=$ac_clean_files |
| 1617 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1618 | # Try to create an executable without -o first, disregard a.out. |
| 1619 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1620 | # of exeext. |
| 1621 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1622 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1623 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1624 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1625 | (eval $ac_link_default) 2>&5 |
| 1626 | ac_status=$? |
| 1627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1628 | (exit $ac_status); }; then |
| 1629 | # Find the output, starting from the most likely. This scheme is |
| 1630 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1631 | # resort. |
| 1632 | |
| 1633 | # Be careful to initialize this variable, since it used to be cached. |
| 1634 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1635 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1636 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1637 | ls a.out conftest 2>/dev/null; |
| 1638 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1639 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1640 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1641 | a.out ) # We found the default executable, but exeext='' is most |
| 1642 | # certainly right. |
| 1643 | break;; |
| 1644 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1645 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1646 | export ac_cv_exeext |
| 1647 | break;; |
| 1648 | * ) break;; |
| 1649 | esac |
| 1650 | done |
| 1651 | else |
| 1652 | echo "$as_me: failed program was:" >&5 |
| 1653 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1654 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1655 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1656 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1658 | |
| 1659 | ac_exeext=$ac_cv_exeext |
| 1660 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1661 | echo "${ECHO_T}$ac_file" >&6 |
| 1662 | |
| 1663 | # Check the compiler produces executables we can run. If not, either |
| 1664 | # the compiler is broken, or we cross compile. |
| 1665 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1666 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1667 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1668 | # If not cross compiling, check that we can run a simple program. |
| 1669 | if test "$cross_compiling" != yes; then |
| 1670 | if { ac_try='./$ac_file' |
| 1671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1672 | (eval $ac_try) 2>&5 |
| 1673 | ac_status=$? |
| 1674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1675 | (exit $ac_status); }; }; then |
| 1676 | cross_compiling=no |
| 1677 | else |
| 1678 | if test "$cross_compiling" = maybe; then |
| 1679 | cross_compiling=yes |
| 1680 | else |
| 1681 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1682 | If you meant to cross compile, use \`--host'." >&5 |
| 1683 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1684 | If you meant to cross compile, use \`--host'." >&2;} |
| 1685 | { (exit 1); exit 1; }; } |
| 1686 | fi |
| 1687 | fi |
| 1688 | fi |
| 1689 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1690 | echo "${ECHO_T}yes" >&6 |
| 1691 | |
| 1692 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1693 | ac_clean_files=$ac_clean_files_save |
| 1694 | # Check the compiler produces executables we can run. If not, either |
| 1695 | # the compiler is broken, or we cross compile. |
| 1696 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1697 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1698 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1699 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1700 | |
| 1701 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1702 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1704 | (eval $ac_link) 2>&5 |
| 1705 | ac_status=$? |
| 1706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1707 | (exit $ac_status); }; then |
| 1708 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1709 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1710 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1711 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1712 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1713 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1714 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1715 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1716 | export ac_cv_exeext |
| 1717 | break;; |
| 1718 | * ) break;; |
| 1719 | esac |
| 1720 | done |
| 1721 | else |
| 1722 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1723 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1724 | { (exit 1); exit 1; }; } |
| 1725 | fi |
| 1726 | |
| 1727 | rm -f conftest$ac_cv_exeext |
| 1728 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1729 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1730 | |
| 1731 | rm -f conftest.$ac_ext |
| 1732 | EXEEXT=$ac_cv_exeext |
| 1733 | ac_exeext=$EXEEXT |
| 1734 | |
| 1735 | ac_ext=c |
| 1736 | ac_cpp='$CPP $CPPFLAGS' |
| 1737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1740 | |
| 1741 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1742 | |
| 1743 | fi |
| 1744 | fi |
| 1745 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1746 | # If the user switches compilers, we can't believe the cache |
| 1747 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1748 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1749 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1750 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1751 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1752 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1753 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1754 | fi |
| 1755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1756 | ac_ext=c |
| 1757 | ac_cpp='$CPP $CPPFLAGS' |
| 1758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1761 | if test -n "$ac_tool_prefix"; then |
| 1762 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1763 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1766 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1768 | else |
| 1769 | if test -n "$CC"; then |
| 1770 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1771 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1773 | for as_dir in $PATH |
| 1774 | do |
| 1775 | IFS=$as_save_IFS |
| 1776 | test -z "$as_dir" && as_dir=. |
| 1777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1779 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1781 | break 2 |
| 1782 | fi |
| 1783 | done |
| 1784 | done |
| 1785 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1786 | fi |
| 1787 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1788 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1789 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1790 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1791 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1792 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1793 | echo "$as_me:$LINENO: result: no" >&5 |
| 1794 | echo "${ECHO_T}no" >&6 |
| 1795 | fi |
| 1796 | |
| 1797 | fi |
| 1798 | if test -z "$ac_cv_prog_CC"; then |
| 1799 | ac_ct_CC=$CC |
| 1800 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1801 | set dummy gcc; ac_word=$2 |
| 1802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1804 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1806 | else |
| 1807 | if test -n "$ac_ct_CC"; then |
| 1808 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1809 | else |
| 1810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1811 | for as_dir in $PATH |
| 1812 | do |
| 1813 | IFS=$as_save_IFS |
| 1814 | test -z "$as_dir" && as_dir=. |
| 1815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1817 | ac_cv_prog_ac_ct_CC="gcc" |
| 1818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1819 | break 2 |
| 1820 | fi |
| 1821 | done |
| 1822 | done |
| 1823 | |
| 1824 | fi |
| 1825 | fi |
| 1826 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1827 | if test -n "$ac_ct_CC"; then |
| 1828 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1829 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1830 | else |
| 1831 | echo "$as_me:$LINENO: result: no" >&5 |
| 1832 | echo "${ECHO_T}no" >&6 |
| 1833 | fi |
| 1834 | |
| 1835 | CC=$ac_ct_CC |
| 1836 | else |
| 1837 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1838 | fi |
| 1839 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1840 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1841 | if test -n "$ac_tool_prefix"; then |
| 1842 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1843 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1846 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1848 | else |
| 1849 | if test -n "$CC"; then |
| 1850 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1853 | for as_dir in $PATH |
| 1854 | do |
| 1855 | IFS=$as_save_IFS |
| 1856 | test -z "$as_dir" && as_dir=. |
| 1857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1859 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1861 | break 2 |
| 1862 | fi |
| 1863 | done |
| 1864 | done |
| 1865 | |
| 1866 | fi |
| 1867 | fi |
| 1868 | CC=$ac_cv_prog_CC |
| 1869 | if test -n "$CC"; then |
| 1870 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1871 | echo "${ECHO_T}$CC" >&6 |
| 1872 | else |
| 1873 | echo "$as_me:$LINENO: result: no" >&5 |
| 1874 | echo "${ECHO_T}no" >&6 |
| 1875 | fi |
| 1876 | |
| 1877 | fi |
| 1878 | if test -z "$ac_cv_prog_CC"; then |
| 1879 | ac_ct_CC=$CC |
| 1880 | # Extract the first word of "cc", so it can be a program name with args. |
| 1881 | set dummy cc; ac_word=$2 |
| 1882 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1884 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1886 | else |
| 1887 | if test -n "$ac_ct_CC"; then |
| 1888 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1889 | else |
| 1890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1891 | for as_dir in $PATH |
| 1892 | do |
| 1893 | IFS=$as_save_IFS |
| 1894 | test -z "$as_dir" && as_dir=. |
| 1895 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1896 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1897 | ac_cv_prog_ac_ct_CC="cc" |
| 1898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1899 | break 2 |
| 1900 | fi |
| 1901 | done |
| 1902 | done |
| 1903 | |
| 1904 | fi |
| 1905 | fi |
| 1906 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1907 | if test -n "$ac_ct_CC"; then |
| 1908 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1909 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1910 | else |
| 1911 | echo "$as_me:$LINENO: result: no" >&5 |
| 1912 | echo "${ECHO_T}no" >&6 |
| 1913 | fi |
| 1914 | |
| 1915 | CC=$ac_ct_CC |
| 1916 | else |
| 1917 | CC="$ac_cv_prog_CC" |
| 1918 | fi |
| 1919 | |
| 1920 | fi |
| 1921 | if test -z "$CC"; then |
| 1922 | # Extract the first word of "cc", so it can be a program name with args. |
| 1923 | set dummy cc; ac_word=$2 |
| 1924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1926 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1928 | else |
| 1929 | if test -n "$CC"; then |
| 1930 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1931 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1932 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1934 | for as_dir in $PATH |
| 1935 | do |
| 1936 | IFS=$as_save_IFS |
| 1937 | test -z "$as_dir" && as_dir=. |
| 1938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1940 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1941 | ac_prog_rejected=yes |
| 1942 | continue |
| 1943 | fi |
| 1944 | ac_cv_prog_CC="cc" |
| 1945 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1946 | break 2 |
| 1947 | fi |
| 1948 | done |
| 1949 | done |
| 1950 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1951 | if test $ac_prog_rejected = yes; then |
| 1952 | # We found a bogon in the path, so make sure we never use it. |
| 1953 | set dummy $ac_cv_prog_CC |
| 1954 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1955 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1956 | # We chose a different compiler from the bogus one. |
| 1957 | # However, it has the same basename, so the bogon will be chosen |
| 1958 | # first if we set CC to just the basename; use the full file name. |
| 1959 | shift |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1960 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
| 1961 | shift |
| 1962 | ac_cv_prog_CC="$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1963 | fi |
| 1964 | fi |
| 1965 | fi |
| 1966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1967 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1968 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1969 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1970 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1972 | echo "$as_me:$LINENO: result: no" >&5 |
| 1973 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1974 | fi |
| 1975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1976 | fi |
| 1977 | if test -z "$CC"; then |
| 1978 | if test -n "$ac_tool_prefix"; then |
| 1979 | for ac_prog in cl |
| 1980 | do |
| 1981 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1982 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1985 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1987 | else |
| 1988 | if test -n "$CC"; then |
| 1989 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1992 | for as_dir in $PATH |
| 1993 | do |
| 1994 | IFS=$as_save_IFS |
| 1995 | test -z "$as_dir" && as_dir=. |
| 1996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1998 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2000 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2002 | done |
| 2003 | done |
| 2004 | |
| 2005 | fi |
| 2006 | fi |
| 2007 | CC=$ac_cv_prog_CC |
| 2008 | if test -n "$CC"; then |
| 2009 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2010 | echo "${ECHO_T}$CC" >&6 |
| 2011 | else |
| 2012 | echo "$as_me:$LINENO: result: no" >&5 |
| 2013 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2014 | fi |
| 2015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2016 | test -n "$CC" && break |
| 2017 | done |
| 2018 | fi |
| 2019 | if test -z "$CC"; then |
| 2020 | ac_ct_CC=$CC |
| 2021 | for ac_prog in cl |
| 2022 | do |
| 2023 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2024 | set dummy $ac_prog; ac_word=$2 |
| 2025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2027 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2029 | else |
| 2030 | if test -n "$ac_ct_CC"; then |
| 2031 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2032 | else |
| 2033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2034 | for as_dir in $PATH |
| 2035 | do |
| 2036 | IFS=$as_save_IFS |
| 2037 | test -z "$as_dir" && as_dir=. |
| 2038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2040 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2042 | break 2 |
| 2043 | fi |
| 2044 | done |
| 2045 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2047 | fi |
| 2048 | fi |
| 2049 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2050 | if test -n "$ac_ct_CC"; then |
| 2051 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2052 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2053 | else |
| 2054 | echo "$as_me:$LINENO: result: no" >&5 |
| 2055 | echo "${ECHO_T}no" >&6 |
| 2056 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2058 | test -n "$ac_ct_CC" && break |
| 2059 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2061 | CC=$ac_ct_CC |
| 2062 | fi |
| 2063 | |
| 2064 | fi |
| 2065 | |
| 2066 | |
| 2067 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2068 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2069 | { (exit 1); exit 1; }; } |
| 2070 | |
| 2071 | # Provide some information about the compiler. |
| 2072 | echo "$as_me:$LINENO:" \ |
| 2073 | "checking for C compiler version" >&5 |
| 2074 | ac_compiler=`set X $ac_compile; echo $2` |
| 2075 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2076 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2077 | ac_status=$? |
| 2078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2079 | (exit $ac_status); } |
| 2080 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2081 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2082 | ac_status=$? |
| 2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2084 | (exit $ac_status); } |
| 2085 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2086 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2087 | ac_status=$? |
| 2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2089 | (exit $ac_status); } |
| 2090 | |
| 2091 | cat >conftest.$ac_ext <<_ACEOF |
| 2092 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2093 | #include "confdefs.h" |
| 2094 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2095 | #ifdef F77_DUMMY_MAIN |
| 2096 | # ifdef __cplusplus |
| 2097 | extern "C" |
| 2098 | # endif |
| 2099 | int F77_DUMMY_MAIN() { return 1; } |
| 2100 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2101 | int |
| 2102 | main () |
| 2103 | { |
| 2104 | |
| 2105 | ; |
| 2106 | return 0; |
| 2107 | } |
| 2108 | _ACEOF |
| 2109 | ac_clean_files_save=$ac_clean_files |
| 2110 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2111 | # Try to create an executable without -o first, disregard a.out. |
| 2112 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2113 | # of exeext. |
| 2114 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2115 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2116 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2117 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2118 | (eval $ac_link_default) 2>&5 |
| 2119 | ac_status=$? |
| 2120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2121 | (exit $ac_status); }; then |
| 2122 | # Find the output, starting from the most likely. This scheme is |
| 2123 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2124 | # resort. |
| 2125 | |
| 2126 | # Be careful to initialize this variable, since it used to be cached. |
| 2127 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2128 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2129 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2130 | ls a.out conftest 2>/dev/null; |
| 2131 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2132 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2133 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2134 | a.out ) # We found the default executable, but exeext='' is most |
| 2135 | # certainly right. |
| 2136 | break;; |
| 2137 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2138 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2139 | export ac_cv_exeext |
| 2140 | break;; |
| 2141 | * ) break;; |
| 2142 | esac |
| 2143 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2145 | echo "$as_me: failed program was:" >&5 |
| 2146 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2147 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2148 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2149 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2150 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2152 | ac_exeext=$ac_cv_exeext |
| 2153 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2154 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2156 | # Check the compiler produces executables we can run. If not, either |
| 2157 | # the compiler is broken, or we cross compile. |
| 2158 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2159 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2160 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2161 | # If not cross compiling, check that we can run a simple program. |
| 2162 | if test "$cross_compiling" != yes; then |
| 2163 | if { ac_try='./$ac_file' |
| 2164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2165 | (eval $ac_try) 2>&5 |
| 2166 | ac_status=$? |
| 2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2168 | (exit $ac_status); }; }; then |
| 2169 | cross_compiling=no |
| 2170 | else |
| 2171 | if test "$cross_compiling" = maybe; then |
| 2172 | cross_compiling=yes |
| 2173 | else |
| 2174 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2175 | If you meant to cross compile, use \`--host'." >&5 |
| 2176 | echo "$as_me: error: cannot run C compiled programs. |
| 2177 | If you meant to cross compile, use \`--host'." >&2;} |
| 2178 | { (exit 1); exit 1; }; } |
| 2179 | fi |
| 2180 | fi |
| 2181 | fi |
| 2182 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2183 | echo "${ECHO_T}yes" >&6 |
| 2184 | |
| 2185 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2186 | ac_clean_files=$ac_clean_files_save |
| 2187 | # Check the compiler produces executables we can run. If not, either |
| 2188 | # the compiler is broken, or we cross compile. |
| 2189 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2190 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2191 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2192 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2193 | |
| 2194 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2195 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2197 | (eval $ac_link) 2>&5 |
| 2198 | ac_status=$? |
| 2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2200 | (exit $ac_status); }; then |
| 2201 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2202 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2203 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2204 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2205 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2206 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2207 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2208 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2209 | export ac_cv_exeext |
| 2210 | break;; |
| 2211 | * ) break;; |
| 2212 | esac |
| 2213 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2215 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2216 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2217 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2218 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2220 | rm -f conftest$ac_cv_exeext |
| 2221 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2222 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2223 | |
| 2224 | rm -f conftest.$ac_ext |
| 2225 | EXEEXT=$ac_cv_exeext |
| 2226 | ac_exeext=$EXEEXT |
| 2227 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2228 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2229 | if test "${ac_cv_objext+set}" = set; then |
| 2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2232 | cat >conftest.$ac_ext <<_ACEOF |
| 2233 | #line $LINENO "configure" |
| 2234 | #include "confdefs.h" |
| 2235 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2236 | #ifdef F77_DUMMY_MAIN |
| 2237 | # ifdef __cplusplus |
| 2238 | extern "C" |
| 2239 | # endif |
| 2240 | int F77_DUMMY_MAIN() { return 1; } |
| 2241 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2242 | int |
| 2243 | main () |
| 2244 | { |
| 2245 | |
| 2246 | ; |
| 2247 | return 0; |
| 2248 | } |
| 2249 | _ACEOF |
| 2250 | rm -f conftest.o conftest.obj |
| 2251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2252 | (eval $ac_compile) 2>&5 |
| 2253 | ac_status=$? |
| 2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2255 | (exit $ac_status); }; then |
| 2256 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2257 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2258 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2259 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2260 | break;; |
| 2261 | esac |
| 2262 | done |
| 2263 | else |
| 2264 | echo "$as_me: failed program was:" >&5 |
| 2265 | cat conftest.$ac_ext >&5 |
| 2266 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2267 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2268 | { (exit 1); exit 1; }; } |
| 2269 | fi |
| 2270 | |
| 2271 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2272 | fi |
| 2273 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2274 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2275 | OBJEXT=$ac_cv_objext |
| 2276 | ac_objext=$OBJEXT |
| 2277 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2278 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2279 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2281 | else |
| 2282 | cat >conftest.$ac_ext <<_ACEOF |
| 2283 | #line $LINENO "configure" |
| 2284 | #include "confdefs.h" |
| 2285 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2286 | #ifdef F77_DUMMY_MAIN |
| 2287 | # ifdef __cplusplus |
| 2288 | extern "C" |
| 2289 | # endif |
| 2290 | int F77_DUMMY_MAIN() { return 1; } |
| 2291 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2292 | int |
| 2293 | main () |
| 2294 | { |
| 2295 | #ifndef __GNUC__ |
| 2296 | choke me |
| 2297 | #endif |
| 2298 | |
| 2299 | ; |
| 2300 | return 0; |
| 2301 | } |
| 2302 | _ACEOF |
| 2303 | rm -f conftest.$ac_objext |
| 2304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2305 | (eval $ac_compile) 2>&5 |
| 2306 | ac_status=$? |
| 2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2308 | (exit $ac_status); } && |
| 2309 | { ac_try='test -s conftest.$ac_objext' |
| 2310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2311 | (eval $ac_try) 2>&5 |
| 2312 | ac_status=$? |
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2314 | (exit $ac_status); }; }; then |
| 2315 | ac_compiler_gnu=yes |
| 2316 | else |
| 2317 | echo "$as_me: failed program was:" >&5 |
| 2318 | cat conftest.$ac_ext >&5 |
| 2319 | ac_compiler_gnu=no |
| 2320 | fi |
| 2321 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2322 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2323 | |
| 2324 | fi |
| 2325 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2326 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2327 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2328 | ac_test_CFLAGS=${CFLAGS+set} |
| 2329 | ac_save_CFLAGS=$CFLAGS |
| 2330 | CFLAGS="-g" |
| 2331 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2332 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2333 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2335 | else |
| 2336 | cat >conftest.$ac_ext <<_ACEOF |
| 2337 | #line $LINENO "configure" |
| 2338 | #include "confdefs.h" |
| 2339 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2340 | #ifdef F77_DUMMY_MAIN |
| 2341 | # ifdef __cplusplus |
| 2342 | extern "C" |
| 2343 | # endif |
| 2344 | int F77_DUMMY_MAIN() { return 1; } |
| 2345 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 | int |
| 2347 | main () |
| 2348 | { |
| 2349 | |
| 2350 | ; |
| 2351 | return 0; |
| 2352 | } |
| 2353 | _ACEOF |
| 2354 | rm -f conftest.$ac_objext |
| 2355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2356 | (eval $ac_compile) 2>&5 |
| 2357 | ac_status=$? |
| 2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2359 | (exit $ac_status); } && |
| 2360 | { ac_try='test -s conftest.$ac_objext' |
| 2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2362 | (eval $ac_try) 2>&5 |
| 2363 | ac_status=$? |
| 2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2365 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2366 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2368 | echo "$as_me: failed program was:" >&5 |
| 2369 | cat conftest.$ac_ext >&5 |
| 2370 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2373 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2374 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2375 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2376 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2377 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2378 | elif test $ac_cv_prog_cc_g = yes; then |
| 2379 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2380 | CFLAGS="-g -O2" |
| 2381 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2382 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2383 | fi |
| 2384 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2385 | if test "$GCC" = yes; then |
| 2386 | CFLAGS="-O2" |
| 2387 | else |
| 2388 | CFLAGS= |
| 2389 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2390 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2391 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2392 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2393 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2394 | # the declaration of exit, since it's the most demanding environment. |
| 2395 | cat >conftest.$ac_ext <<_ACEOF |
| 2396 | #ifndef __cplusplus |
| 2397 | choke me |
| 2398 | #endif |
| 2399 | _ACEOF |
| 2400 | rm -f conftest.$ac_objext |
| 2401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2402 | (eval $ac_compile) 2>&5 |
| 2403 | ac_status=$? |
| 2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2405 | (exit $ac_status); } && |
| 2406 | { ac_try='test -s conftest.$ac_objext' |
| 2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2408 | (eval $ac_try) 2>&5 |
| 2409 | ac_status=$? |
| 2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2411 | (exit $ac_status); }; }; then |
| 2412 | for ac_declaration in \ |
| 2413 | ''\ |
| 2414 | '#include <stdlib.h>' \ |
| 2415 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2416 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2417 | 'extern "C" void exit (int) throw ();' \ |
| 2418 | 'extern "C" void exit (int);' \ |
| 2419 | 'void exit (int);' |
| 2420 | do |
| 2421 | cat >conftest.$ac_ext <<_ACEOF |
| 2422 | #line $LINENO "configure" |
| 2423 | #include "confdefs.h" |
| 2424 | #include <stdlib.h> |
| 2425 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2426 | #ifdef F77_DUMMY_MAIN |
| 2427 | # ifdef __cplusplus |
| 2428 | extern "C" |
| 2429 | # endif |
| 2430 | int F77_DUMMY_MAIN() { return 1; } |
| 2431 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2432 | int |
| 2433 | main () |
| 2434 | { |
| 2435 | exit (42); |
| 2436 | ; |
| 2437 | return 0; |
| 2438 | } |
| 2439 | _ACEOF |
| 2440 | rm -f conftest.$ac_objext |
| 2441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2442 | (eval $ac_compile) 2>&5 |
| 2443 | ac_status=$? |
| 2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2445 | (exit $ac_status); } && |
| 2446 | { ac_try='test -s conftest.$ac_objext' |
| 2447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2448 | (eval $ac_try) 2>&5 |
| 2449 | ac_status=$? |
| 2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2451 | (exit $ac_status); }; }; then |
| 2452 | : |
| 2453 | else |
| 2454 | echo "$as_me: failed program was:" >&5 |
| 2455 | cat conftest.$ac_ext >&5 |
| 2456 | continue |
| 2457 | fi |
| 2458 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2459 | cat >conftest.$ac_ext <<_ACEOF |
| 2460 | #line $LINENO "configure" |
| 2461 | #include "confdefs.h" |
| 2462 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2463 | #ifdef F77_DUMMY_MAIN |
| 2464 | # ifdef __cplusplus |
| 2465 | extern "C" |
| 2466 | # endif |
| 2467 | int F77_DUMMY_MAIN() { return 1; } |
| 2468 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2469 | int |
| 2470 | main () |
| 2471 | { |
| 2472 | exit (42); |
| 2473 | ; |
| 2474 | return 0; |
| 2475 | } |
| 2476 | _ACEOF |
| 2477 | rm -f conftest.$ac_objext |
| 2478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2479 | (eval $ac_compile) 2>&5 |
| 2480 | ac_status=$? |
| 2481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2482 | (exit $ac_status); } && |
| 2483 | { ac_try='test -s conftest.$ac_objext' |
| 2484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2485 | (eval $ac_try) 2>&5 |
| 2486 | ac_status=$? |
| 2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2488 | (exit $ac_status); }; }; then |
| 2489 | break |
| 2490 | else |
| 2491 | echo "$as_me: failed program was:" >&5 |
| 2492 | cat conftest.$ac_ext >&5 |
| 2493 | fi |
| 2494 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2495 | done |
| 2496 | rm -f conftest* |
| 2497 | if test -n "$ac_declaration"; then |
| 2498 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2499 | echo $ac_declaration >>confdefs.h |
| 2500 | echo '#endif' >>confdefs.h |
| 2501 | fi |
| 2502 | |
| 2503 | else |
| 2504 | echo "$as_me: failed program was:" >&5 |
| 2505 | cat conftest.$ac_ext >&5 |
| 2506 | fi |
| 2507 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2508 | ac_ext=c |
| 2509 | ac_cpp='$CPP $CPPFLAGS' |
| 2510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2513 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2514 | |
| 2515 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | |
| 2517 | ac_ext=c |
| 2518 | ac_cpp='$CPP $CPPFLAGS' |
| 2519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2522 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2523 | 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] | 2524 | # On Suns, sometimes $CPP names a directory. |
| 2525 | if test -n "$CPP" && test -d "$CPP"; then |
| 2526 | CPP= |
| 2527 | fi |
| 2528 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2529 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2532 | # Double quotes because CPP needs to be expanded |
| 2533 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2534 | do |
| 2535 | ac_preproc_ok=false |
| 2536 | for ac_c_preproc_warn_flag in '' yes |
| 2537 | do |
| 2538 | # Use a header file that comes with gcc, so configuring glibc |
| 2539 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2540 | # 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] | 2541 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2542 | cat >conftest.$ac_ext <<_ACEOF |
| 2543 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2544 | #include "confdefs.h" |
| 2545 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2546 | Syntax error |
| 2547 | _ACEOF |
| 2548 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2549 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2550 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2551 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2552 | rm -f conftest.er1 |
| 2553 | cat conftest.err >&5 |
| 2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2555 | (exit $ac_status); } >/dev/null; then |
| 2556 | if test -s conftest.err; then |
| 2557 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2558 | else |
| 2559 | ac_cpp_err= |
| 2560 | fi |
| 2561 | else |
| 2562 | ac_cpp_err=yes |
| 2563 | fi |
| 2564 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2565 | : |
| 2566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2568 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2569 | # Broken: fails on valid input. |
| 2570 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2572 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | # OK, works on sane cases. Now check whether non-existent headers |
| 2575 | # can be detected and how. |
| 2576 | cat >conftest.$ac_ext <<_ACEOF |
| 2577 | #line $LINENO "configure" |
| 2578 | #include "confdefs.h" |
| 2579 | #include <ac_nonexistent.h> |
| 2580 | _ACEOF |
| 2581 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2582 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2583 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2584 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2585 | rm -f conftest.er1 |
| 2586 | cat conftest.err >&5 |
| 2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2588 | (exit $ac_status); } >/dev/null; then |
| 2589 | if test -s conftest.err; then |
| 2590 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2591 | else |
| 2592 | ac_cpp_err= |
| 2593 | fi |
| 2594 | else |
| 2595 | ac_cpp_err=yes |
| 2596 | fi |
| 2597 | if test -z "$ac_cpp_err"; then |
| 2598 | # Broken: success on invalid input. |
| 2599 | continue |
| 2600 | else |
| 2601 | echo "$as_me: failed program was:" >&5 |
| 2602 | cat conftest.$ac_ext >&5 |
| 2603 | # Passes both tests. |
| 2604 | ac_preproc_ok=: |
| 2605 | break |
| 2606 | fi |
| 2607 | rm -f conftest.err conftest.$ac_ext |
| 2608 | |
| 2609 | done |
| 2610 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2611 | rm -f conftest.err conftest.$ac_ext |
| 2612 | if $ac_preproc_ok; then |
| 2613 | break |
| 2614 | fi |
| 2615 | |
| 2616 | done |
| 2617 | ac_cv_prog_CPP=$CPP |
| 2618 | |
| 2619 | fi |
| 2620 | CPP=$ac_cv_prog_CPP |
| 2621 | else |
| 2622 | ac_cv_prog_CPP=$CPP |
| 2623 | fi |
| 2624 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2625 | echo "${ECHO_T}$CPP" >&6 |
| 2626 | ac_preproc_ok=false |
| 2627 | for ac_c_preproc_warn_flag in '' yes |
| 2628 | do |
| 2629 | # Use a header file that comes with gcc, so configuring glibc |
| 2630 | # with a fresh cross-compiler works. |
| 2631 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2632 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2633 | cat >conftest.$ac_ext <<_ACEOF |
| 2634 | #line $LINENO "configure" |
| 2635 | #include "confdefs.h" |
| 2636 | #include <assert.h> |
| 2637 | Syntax error |
| 2638 | _ACEOF |
| 2639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2641 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2642 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | rm -f conftest.er1 |
| 2644 | cat conftest.err >&5 |
| 2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2646 | (exit $ac_status); } >/dev/null; then |
| 2647 | if test -s conftest.err; then |
| 2648 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2649 | else |
| 2650 | ac_cpp_err= |
| 2651 | fi |
| 2652 | else |
| 2653 | ac_cpp_err=yes |
| 2654 | fi |
| 2655 | if test -z "$ac_cpp_err"; then |
| 2656 | : |
| 2657 | else |
| 2658 | echo "$as_me: failed program was:" >&5 |
| 2659 | cat conftest.$ac_ext >&5 |
| 2660 | # Broken: fails on valid input. |
| 2661 | continue |
| 2662 | fi |
| 2663 | rm -f conftest.err conftest.$ac_ext |
| 2664 | |
| 2665 | # OK, works on sane cases. Now check whether non-existent headers |
| 2666 | # can be detected and how. |
| 2667 | cat >conftest.$ac_ext <<_ACEOF |
| 2668 | #line $LINENO "configure" |
| 2669 | #include "confdefs.h" |
| 2670 | #include <ac_nonexistent.h> |
| 2671 | _ACEOF |
| 2672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2674 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2675 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | rm -f conftest.er1 |
| 2677 | cat conftest.err >&5 |
| 2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2679 | (exit $ac_status); } >/dev/null; then |
| 2680 | if test -s conftest.err; then |
| 2681 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2682 | else |
| 2683 | ac_cpp_err= |
| 2684 | fi |
| 2685 | else |
| 2686 | ac_cpp_err=yes |
| 2687 | fi |
| 2688 | if test -z "$ac_cpp_err"; then |
| 2689 | # Broken: success on invalid input. |
| 2690 | continue |
| 2691 | else |
| 2692 | echo "$as_me: failed program was:" >&5 |
| 2693 | cat conftest.$ac_ext >&5 |
| 2694 | # Passes both tests. |
| 2695 | ac_preproc_ok=: |
| 2696 | break |
| 2697 | fi |
| 2698 | rm -f conftest.err conftest.$ac_ext |
| 2699 | |
| 2700 | done |
| 2701 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2702 | rm -f conftest.err conftest.$ac_ext |
| 2703 | if $ac_preproc_ok; then |
| 2704 | : |
| 2705 | else |
| 2706 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2707 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2708 | { (exit 1); exit 1; }; } |
| 2709 | fi |
| 2710 | |
| 2711 | ac_ext=c |
| 2712 | ac_cpp='$CPP $CPPFLAGS' |
| 2713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2716 | |
| 2717 | |
| 2718 | |
| 2719 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2720 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2721 | cat >conftest.$ac_ext <<_ACEOF |
| 2722 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2723 | #include "confdefs.h" |
| 2724 | #ifdef _AIX |
| 2725 | yes |
| 2726 | #endif |
| 2727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2728 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2730 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2732 | echo "${ECHO_T}yes" >&6 |
| 2733 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2734 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2735 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2736 | |
| 2737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2738 | echo "$as_me:$LINENO: result: no" >&5 |
| 2739 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2740 | fi |
| 2741 | rm -f conftest* |
| 2742 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2744 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2745 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2746 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2749 | cat >conftest.$ac_ext <<_ACEOF |
| 2750 | #line $LINENO "configure" |
| 2751 | #include "confdefs.h" |
| 2752 | #include <stdlib.h> |
| 2753 | #include <stdarg.h> |
| 2754 | #include <string.h> |
| 2755 | #include <float.h> |
| 2756 | |
| 2757 | _ACEOF |
| 2758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2760 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2761 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2762 | rm -f conftest.er1 |
| 2763 | cat conftest.err >&5 |
| 2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2765 | (exit $ac_status); } >/dev/null; then |
| 2766 | if test -s conftest.err; then |
| 2767 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2768 | else |
| 2769 | ac_cpp_err= |
| 2770 | fi |
| 2771 | else |
| 2772 | ac_cpp_err=yes |
| 2773 | fi |
| 2774 | if test -z "$ac_cpp_err"; then |
| 2775 | ac_cv_header_stdc=yes |
| 2776 | else |
| 2777 | echo "$as_me: failed program was:" >&5 |
| 2778 | cat conftest.$ac_ext >&5 |
| 2779 | ac_cv_header_stdc=no |
| 2780 | fi |
| 2781 | rm -f conftest.err conftest.$ac_ext |
| 2782 | |
| 2783 | if test $ac_cv_header_stdc = yes; then |
| 2784 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2785 | cat >conftest.$ac_ext <<_ACEOF |
| 2786 | #line $LINENO "configure" |
| 2787 | #include "confdefs.h" |
| 2788 | #include <string.h> |
| 2789 | |
| 2790 | _ACEOF |
| 2791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2792 | egrep "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2793 | : |
| 2794 | else |
| 2795 | ac_cv_header_stdc=no |
| 2796 | fi |
| 2797 | rm -f conftest* |
| 2798 | |
| 2799 | fi |
| 2800 | |
| 2801 | if test $ac_cv_header_stdc = yes; then |
| 2802 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2803 | cat >conftest.$ac_ext <<_ACEOF |
| 2804 | #line $LINENO "configure" |
| 2805 | #include "confdefs.h" |
| 2806 | #include <stdlib.h> |
| 2807 | |
| 2808 | _ACEOF |
| 2809 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2810 | egrep "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2811 | : |
| 2812 | else |
| 2813 | ac_cv_header_stdc=no |
| 2814 | fi |
| 2815 | rm -f conftest* |
| 2816 | |
| 2817 | fi |
| 2818 | |
| 2819 | if test $ac_cv_header_stdc = yes; then |
| 2820 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2821 | if test "$cross_compiling" = yes; then |
| 2822 | : |
| 2823 | else |
| 2824 | cat >conftest.$ac_ext <<_ACEOF |
| 2825 | #line $LINENO "configure" |
| 2826 | #include "confdefs.h" |
| 2827 | #include <ctype.h> |
| 2828 | #if ((' ' & 0x0FF) == 0x020) |
| 2829 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2830 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2831 | #else |
| 2832 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2833 | || ('j' <= (c) && (c) <= 'r') \ |
| 2834 | || ('s' <= (c) && (c) <= 'z')) |
| 2835 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2836 | #endif |
| 2837 | |
| 2838 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2839 | int |
| 2840 | main () |
| 2841 | { |
| 2842 | int i; |
| 2843 | for (i = 0; i < 256; i++) |
| 2844 | if (XOR (islower (i), ISLOWER (i)) |
| 2845 | || toupper (i) != TOUPPER (i)) |
| 2846 | exit(2); |
| 2847 | exit (0); |
| 2848 | } |
| 2849 | _ACEOF |
| 2850 | rm -f conftest$ac_exeext |
| 2851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2852 | (eval $ac_link) 2>&5 |
| 2853 | ac_status=$? |
| 2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2857 | (eval $ac_try) 2>&5 |
| 2858 | ac_status=$? |
| 2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2860 | (exit $ac_status); }; }; then |
| 2861 | : |
| 2862 | else |
| 2863 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2864 | echo "$as_me: failed program was:" >&5 |
| 2865 | cat conftest.$ac_ext >&5 |
| 2866 | ( exit $ac_status ) |
| 2867 | ac_cv_header_stdc=no |
| 2868 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2869 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2870 | fi |
| 2871 | fi |
| 2872 | fi |
| 2873 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2874 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2875 | if test $ac_cv_header_stdc = yes; then |
| 2876 | |
| 2877 | cat >>confdefs.h <<\_ACEOF |
| 2878 | #define STDC_HEADERS 1 |
| 2879 | _ACEOF |
| 2880 | |
| 2881 | fi |
| 2882 | |
| 2883 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2884 | |
| 2885 | |
| 2886 | |
| 2887 | |
| 2888 | |
| 2889 | |
| 2890 | |
| 2891 | |
| 2892 | |
| 2893 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2894 | inttypes.h stdint.h unistd.h |
| 2895 | do |
| 2896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2897 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2899 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2901 | else |
| 2902 | cat >conftest.$ac_ext <<_ACEOF |
| 2903 | #line $LINENO "configure" |
| 2904 | #include "confdefs.h" |
| 2905 | $ac_includes_default |
| 2906 | |
| 2907 | #include <$ac_header> |
| 2908 | _ACEOF |
| 2909 | rm -f conftest.$ac_objext |
| 2910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2911 | (eval $ac_compile) 2>&5 |
| 2912 | ac_status=$? |
| 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2914 | (exit $ac_status); } && |
| 2915 | { ac_try='test -s conftest.$ac_objext' |
| 2916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2917 | (eval $ac_try) 2>&5 |
| 2918 | ac_status=$? |
| 2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2920 | (exit $ac_status); }; }; then |
| 2921 | eval "$as_ac_Header=yes" |
| 2922 | else |
| 2923 | echo "$as_me: failed program was:" >&5 |
| 2924 | cat conftest.$ac_ext >&5 |
| 2925 | eval "$as_ac_Header=no" |
| 2926 | fi |
| 2927 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2928 | fi |
| 2929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2931 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2932 | cat >>confdefs.h <<_ACEOF |
| 2933 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2934 | _ACEOF |
| 2935 | |
| 2936 | fi |
| 2937 | |
| 2938 | done |
| 2939 | |
| 2940 | |
| 2941 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2942 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2943 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2944 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2946 | fi |
| 2947 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2948 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2949 | else |
| 2950 | # Is the header compilable? |
| 2951 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2952 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2953 | cat >conftest.$ac_ext <<_ACEOF |
| 2954 | #line $LINENO "configure" |
| 2955 | #include "confdefs.h" |
| 2956 | $ac_includes_default |
| 2957 | #include <minix/config.h> |
| 2958 | _ACEOF |
| 2959 | rm -f conftest.$ac_objext |
| 2960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2961 | (eval $ac_compile) 2>&5 |
| 2962 | ac_status=$? |
| 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2964 | (exit $ac_status); } && |
| 2965 | { ac_try='test -s conftest.$ac_objext' |
| 2966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2967 | (eval $ac_try) 2>&5 |
| 2968 | ac_status=$? |
| 2969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2970 | (exit $ac_status); }; }; then |
| 2971 | ac_header_compiler=yes |
| 2972 | else |
| 2973 | echo "$as_me: failed program was:" >&5 |
| 2974 | cat conftest.$ac_ext >&5 |
| 2975 | ac_header_compiler=no |
| 2976 | fi |
| 2977 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2978 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2979 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2980 | |
| 2981 | # Is the header present? |
| 2982 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2983 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2984 | cat >conftest.$ac_ext <<_ACEOF |
| 2985 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2986 | #include "confdefs.h" |
| 2987 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2988 | _ACEOF |
| 2989 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2990 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2991 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2992 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2993 | rm -f conftest.er1 |
| 2994 | cat conftest.err >&5 |
| 2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2996 | (exit $ac_status); } >/dev/null; then |
| 2997 | if test -s conftest.err; then |
| 2998 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2999 | else |
| 3000 | ac_cpp_err= |
| 3001 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3003 | ac_cpp_err=yes |
| 3004 | fi |
| 3005 | if test -z "$ac_cpp_err"; then |
| 3006 | ac_header_preproc=yes |
| 3007 | else |
| 3008 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3009 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3010 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3011 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3012 | rm -f conftest.err conftest.$ac_ext |
| 3013 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3014 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3015 | |
| 3016 | # So? What about this header? |
| 3017 | case $ac_header_compiler:$ac_header_preproc in |
| 3018 | yes:no ) |
| 3019 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3020 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3021 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3022 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 3023 | no:yes ) |
| 3024 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3025 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3026 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3027 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3028 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3029 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 3030 | esac |
| 3031 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3032 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3033 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3035 | else |
| 3036 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3037 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3038 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3039 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3040 | |
| 3041 | fi |
| 3042 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3043 | MINIX=yes |
| 3044 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3045 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3046 | fi |
| 3047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3048 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3049 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3050 | |
| 3051 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3052 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3053 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3055 | |
| 3056 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3057 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3058 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3060 | |
| 3061 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3062 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3063 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3064 | |
| 3065 | fi |
| 3066 | |
| 3067 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3068 | # Check for unsupported systems |
| 3069 | case $ac_sys_system/$ac_sys_release in |
| 3070 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3071 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3072 | echo See README for details. |
| 3073 | exit 1;; |
| 3074 | esac |
| 3075 | |
| 3076 | if test "$MINIX" = yes; then |
| 3077 | echo This system \(MINIX\) is no longer supported. |
| 3078 | echo Read README for details. |
| 3079 | exit 1 |
| 3080 | fi |
| 3081 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3083 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3084 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3085 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3086 | # Check whether --with-suffix or --without-suffix was given. |
| 3087 | if test "${with_suffix+set}" = set; then |
| 3088 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3089 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3090 | case $withval in |
| 3091 | no) EXEEXT=;; |
| 3092 | yes) EXEEXT=.exe;; |
| 3093 | *) EXEEXT=$withval;; |
| 3094 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3095 | fi; |
| 3096 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3097 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3098 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3099 | # Test whether we're running on a non-case-sensitive system, in which |
| 3100 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3102 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3103 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3104 | if test ! -d CaseSensitiveTestDir; then |
| 3105 | mkdir CaseSensitiveTestDir |
| 3106 | fi |
| 3107 | |
| 3108 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3109 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3110 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3111 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3112 | BUILDEXEEXT=.exe |
| 3113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3114 | echo "$as_me:$LINENO: result: no" >&5 |
| 3115 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3116 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3117 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3118 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3119 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3120 | case $MACHDEP in |
| 3121 | bsdos*) |
| 3122 | case $CC in |
| 3123 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3124 | esac;; |
| 3125 | esac |
| 3126 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3127 | case $ac_sys_system in |
| 3128 | hp*|HP*) |
| 3129 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3130 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3131 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3132 | Monterey*) |
| 3133 | case $CC in |
| 3134 | cc) CC="$CC -Wl,-Bexport";; |
| 3135 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3136 | SunOS*) |
| 3137 | # 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] | 3138 | |
| 3139 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3140 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3141 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3142 | |
| 3143 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3144 | esac |
| 3145 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3146 | |
| 3147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3148 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3149 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3150 | if test -z "$LIBRARY" |
| 3151 | then |
| 3152 | LIBRARY='libpython$(VERSION).a' |
| 3153 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3154 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3155 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3156 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3157 | # 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] | 3158 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3159 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3160 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3161 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3162 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3163 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3164 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3165 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3166 | # RUNSHARED is used to run shared python without installed libraries |
| 3167 | # |
| 3168 | # INSTSONAME is the name of the shared library that will be use to install |
| 3169 | # on the system - some systems like version suffix, others don't |
| 3170 | |
| 3171 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3172 | |
| 3173 | |
| 3174 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3175 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3176 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3177 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3178 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3179 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3180 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3181 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3182 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3183 | # 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] | 3184 | # If CXX is set, and if it is needed to link a main function that was |
| 3185 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3186 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3187 | # 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] | 3188 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3190 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3191 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3192 | if test -z "$LINKCC" |
| 3193 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3194 | if test -z "$CXX"; then |
| 3195 | LINKCC="\$(PURIFY) \$(CC)" |
| 3196 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3197 | 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] | 3198 | $CXX -c conftest.$ac_ext 2>&5 |
| 3199 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3200 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3201 | then |
| 3202 | LINKCC="\$(PURIFY) \$(CC)" |
| 3203 | else |
| 3204 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3205 | fi |
| 3206 | rm -fr conftest* |
| 3207 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3208 | case $ac_sys_system in |
| 3209 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3210 | exp_extra="\"\"" |
| 3211 | if test $ac_sys_release -ge 5 -o \ |
| 3212 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3213 | exp_extra="." |
| 3214 | fi |
| 3215 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3216 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3217 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3218 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3219 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3220 | esac |
| 3221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3222 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3223 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3225 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3226 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3227 | # Check whether --enable-shared or --disable-shared was given. |
| 3228 | if test "${enable_shared+set}" = set; then |
| 3229 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3231 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3232 | |
| 3233 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3234 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3235 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3236 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3237 | enable_shared="yes";; |
| 3238 | *) |
| 3239 | enable_shared="no";; |
| 3240 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3242 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3243 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3244 | |
| 3245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3246 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3247 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3248 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3249 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3250 | # library that we build, but we do not want to link against it (we |
| 3251 | # will find it with a -framework option). For this reason there is an |
| 3252 | # extra variable BLDLIBRARY against which Python and the extension |
| 3253 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3254 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3255 | if test "$enable_framework" |
| 3256 | then |
| 3257 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3258 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3259 | BLDLIBRARY='' |
| 3260 | else |
| 3261 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3262 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3263 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3264 | # Other platforms follow |
| 3265 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3266 | |
| 3267 | cat >>confdefs.h <<\_ACEOF |
| 3268 | #define Py_ENABLE_SHARED 1 |
| 3269 | _ACEOF |
| 3270 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3271 | case $ac_sys_system in |
| 3272 | BeOS*) |
| 3273 | LDLIBRARY='libpython$(VERSION).so' |
| 3274 | ;; |
| 3275 | CYGWIN*) |
| 3276 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3277 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3278 | ;; |
| 3279 | SunOS*) |
| 3280 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3281 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3282 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3283 | ;; |
Martin v. Löwis | 96ce805 | 2003-05-31 07:58:45 +0000 | [diff] [blame] | 3284 | Linux*|GNU*|NetBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3285 | LDLIBRARY='libpython$(VERSION).so' |
| 3286 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3287 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3288 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3289 | ;; |
| 3290 | hp*|HP*) |
| 3291 | LDLIBRARY='libpython$(VERSION).sl' |
| 3292 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3293 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3294 | ;; |
| 3295 | OSF*) |
| 3296 | LDLIBRARY='libpython$(VERSION).so' |
| 3297 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3298 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3299 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3300 | atheos*) |
| 3301 | LDLIBRARY='libpython$(VERSION).so' |
| 3302 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3303 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3304 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3305 | esac |
| 3306 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3307 | case $MACHDEP in |
| 3308 | dguxR4) |
| 3309 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3310 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3311 | ;; |
| 3312 | esac |
| 3313 | fi |
| 3314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3315 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3316 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3318 | if test -n "$ac_tool_prefix"; then |
| 3319 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3320 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3323 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3325 | else |
| 3326 | if test -n "$RANLIB"; then |
| 3327 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3330 | for as_dir in $PATH |
| 3331 | do |
| 3332 | IFS=$as_save_IFS |
| 3333 | test -z "$as_dir" && as_dir=. |
| 3334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3336 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3338 | break 2 |
| 3339 | fi |
| 3340 | done |
| 3341 | done |
| 3342 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3343 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3344 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3345 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3346 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3348 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3350 | echo "$as_me:$LINENO: result: no" >&5 |
| 3351 | echo "${ECHO_T}no" >&6 |
| 3352 | fi |
| 3353 | |
| 3354 | fi |
| 3355 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3356 | ac_ct_RANLIB=$RANLIB |
| 3357 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3358 | set dummy ranlib; ac_word=$2 |
| 3359 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3361 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3363 | else |
| 3364 | if test -n "$ac_ct_RANLIB"; then |
| 3365 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3366 | else |
| 3367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3368 | for as_dir in $PATH |
| 3369 | do |
| 3370 | IFS=$as_save_IFS |
| 3371 | test -z "$as_dir" && as_dir=. |
| 3372 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3374 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3376 | break 2 |
| 3377 | fi |
| 3378 | done |
| 3379 | done |
| 3380 | |
| 3381 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3382 | fi |
| 3383 | fi |
| 3384 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3385 | if test -n "$ac_ct_RANLIB"; then |
| 3386 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3387 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3388 | else |
| 3389 | echo "$as_me:$LINENO: result: no" >&5 |
| 3390 | echo "${ECHO_T}no" >&6 |
| 3391 | fi |
| 3392 | |
| 3393 | RANLIB=$ac_ct_RANLIB |
| 3394 | else |
| 3395 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3396 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3397 | |
| 3398 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3399 | for ac_prog in ar aal |
| 3400 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3401 | # 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] | 3402 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3403 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3404 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3405 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3407 | else |
| 3408 | if test -n "$AR"; then |
| 3409 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 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 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3417 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3418 | ac_cv_prog_AR="$ac_prog" |
| 3419 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3420 | break 2 |
| 3421 | fi |
| 3422 | done |
| 3423 | done |
| 3424 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3425 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3426 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3427 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3428 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3429 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3430 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | echo "$as_me:$LINENO: result: no" >&5 |
| 3433 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3434 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3436 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3437 | done |
| 3438 | test -n "$AR" || AR="ar" |
| 3439 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3440 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3441 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3442 | bsdos*|hp*|HP*) |
| 3443 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3444 | if test -z "$INSTALL" |
| 3445 | then |
| 3446 | INSTALL="${srcdir}/install-sh -c" |
| 3447 | fi |
| 3448 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3449 | ac_aux_dir= |
| 3450 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3451 | if test -f $ac_dir/install-sh; then |
| 3452 | ac_aux_dir=$ac_dir |
| 3453 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3454 | break |
| 3455 | elif test -f $ac_dir/install.sh; then |
| 3456 | ac_aux_dir=$ac_dir |
| 3457 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3458 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3459 | elif test -f $ac_dir/shtool; then |
| 3460 | ac_aux_dir=$ac_dir |
| 3461 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3462 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3463 | fi |
| 3464 | done |
| 3465 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3467 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3468 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3470 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3471 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3472 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3473 | |
| 3474 | # Find a good install program. We prefer a C program (faster), |
| 3475 | # so one script is as good as another. But avoid the broken or |
| 3476 | # incompatible versions: |
| 3477 | # SysV /etc/install, /usr/sbin/install |
| 3478 | # SunOS /usr/etc/install |
| 3479 | # IRIX /sbin/install |
| 3480 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3481 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3482 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3483 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3484 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3485 | # ./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] | 3486 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3487 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3488 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3489 | if test "${ac_cv_path_install+set}" = set; then |
| 3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3493 | for as_dir in $PATH |
| 3494 | do |
| 3495 | IFS=$as_save_IFS |
| 3496 | test -z "$as_dir" && as_dir=. |
| 3497 | # Account for people who put trailing slashes in PATH elements. |
| 3498 | case $as_dir/ in |
| 3499 | ./ | .// | /cC/* | \ |
| 3500 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3501 | /usr/ucb/* ) ;; |
| 3502 | *) |
| 3503 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3504 | # Don't use installbsd from OSF since it installs stuff as root |
| 3505 | # by default. |
| 3506 | for ac_prog in ginstall scoinst install; do |
| 3507 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3508 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3509 | if test $ac_prog = install && |
| 3510 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3511 | # AIX install. It has an incompatible calling convention. |
| 3512 | : |
| 3513 | elif test $ac_prog = install && |
| 3514 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3515 | # program-specific install script used by HP pwplus--don't use. |
| 3516 | : |
| 3517 | else |
| 3518 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3519 | break 3 |
| 3520 | fi |
| 3521 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3522 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3523 | done |
| 3524 | ;; |
| 3525 | esac |
| 3526 | done |
| 3527 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3528 | |
| 3529 | fi |
| 3530 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3531 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3532 | else |
| 3533 | # As a last resort, use the slow shell script. We don't cache a |
| 3534 | # path for INSTALL within a source directory, because that will |
| 3535 | # break other packages using the cache if that directory is |
| 3536 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3538 | fi |
| 3539 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3541 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3542 | |
| 3543 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3544 | # It thinks the first close brace ends the variable substitution. |
| 3545 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3547 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3548 | |
| 3549 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3550 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3551 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3552 | # Not every filesystem supports hard links |
| 3553 | |
| 3554 | if test -z "$LN" ; then |
| 3555 | case $ac_sys_system in |
| 3556 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3557 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3558 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3559 | *) LN=ln;; |
| 3560 | esac |
| 3561 | fi |
| 3562 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3563 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3564 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3565 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3566 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3567 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3568 | if test "${with_pydebug+set}" = set; then |
| 3569 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3570 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3571 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3572 | then |
| 3573 | |
| 3574 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3575 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3576 | _ACEOF |
| 3577 | |
| 3578 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3579 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3580 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3581 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3582 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3583 | fi |
| 3584 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3585 | echo "$as_me:$LINENO: result: no" >&5 |
| 3586 | echo "${ECHO_T}no" >&6 |
| 3587 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3588 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3589 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3590 | # merged with this chunk of code? |
| 3591 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3592 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3593 | # ------------------------ |
| 3594 | # (The following bit of code is complicated enough - please keep things |
| 3595 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3596 | |
| 3597 | # There are two parallel sets of case statements below, one that checks to |
| 3598 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3599 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3600 | # user set OPT. |
| 3601 | |
| 3602 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3603 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3604 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3605 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3606 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3607 | case $GCC in |
| 3608 | yes) |
| 3609 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3610 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3611 | if test "$Py_DEBUG" = 'true' ; then |
| 3612 | # Optimization messes up debuggers, so turn it off for |
| 3613 | # debug builds. |
| 3614 | OPT="-g -Wall -Wstrict-prototypes" |
| 3615 | else |
| 3616 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3617 | fi |
| 3618 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3619 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3620 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3621 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3622 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3623 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3624 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3625 | ;; |
| 3626 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3627 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3628 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3629 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3630 | OPT="-O" |
| 3631 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3632 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3633 | |
| 3634 | # The current (beta) Monterey compiler dies with optimizations |
| 3635 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3636 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3637 | Monterey*) |
| 3638 | OPT="" |
| 3639 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3640 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3641 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3642 | fi |
| 3643 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3644 | |
| 3645 | # tweak BASECFLAGS based on compiler and platform |
| 3646 | case $GCC in |
| 3647 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3648 | # Python violates C99 rules, by casting between incompatible |
| 3649 | # pointer types. GCC may generate bad code as a result of that, |
| 3650 | # so use -fno-strict-aliasing if supported. |
| 3651 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3652 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3653 | ac_save_cc="$CC" |
| 3654 | CC="$CC -fno-strict-aliasing" |
| 3655 | if test "$cross_compiling" = yes; then |
| 3656 | ac_cv_no_strict_aliasing_ok=no |
| 3657 | else |
| 3658 | cat >conftest.$ac_ext <<_ACEOF |
| 3659 | #line $LINENO "configure" |
| 3660 | #include "confdefs.h" |
| 3661 | int main() { return 0; } |
| 3662 | _ACEOF |
| 3663 | rm -f conftest$ac_exeext |
| 3664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3665 | (eval $ac_link) 2>&5 |
| 3666 | ac_status=$? |
| 3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3668 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3670 | (eval $ac_try) 2>&5 |
| 3671 | ac_status=$? |
| 3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3673 | (exit $ac_status); }; }; then |
| 3674 | ac_cv_no_strict_aliasing_ok=yes |
| 3675 | else |
| 3676 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3677 | echo "$as_me: failed program was:" >&5 |
| 3678 | cat conftest.$ac_ext >&5 |
| 3679 | ( exit $ac_status ) |
| 3680 | ac_cv_no_strict_aliasing_ok=no |
| 3681 | fi |
| 3682 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3683 | fi |
| 3684 | CC="$ac_save_cc" |
| 3685 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3686 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3687 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3688 | then |
| 3689 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3690 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3691 | case $ac_sys_system in |
| 3692 | SCO_SV*) |
| 3693 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3694 | ;; |
| 3695 | # is there any other compiler on Darwin besides gcc? |
| 3696 | Darwin*) |
| 3697 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp" |
| 3698 | ;; |
| 3699 | esac |
| 3700 | ;; |
| 3701 | |
| 3702 | *) |
| 3703 | case $ac_sys_system in |
| 3704 | OpenUNIX*|UnixWare*) |
| 3705 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3706 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3707 | OSF*) |
| 3708 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3709 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3710 | SCO_SV*) |
| 3711 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3712 | ;; |
| 3713 | esac |
| 3714 | ;; |
| 3715 | esac |
| 3716 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3717 | if test "$Py_DEBUG" = 'true'; then |
| 3718 | : |
| 3719 | else |
| 3720 | OPT="-DNDEBUG $OPT" |
| 3721 | fi |
| 3722 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3723 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3724 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3725 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3726 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3728 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3729 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3730 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3732 | else |
| 3733 | ac_save_cc="$CC" |
| 3734 | CC="$CC -OPT:Olimit=0" |
| 3735 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3736 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3738 | cat >conftest.$ac_ext <<_ACEOF |
| 3739 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3740 | #include "confdefs.h" |
| 3741 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3742 | _ACEOF |
| 3743 | rm -f conftest$ac_exeext |
| 3744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3745 | (eval $ac_link) 2>&5 |
| 3746 | ac_status=$? |
| 3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3748 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3750 | (eval $ac_try) 2>&5 |
| 3751 | ac_status=$? |
| 3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3753 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3754 | ac_cv_opt_olimit_ok=yes |
| 3755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3756 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3757 | echo "$as_me: failed program was:" >&5 |
| 3758 | cat conftest.$ac_ext >&5 |
| 3759 | ( exit $ac_status ) |
| 3760 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3761 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3762 | 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] | 3763 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3764 | CC="$ac_save_cc" |
| 3765 | fi |
| 3766 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3768 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3769 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3770 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3771 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3772 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3773 | # environment? |
| 3774 | Darwin*) |
| 3775 | ;; |
| 3776 | *) |
| 3777 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3778 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3779 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3780 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3782 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3783 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3785 | else |
| 3786 | ac_save_cc="$CC" |
| 3787 | CC="$CC -Olimit 1500" |
| 3788 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3789 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3791 | cat >conftest.$ac_ext <<_ACEOF |
| 3792 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3793 | #include "confdefs.h" |
| 3794 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3795 | _ACEOF |
| 3796 | rm -f conftest$ac_exeext |
| 3797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3798 | (eval $ac_link) 2>&5 |
| 3799 | ac_status=$? |
| 3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3803 | (eval $ac_try) 2>&5 |
| 3804 | ac_status=$? |
| 3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3806 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3807 | ac_cv_olimit_ok=yes |
| 3808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3810 | echo "$as_me: failed program was:" >&5 |
| 3811 | cat conftest.$ac_ext >&5 |
| 3812 | ( exit $ac_status ) |
| 3813 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3814 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3815 | 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] | 3816 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3817 | CC="$ac_save_cc" |
| 3818 | fi |
| 3819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3820 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3821 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3822 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3823 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3824 | fi |
| 3825 | fi |
| 3826 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3827 | # On some compilers, pthreads are available without further options |
| 3828 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3829 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3830 | # So we have to see first whether pthreads are available without |
| 3831 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3832 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3833 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3834 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3836 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3837 | if test "$cross_compiling" = yes; then |
| 3838 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3840 | cat >conftest.$ac_ext <<_ACEOF |
| 3841 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3842 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3843 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3844 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3845 | |
| 3846 | void* routine(void* p){return NULL;} |
| 3847 | |
| 3848 | int main(){ |
| 3849 | pthread_t p; |
| 3850 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3851 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3852 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3853 | return 0; |
| 3854 | } |
| 3855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | _ACEOF |
| 3857 | rm -f conftest$ac_exeext |
| 3858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3859 | (eval $ac_link) 2>&5 |
| 3860 | ac_status=$? |
| 3861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3864 | (eval $ac_try) 2>&5 |
| 3865 | ac_status=$? |
| 3866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3867 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3868 | ac_cv_pthread_is_default=yes |
| 3869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3870 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3871 | echo "$as_me: failed program was:" >&5 |
| 3872 | cat conftest.$ac_ext >&5 |
| 3873 | ( exit $ac_status ) |
| 3874 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3875 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3876 | 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] | 3877 | fi |
| 3878 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3879 | fi |
| 3880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3881 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3882 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3883 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3884 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3885 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3886 | then |
| 3887 | ac_cv_kpthread=no |
| 3888 | else |
| 3889 | # -Kpthread, if available, provides the right #defines |
| 3890 | # and linker options to make pthread_create available |
| 3891 | # Some compilers won't report that they do not support -Kpthread, |
| 3892 | # so we need to run a program to see whether it really made the |
| 3893 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3894 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3895 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3896 | if test "${ac_cv_kpthread+set}" = set; then |
| 3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3898 | else |
| 3899 | ac_save_cc="$CC" |
| 3900 | CC="$CC -Kpthread" |
| 3901 | if test "$cross_compiling" = yes; then |
| 3902 | ac_cv_kpthread=no |
| 3903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | cat >conftest.$ac_ext <<_ACEOF |
| 3905 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3906 | #include "confdefs.h" |
| 3907 | |
| 3908 | #include <pthread.h> |
| 3909 | |
| 3910 | void* routine(void* p){return NULL;} |
| 3911 | |
| 3912 | int main(){ |
| 3913 | pthread_t p; |
| 3914 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3915 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3916 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3917 | return 0; |
| 3918 | } |
| 3919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3920 | _ACEOF |
| 3921 | rm -f conftest$ac_exeext |
| 3922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3923 | (eval $ac_link) 2>&5 |
| 3924 | ac_status=$? |
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3928 | (eval $ac_try) 2>&5 |
| 3929 | ac_status=$? |
| 3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3931 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3932 | ac_cv_kpthread=yes |
| 3933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3934 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3935 | echo "$as_me: failed program was:" >&5 |
| 3936 | cat conftest.$ac_ext >&5 |
| 3937 | ( exit $ac_status ) |
| 3938 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3939 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3940 | 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] | 3941 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3942 | CC="$ac_save_cc" |
| 3943 | fi |
| 3944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3945 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3946 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3947 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3948 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3949 | if test $ac_cv_kpthread = no |
| 3950 | then |
| 3951 | # -Kthread, if available, provides the right #defines |
| 3952 | # and linker options to make pthread_create available |
| 3953 | # Some compilers won't report that they do not support -Kthread, |
| 3954 | # so we need to run a program to see whether it really made the |
| 3955 | # function available. |
| 3956 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 3957 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 3958 | if test "${ac_cv_kthread+set}" = set; then |
| 3959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3960 | else |
| 3961 | ac_save_cc="$CC" |
| 3962 | CC="$CC -Kthread" |
| 3963 | if test "$cross_compiling" = yes; then |
| 3964 | ac_cv_kthread=no |
| 3965 | else |
| 3966 | cat >conftest.$ac_ext <<_ACEOF |
| 3967 | #line $LINENO "configure" |
| 3968 | #include "confdefs.h" |
| 3969 | |
| 3970 | #include <pthread.h> |
| 3971 | |
| 3972 | void* routine(void* p){return NULL;} |
| 3973 | |
| 3974 | int main(){ |
| 3975 | pthread_t p; |
| 3976 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3977 | return 1; |
| 3978 | (void)pthread_detach(p); |
| 3979 | return 0; |
| 3980 | } |
| 3981 | |
| 3982 | _ACEOF |
| 3983 | rm -f conftest$ac_exeext |
| 3984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3985 | (eval $ac_link) 2>&5 |
| 3986 | ac_status=$? |
| 3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3990 | (eval $ac_try) 2>&5 |
| 3991 | ac_status=$? |
| 3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3993 | (exit $ac_status); }; }; then |
| 3994 | ac_cv_kthread=yes |
| 3995 | else |
| 3996 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3997 | echo "$as_me: failed program was:" >&5 |
| 3998 | cat conftest.$ac_ext >&5 |
| 3999 | ( exit $ac_status ) |
| 4000 | ac_cv_kthread=no |
| 4001 | fi |
| 4002 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4003 | fi |
| 4004 | CC="$ac_save_cc" |
| 4005 | fi |
| 4006 | |
| 4007 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4008 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4009 | fi |
| 4010 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4011 | if test $ac_cv_kthread = no |
| 4012 | then |
| 4013 | # -pthread, if available, provides the right #defines |
| 4014 | # and linker options to make pthread_create available |
| 4015 | # Some compilers won't report that they do not support -pthread, |
| 4016 | # so we need to run a program to see whether it really made the |
| 4017 | # function available. |
| 4018 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4019 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4020 | if test "${ac_cv_thread+set}" = set; then |
| 4021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4022 | else |
| 4023 | ac_save_cc="$CC" |
| 4024 | CC="$CC -pthread" |
| 4025 | if test "$cross_compiling" = yes; then |
| 4026 | ac_cv_pthread=no |
| 4027 | else |
| 4028 | cat >conftest.$ac_ext <<_ACEOF |
| 4029 | #line $LINENO "configure" |
| 4030 | #include "confdefs.h" |
| 4031 | |
| 4032 | #include <pthread.h> |
| 4033 | |
| 4034 | void* routine(void* p){return NULL;} |
| 4035 | |
| 4036 | int main(){ |
| 4037 | pthread_t p; |
| 4038 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4039 | return 1; |
| 4040 | (void)pthread_detach(p); |
| 4041 | return 0; |
| 4042 | } |
| 4043 | |
| 4044 | _ACEOF |
| 4045 | rm -f conftest$ac_exeext |
| 4046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4047 | (eval $ac_link) 2>&5 |
| 4048 | ac_status=$? |
| 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4050 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4052 | (eval $ac_try) 2>&5 |
| 4053 | ac_status=$? |
| 4054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4055 | (exit $ac_status); }; }; then |
| 4056 | ac_cv_pthread=yes |
| 4057 | else |
| 4058 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4059 | echo "$as_me: failed program was:" >&5 |
| 4060 | cat conftest.$ac_ext >&5 |
| 4061 | ( exit $ac_status ) |
| 4062 | ac_cv_pthread=no |
| 4063 | fi |
| 4064 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4065 | fi |
| 4066 | CC="$ac_save_cc" |
| 4067 | fi |
| 4068 | |
| 4069 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4070 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4071 | fi |
| 4072 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4073 | # If we have set a CC compiler flag for thread support then |
| 4074 | # check if it works for CXX, too. |
| 4075 | ac_cv_cxx_thread=no |
| 4076 | if test ! -z "$CXX" |
| 4077 | then |
| 4078 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4079 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4080 | ac_save_cxx="$CXX" |
| 4081 | |
| 4082 | if test "$ac_cv_kpthread" = "yes" |
| 4083 | then |
| 4084 | CXX="$CXX -Kpthread" |
| 4085 | ac_cv_cxx_thread=yes |
| 4086 | elif test "$ac_cv_kthread" = "yes" |
| 4087 | then |
| 4088 | CXX="$CXX -Kthread" |
| 4089 | ac_cv_cxx_thread=yes |
| 4090 | elif test "$ac_cv_pthread" = "yes" |
| 4091 | then |
| 4092 | CXX="$CXX -pthread" |
| 4093 | ac_cv_cxx_thread=yes |
| 4094 | fi |
| 4095 | |
| 4096 | if test $ac_cv_cxx_thread = yes |
| 4097 | then |
| 4098 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4099 | $CXX -c conftest.$ac_ext 2>&5 |
| 4100 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4101 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4102 | then |
| 4103 | ac_cv_cxx_thread=yes |
| 4104 | else |
| 4105 | ac_cv_cxx_thread=no |
| 4106 | CXX="$ac_save_cxx" |
| 4107 | fi |
| 4108 | rm -fr conftest* |
| 4109 | else |
| 4110 | CXX="$ac_save_cxx" |
| 4111 | fi |
| 4112 | fi |
| 4113 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4114 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
| 4115 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4116 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4117 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4118 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4119 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4120 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 | cat >conftest.$ac_ext <<_ACEOF |
| 4124 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4125 | #include "confdefs.h" |
| 4126 | #include <stdlib.h> |
| 4127 | #include <stdarg.h> |
| 4128 | #include <string.h> |
| 4129 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4130 | |
| 4131 | _ACEOF |
| 4132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4134 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4135 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4136 | rm -f conftest.er1 |
| 4137 | cat conftest.err >&5 |
| 4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4139 | (exit $ac_status); } >/dev/null; then |
| 4140 | if test -s conftest.err; then |
| 4141 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4142 | else |
| 4143 | ac_cpp_err= |
| 4144 | fi |
| 4145 | else |
| 4146 | ac_cpp_err=yes |
| 4147 | fi |
| 4148 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4149 | ac_cv_header_stdc=yes |
| 4150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4152 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4153 | ac_cv_header_stdc=no |
| 4154 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4155 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4156 | |
| 4157 | if test $ac_cv_header_stdc = yes; then |
| 4158 | # 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] | 4159 | cat >conftest.$ac_ext <<_ACEOF |
| 4160 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4161 | #include "confdefs.h" |
| 4162 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4163 | |
| 4164 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4165 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4166 | egrep "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4167 | : |
| 4168 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4169 | ac_cv_header_stdc=no |
| 4170 | fi |
| 4171 | rm -f conftest* |
| 4172 | |
| 4173 | fi |
| 4174 | |
| 4175 | if test $ac_cv_header_stdc = yes; then |
| 4176 | # 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] | 4177 | cat >conftest.$ac_ext <<_ACEOF |
| 4178 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4179 | #include "confdefs.h" |
| 4180 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4181 | |
| 4182 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4183 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4184 | egrep "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4185 | : |
| 4186 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4187 | ac_cv_header_stdc=no |
| 4188 | fi |
| 4189 | rm -f conftest* |
| 4190 | |
| 4191 | fi |
| 4192 | |
| 4193 | if test $ac_cv_header_stdc = yes; then |
| 4194 | # /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] | 4195 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4196 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | cat >conftest.$ac_ext <<_ACEOF |
| 4199 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4200 | #include "confdefs.h" |
| 4201 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4202 | #if ((' ' & 0x0FF) == 0x020) |
| 4203 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4204 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4205 | #else |
| 4206 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 4207 | || ('j' <= (c) && (c) <= 'r') \ |
| 4208 | || ('s' <= (c) && (c) <= 'z')) |
| 4209 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4210 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4212 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4213 | int |
| 4214 | main () |
| 4215 | { |
| 4216 | int i; |
| 4217 | for (i = 0; i < 256; i++) |
| 4218 | if (XOR (islower (i), ISLOWER (i)) |
| 4219 | || toupper (i) != TOUPPER (i)) |
| 4220 | exit(2); |
| 4221 | exit (0); |
| 4222 | } |
| 4223 | _ACEOF |
| 4224 | rm -f conftest$ac_exeext |
| 4225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4226 | (eval $ac_link) 2>&5 |
| 4227 | ac_status=$? |
| 4228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4229 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4231 | (eval $ac_try) 2>&5 |
| 4232 | ac_status=$? |
| 4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4234 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4235 | : |
| 4236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4237 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4238 | echo "$as_me: failed program was:" >&5 |
| 4239 | cat conftest.$ac_ext >&5 |
| 4240 | ( exit $ac_status ) |
| 4241 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4242 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4243 | 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] | 4244 | fi |
| 4245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4246 | fi |
| 4247 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4248 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4249 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4250 | |
| 4251 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4252 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4253 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4254 | |
| 4255 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4257 | |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | |
| 4263 | |
| 4264 | |
| 4265 | |
| 4266 | |
| 4267 | |
| 4268 | |
| 4269 | |
| 4270 | |
| 4271 | |
| 4272 | |
| 4273 | |
| 4274 | |
| 4275 | |
| 4276 | |
| 4277 | |
| 4278 | |
| 4279 | |
| 4280 | |
| 4281 | |
| 4282 | |
| 4283 | |
| 4284 | |
| 4285 | |
| 4286 | |
| 4287 | |
| 4288 | |
| 4289 | |
| 4290 | |
| 4291 | |
| 4292 | |
| 4293 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4294 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4295 | |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4297 | 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] | 4298 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4299 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4300 | unistd.h utime.h \ |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4301 | sys/audioio.h sys/bsdtty.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] | 4302 | 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] | 4303 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4304 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4305 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4308 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4312 | fi |
| 4313 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4314 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4316 | # Is the header compilable? |
| 4317 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4318 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4319 | cat >conftest.$ac_ext <<_ACEOF |
| 4320 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4321 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4322 | $ac_includes_default |
| 4323 | #include <$ac_header> |
| 4324 | _ACEOF |
| 4325 | rm -f conftest.$ac_objext |
| 4326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4327 | (eval $ac_compile) 2>&5 |
| 4328 | ac_status=$? |
| 4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4330 | (exit $ac_status); } && |
| 4331 | { ac_try='test -s conftest.$ac_objext' |
| 4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4333 | (eval $ac_try) 2>&5 |
| 4334 | ac_status=$? |
| 4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4336 | (exit $ac_status); }; }; then |
| 4337 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4339 | echo "$as_me: failed program was:" >&5 |
| 4340 | cat conftest.$ac_ext >&5 |
| 4341 | ac_header_compiler=no |
| 4342 | fi |
| 4343 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4344 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4345 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4346 | |
| 4347 | # Is the header present? |
| 4348 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4349 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4350 | cat >conftest.$ac_ext <<_ACEOF |
| 4351 | #line $LINENO "configure" |
| 4352 | #include "confdefs.h" |
| 4353 | #include <$ac_header> |
| 4354 | _ACEOF |
| 4355 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4356 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4357 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4358 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4359 | rm -f conftest.er1 |
| 4360 | cat conftest.err >&5 |
| 4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4362 | (exit $ac_status); } >/dev/null; then |
| 4363 | if test -s conftest.err; then |
| 4364 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4365 | else |
| 4366 | ac_cpp_err= |
| 4367 | fi |
| 4368 | else |
| 4369 | ac_cpp_err=yes |
| 4370 | fi |
| 4371 | if test -z "$ac_cpp_err"; then |
| 4372 | ac_header_preproc=yes |
| 4373 | else |
| 4374 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4375 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4376 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4378 | rm -f conftest.err conftest.$ac_ext |
| 4379 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4380 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4381 | |
| 4382 | # So? What about this header? |
| 4383 | case $ac_header_compiler:$ac_header_preproc in |
| 4384 | yes:no ) |
| 4385 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4386 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4388 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4389 | no:yes ) |
| 4390 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4391 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4392 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4393 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4396 | esac |
| 4397 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4398 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4402 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4403 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4405 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4406 | |
| 4407 | fi |
| 4408 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4409 | cat >>confdefs.h <<_ACEOF |
| 4410 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4411 | _ACEOF |
| 4412 | |
| 4413 | fi |
| 4414 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4415 | done |
| 4416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4417 | |
| 4418 | |
| 4419 | |
| 4420 | |
| 4421 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4422 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4423 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4424 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4425 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4426 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4430 | cat >conftest.$ac_ext <<_ACEOF |
| 4431 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4432 | #include "confdefs.h" |
| 4433 | #include <sys/types.h> |
| 4434 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4435 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4436 | #ifdef F77_DUMMY_MAIN |
| 4437 | # ifdef __cplusplus |
| 4438 | extern "C" |
| 4439 | # endif |
| 4440 | int F77_DUMMY_MAIN() { return 1; } |
| 4441 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4442 | int |
| 4443 | main () |
| 4444 | { |
| 4445 | if ((DIR *) 0) |
| 4446 | return 0; |
| 4447 | ; |
| 4448 | return 0; |
| 4449 | } |
| 4450 | _ACEOF |
| 4451 | rm -f conftest.$ac_objext |
| 4452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4453 | (eval $ac_compile) 2>&5 |
| 4454 | ac_status=$? |
| 4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4456 | (exit $ac_status); } && |
| 4457 | { ac_try='test -s conftest.$ac_objext' |
| 4458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4459 | (eval $ac_try) 2>&5 |
| 4460 | ac_status=$? |
| 4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4462 | (exit $ac_status); }; }; then |
| 4463 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4465 | echo "$as_me: failed program was:" >&5 |
| 4466 | cat conftest.$ac_ext >&5 |
| 4467 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4468 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4469 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4470 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4472 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4473 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4474 | cat >>confdefs.h <<_ACEOF |
| 4475 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4476 | _ACEOF |
| 4477 | |
| 4478 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4480 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4481 | done |
| 4482 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4483 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4484 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4485 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4486 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4489 | ac_func_search_save_LIBS=$LIBS |
| 4490 | ac_cv_search_opendir=no |
| 4491 | cat >conftest.$ac_ext <<_ACEOF |
| 4492 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4493 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4494 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4495 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4496 | #ifdef __cplusplus |
| 4497 | extern "C" |
| 4498 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4499 | /* 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] | 4500 | builtin and then its argument prototype would still apply. */ |
| 4501 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4502 | #ifdef F77_DUMMY_MAIN |
| 4503 | # ifdef __cplusplus |
| 4504 | extern "C" |
| 4505 | # endif |
| 4506 | int F77_DUMMY_MAIN() { return 1; } |
| 4507 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4508 | int |
| 4509 | main () |
| 4510 | { |
| 4511 | opendir (); |
| 4512 | ; |
| 4513 | return 0; |
| 4514 | } |
| 4515 | _ACEOF |
| 4516 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4518 | (eval $ac_link) 2>&5 |
| 4519 | ac_status=$? |
| 4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4521 | (exit $ac_status); } && |
| 4522 | { ac_try='test -s conftest$ac_exeext' |
| 4523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4524 | (eval $ac_try) 2>&5 |
| 4525 | ac_status=$? |
| 4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4527 | (exit $ac_status); }; }; then |
| 4528 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4530 | echo "$as_me: failed program was:" >&5 |
| 4531 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4532 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4533 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4534 | if test "$ac_cv_search_opendir" = no; then |
| 4535 | for ac_lib in dir; do |
| 4536 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4537 | cat >conftest.$ac_ext <<_ACEOF |
| 4538 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4539 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4540 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4541 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4542 | #ifdef __cplusplus |
| 4543 | extern "C" |
| 4544 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4545 | /* 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] | 4546 | builtin and then its argument prototype would still apply. */ |
| 4547 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4548 | #ifdef F77_DUMMY_MAIN |
| 4549 | # ifdef __cplusplus |
| 4550 | extern "C" |
| 4551 | # endif |
| 4552 | int F77_DUMMY_MAIN() { return 1; } |
| 4553 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4554 | int |
| 4555 | main () |
| 4556 | { |
| 4557 | opendir (); |
| 4558 | ; |
| 4559 | return 0; |
| 4560 | } |
| 4561 | _ACEOF |
| 4562 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4564 | (eval $ac_link) 2>&5 |
| 4565 | ac_status=$? |
| 4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4567 | (exit $ac_status); } && |
| 4568 | { ac_try='test -s conftest$ac_exeext' |
| 4569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4570 | (eval $ac_try) 2>&5 |
| 4571 | ac_status=$? |
| 4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4573 | (exit $ac_status); }; }; then |
| 4574 | ac_cv_search_opendir="-l$ac_lib" |
| 4575 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4577 | echo "$as_me: failed program was:" >&5 |
| 4578 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4579 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4580 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4581 | done |
| 4582 | fi |
| 4583 | LIBS=$ac_func_search_save_LIBS |
| 4584 | fi |
| 4585 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4586 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4587 | if test "$ac_cv_search_opendir" != no; then |
| 4588 | 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] | 4589 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4590 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4591 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4593 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4594 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4595 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4597 | else |
| 4598 | ac_func_search_save_LIBS=$LIBS |
| 4599 | ac_cv_search_opendir=no |
| 4600 | cat >conftest.$ac_ext <<_ACEOF |
| 4601 | #line $LINENO "configure" |
| 4602 | #include "confdefs.h" |
| 4603 | |
| 4604 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4605 | #ifdef __cplusplus |
| 4606 | extern "C" |
| 4607 | #endif |
| 4608 | /* We use char because int might match the return type of a gcc2 |
| 4609 | builtin and then its argument prototype would still apply. */ |
| 4610 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4611 | #ifdef F77_DUMMY_MAIN |
| 4612 | # ifdef __cplusplus |
| 4613 | extern "C" |
| 4614 | # endif |
| 4615 | int F77_DUMMY_MAIN() { return 1; } |
| 4616 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4617 | int |
| 4618 | main () |
| 4619 | { |
| 4620 | opendir (); |
| 4621 | ; |
| 4622 | return 0; |
| 4623 | } |
| 4624 | _ACEOF |
| 4625 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4627 | (eval $ac_link) 2>&5 |
| 4628 | ac_status=$? |
| 4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4630 | (exit $ac_status); } && |
| 4631 | { ac_try='test -s conftest$ac_exeext' |
| 4632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4633 | (eval $ac_try) 2>&5 |
| 4634 | ac_status=$? |
| 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4636 | (exit $ac_status); }; }; then |
| 4637 | ac_cv_search_opendir="none required" |
| 4638 | else |
| 4639 | echo "$as_me: failed program was:" >&5 |
| 4640 | cat conftest.$ac_ext >&5 |
| 4641 | fi |
| 4642 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4643 | if test "$ac_cv_search_opendir" = no; then |
| 4644 | for ac_lib in x; do |
| 4645 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4646 | cat >conftest.$ac_ext <<_ACEOF |
| 4647 | #line $LINENO "configure" |
| 4648 | #include "confdefs.h" |
| 4649 | |
| 4650 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4651 | #ifdef __cplusplus |
| 4652 | extern "C" |
| 4653 | #endif |
| 4654 | /* We use char because int might match the return type of a gcc2 |
| 4655 | builtin and then its argument prototype would still apply. */ |
| 4656 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4657 | #ifdef F77_DUMMY_MAIN |
| 4658 | # ifdef __cplusplus |
| 4659 | extern "C" |
| 4660 | # endif |
| 4661 | int F77_DUMMY_MAIN() { return 1; } |
| 4662 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4663 | int |
| 4664 | main () |
| 4665 | { |
| 4666 | opendir (); |
| 4667 | ; |
| 4668 | return 0; |
| 4669 | } |
| 4670 | _ACEOF |
| 4671 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4673 | (eval $ac_link) 2>&5 |
| 4674 | ac_status=$? |
| 4675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4676 | (exit $ac_status); } && |
| 4677 | { ac_try='test -s conftest$ac_exeext' |
| 4678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4679 | (eval $ac_try) 2>&5 |
| 4680 | ac_status=$? |
| 4681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4682 | (exit $ac_status); }; }; then |
| 4683 | ac_cv_search_opendir="-l$ac_lib" |
| 4684 | break |
| 4685 | else |
| 4686 | echo "$as_me: failed program was:" >&5 |
| 4687 | cat conftest.$ac_ext >&5 |
| 4688 | fi |
| 4689 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4690 | done |
| 4691 | fi |
| 4692 | LIBS=$ac_func_search_save_LIBS |
| 4693 | fi |
| 4694 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4695 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4696 | if test "$ac_cv_search_opendir" != no; then |
| 4697 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4698 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4699 | fi |
| 4700 | |
| 4701 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4702 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4703 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4704 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4705 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4707 | else |
| 4708 | cat >conftest.$ac_ext <<_ACEOF |
| 4709 | #line $LINENO "configure" |
| 4710 | #include "confdefs.h" |
| 4711 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4712 | #ifdef F77_DUMMY_MAIN |
| 4713 | # ifdef __cplusplus |
| 4714 | extern "C" |
| 4715 | # endif |
| 4716 | int F77_DUMMY_MAIN() { return 1; } |
| 4717 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4718 | int |
| 4719 | main () |
| 4720 | { |
| 4721 | return makedev(0, 0); |
| 4722 | ; |
| 4723 | return 0; |
| 4724 | } |
| 4725 | _ACEOF |
| 4726 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4728 | (eval $ac_link) 2>&5 |
| 4729 | ac_status=$? |
| 4730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4731 | (exit $ac_status); } && |
| 4732 | { ac_try='test -s conftest$ac_exeext' |
| 4733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4734 | (eval $ac_try) 2>&5 |
| 4735 | ac_status=$? |
| 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4737 | (exit $ac_status); }; }; then |
| 4738 | ac_cv_header_sys_types_h_makedev=yes |
| 4739 | else |
| 4740 | echo "$as_me: failed program was:" >&5 |
| 4741 | cat conftest.$ac_ext >&5 |
| 4742 | ac_cv_header_sys_types_h_makedev=no |
| 4743 | fi |
| 4744 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4745 | |
| 4746 | fi |
| 4747 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4748 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4749 | |
| 4750 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4751 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4752 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4753 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4754 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4756 | fi |
| 4757 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4758 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4759 | else |
| 4760 | # Is the header compilable? |
| 4761 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4762 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4763 | cat >conftest.$ac_ext <<_ACEOF |
| 4764 | #line $LINENO "configure" |
| 4765 | #include "confdefs.h" |
| 4766 | $ac_includes_default |
| 4767 | #include <sys/mkdev.h> |
| 4768 | _ACEOF |
| 4769 | rm -f conftest.$ac_objext |
| 4770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4771 | (eval $ac_compile) 2>&5 |
| 4772 | ac_status=$? |
| 4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4774 | (exit $ac_status); } && |
| 4775 | { ac_try='test -s conftest.$ac_objext' |
| 4776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4777 | (eval $ac_try) 2>&5 |
| 4778 | ac_status=$? |
| 4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4780 | (exit $ac_status); }; }; then |
| 4781 | ac_header_compiler=yes |
| 4782 | else |
| 4783 | echo "$as_me: failed program was:" >&5 |
| 4784 | cat conftest.$ac_ext >&5 |
| 4785 | ac_header_compiler=no |
| 4786 | fi |
| 4787 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4788 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4789 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4790 | |
| 4791 | # Is the header present? |
| 4792 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4793 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4794 | cat >conftest.$ac_ext <<_ACEOF |
| 4795 | #line $LINENO "configure" |
| 4796 | #include "confdefs.h" |
| 4797 | #include <sys/mkdev.h> |
| 4798 | _ACEOF |
| 4799 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4801 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4802 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4803 | rm -f conftest.er1 |
| 4804 | cat conftest.err >&5 |
| 4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4806 | (exit $ac_status); } >/dev/null; then |
| 4807 | if test -s conftest.err; then |
| 4808 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4809 | else |
| 4810 | ac_cpp_err= |
| 4811 | fi |
| 4812 | else |
| 4813 | ac_cpp_err=yes |
| 4814 | fi |
| 4815 | if test -z "$ac_cpp_err"; then |
| 4816 | ac_header_preproc=yes |
| 4817 | else |
| 4818 | echo "$as_me: failed program was:" >&5 |
| 4819 | cat conftest.$ac_ext >&5 |
| 4820 | ac_header_preproc=no |
| 4821 | fi |
| 4822 | rm -f conftest.err conftest.$ac_ext |
| 4823 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4824 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4825 | |
| 4826 | # So? What about this header? |
| 4827 | case $ac_header_compiler:$ac_header_preproc in |
| 4828 | yes:no ) |
| 4829 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4830 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4831 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4832 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4833 | no:yes ) |
| 4834 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4835 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4836 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4837 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4838 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4839 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4840 | esac |
| 4841 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4842 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4843 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4845 | else |
| 4846 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4847 | fi |
| 4848 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4849 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4850 | |
| 4851 | fi |
| 4852 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4853 | |
| 4854 | cat >>confdefs.h <<\_ACEOF |
| 4855 | #define MAJOR_IN_MKDEV 1 |
| 4856 | _ACEOF |
| 4857 | |
| 4858 | fi |
| 4859 | |
| 4860 | |
| 4861 | |
| 4862 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4863 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4864 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4865 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4866 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4868 | fi |
| 4869 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4870 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4871 | else |
| 4872 | # Is the header compilable? |
| 4873 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4874 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4875 | cat >conftest.$ac_ext <<_ACEOF |
| 4876 | #line $LINENO "configure" |
| 4877 | #include "confdefs.h" |
| 4878 | $ac_includes_default |
| 4879 | #include <sys/sysmacros.h> |
| 4880 | _ACEOF |
| 4881 | rm -f conftest.$ac_objext |
| 4882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4883 | (eval $ac_compile) 2>&5 |
| 4884 | ac_status=$? |
| 4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4886 | (exit $ac_status); } && |
| 4887 | { ac_try='test -s conftest.$ac_objext' |
| 4888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4889 | (eval $ac_try) 2>&5 |
| 4890 | ac_status=$? |
| 4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4892 | (exit $ac_status); }; }; then |
| 4893 | ac_header_compiler=yes |
| 4894 | else |
| 4895 | echo "$as_me: failed program was:" >&5 |
| 4896 | cat conftest.$ac_ext >&5 |
| 4897 | ac_header_compiler=no |
| 4898 | fi |
| 4899 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4900 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4901 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4902 | |
| 4903 | # Is the header present? |
| 4904 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4905 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4906 | cat >conftest.$ac_ext <<_ACEOF |
| 4907 | #line $LINENO "configure" |
| 4908 | #include "confdefs.h" |
| 4909 | #include <sys/sysmacros.h> |
| 4910 | _ACEOF |
| 4911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4913 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4914 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4915 | rm -f conftest.er1 |
| 4916 | cat conftest.err >&5 |
| 4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4918 | (exit $ac_status); } >/dev/null; then |
| 4919 | if test -s conftest.err; then |
| 4920 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4921 | else |
| 4922 | ac_cpp_err= |
| 4923 | fi |
| 4924 | else |
| 4925 | ac_cpp_err=yes |
| 4926 | fi |
| 4927 | if test -z "$ac_cpp_err"; then |
| 4928 | ac_header_preproc=yes |
| 4929 | else |
| 4930 | echo "$as_me: failed program was:" >&5 |
| 4931 | cat conftest.$ac_ext >&5 |
| 4932 | ac_header_preproc=no |
| 4933 | fi |
| 4934 | rm -f conftest.err conftest.$ac_ext |
| 4935 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4936 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4937 | |
| 4938 | # So? What about this header? |
| 4939 | case $ac_header_compiler:$ac_header_preproc in |
| 4940 | yes:no ) |
| 4941 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4942 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4943 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4944 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4945 | no:yes ) |
| 4946 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4947 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4948 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4949 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4950 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4951 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4952 | esac |
| 4953 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4954 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4955 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4957 | else |
| 4958 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4959 | fi |
| 4960 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4961 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4962 | |
| 4963 | fi |
| 4964 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4965 | |
| 4966 | cat >>confdefs.h <<\_ACEOF |
| 4967 | #define MAJOR_IN_SYSMACROS 1 |
| 4968 | _ACEOF |
| 4969 | |
| 4970 | fi |
| 4971 | |
| 4972 | |
| 4973 | fi |
| 4974 | fi |
| 4975 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4976 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4977 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4978 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4979 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4980 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4981 | cat >conftest.$ac_ext <<_ACEOF |
| 4982 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4983 | #include "confdefs.h" |
| 4984 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4985 | |
| 4986 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4988 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4989 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4991 | |
| 4992 | |
| 4993 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4994 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4995 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4996 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4997 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4998 | fi |
| 4999 | rm -f conftest* |
| 5000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5001 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5002 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5003 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5004 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5005 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5006 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5007 | cat >conftest.$ac_ext <<_ACEOF |
| 5008 | #line $LINENO "configure" |
| 5009 | #include "confdefs.h" |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5010 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5011 | #ifdef F77_DUMMY_MAIN |
| 5012 | # ifdef __cplusplus |
| 5013 | extern "C" |
| 5014 | # endif |
| 5015 | int F77_DUMMY_MAIN() { return 1; } |
| 5016 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5017 | int |
| 5018 | main () |
| 5019 | { |
| 5020 | makedev(0, 0) |
| 5021 | ; |
| 5022 | return 0; |
| 5023 | } |
| 5024 | _ACEOF |
| 5025 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5027 | (eval $ac_link) 2>&5 |
| 5028 | ac_status=$? |
| 5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5030 | (exit $ac_status); } && |
| 5031 | { ac_try='test -s conftest$ac_exeext' |
| 5032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5033 | (eval $ac_try) 2>&5 |
| 5034 | ac_status=$? |
| 5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5036 | (exit $ac_status); }; }; then |
| 5037 | ac_cv_has_makedev=yes |
| 5038 | else |
| 5039 | echo "$as_me: failed program was:" >&5 |
| 5040 | cat conftest.$ac_ext >&5 |
| 5041 | ac_cv_has_makedev=no |
| 5042 | fi |
| 5043 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5044 | if test "$ac_cv_has_makedev" = "no"; then |
| 5045 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5046 | cat >conftest.$ac_ext <<_ACEOF |
| 5047 | #line $LINENO "configure" |
| 5048 | #include "confdefs.h" |
| 5049 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5050 | #define _OSF_SOURCE 1 |
| 5051 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5052 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5053 | #ifdef F77_DUMMY_MAIN |
| 5054 | # ifdef __cplusplus |
| 5055 | extern "C" |
| 5056 | # endif |
| 5057 | int F77_DUMMY_MAIN() { return 1; } |
| 5058 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5059 | int |
| 5060 | main () |
| 5061 | { |
| 5062 | makedev(0, 0) |
| 5063 | ; |
| 5064 | return 0; |
| 5065 | } |
| 5066 | _ACEOF |
| 5067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5069 | (eval $ac_link) 2>&5 |
| 5070 | ac_status=$? |
| 5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5072 | (exit $ac_status); } && |
| 5073 | { ac_try='test -s conftest$ac_exeext' |
| 5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5075 | (eval $ac_try) 2>&5 |
| 5076 | ac_status=$? |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); }; }; then |
| 5079 | ac_cv_has_makedev=yes |
| 5080 | else |
| 5081 | echo "$as_me: failed program was:" >&5 |
| 5082 | cat conftest.$ac_ext >&5 |
| 5083 | ac_cv_has_makedev=no |
| 5084 | fi |
| 5085 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5086 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5087 | |
| 5088 | cat >>confdefs.h <<\_ACEOF |
| 5089 | #define _OSF_SOURCE 1 |
| 5090 | _ACEOF |
| 5091 | |
| 5092 | fi |
| 5093 | fi |
| 5094 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5095 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5096 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5097 | |
| 5098 | cat >>confdefs.h <<\_ACEOF |
| 5099 | #define HAVE_MAKEDEV 1 |
| 5100 | _ACEOF |
| 5101 | |
| 5102 | fi |
| 5103 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5104 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5105 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5106 | # defined, but the compiler does not support pragma redefine_extname, |
| 5107 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5108 | # structures (such as rlimit64) without declaring them. As a |
| 5109 | # work-around, disable LFS on such configurations |
| 5110 | |
| 5111 | use_lfs=yes |
| 5112 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5113 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5114 | cat >conftest.$ac_ext <<_ACEOF |
| 5115 | #line $LINENO "configure" |
| 5116 | #include "confdefs.h" |
| 5117 | |
| 5118 | #define _LARGEFILE_SOURCE 1 |
| 5119 | #define _FILE_OFFSET_BITS 64 |
| 5120 | #include <sys/resource.h> |
| 5121 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5122 | #ifdef F77_DUMMY_MAIN |
| 5123 | # ifdef __cplusplus |
| 5124 | extern "C" |
| 5125 | # endif |
| 5126 | int F77_DUMMY_MAIN() { return 1; } |
| 5127 | #endif |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5128 | int |
| 5129 | main () |
| 5130 | { |
| 5131 | struct rlimit foo; |
| 5132 | ; |
| 5133 | return 0; |
| 5134 | } |
| 5135 | _ACEOF |
| 5136 | rm -f conftest.$ac_objext |
| 5137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5138 | (eval $ac_compile) 2>&5 |
| 5139 | ac_status=$? |
| 5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5141 | (exit $ac_status); } && |
| 5142 | { ac_try='test -s conftest.$ac_objext' |
| 5143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5144 | (eval $ac_try) 2>&5 |
| 5145 | ac_status=$? |
| 5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5147 | (exit $ac_status); }; }; then |
| 5148 | sol_lfs_bug=no |
| 5149 | else |
| 5150 | echo "$as_me: failed program was:" >&5 |
| 5151 | cat conftest.$ac_ext >&5 |
| 5152 | sol_lfs_bug=yes |
| 5153 | fi |
| 5154 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5155 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5156 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5157 | if test "$sol_lfs_bug" = "yes"; then |
| 5158 | use_lfs=no |
| 5159 | fi |
| 5160 | |
| 5161 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5162 | # Two defines needed to enable largefile support on various platforms |
| 5163 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5165 | cat >>confdefs.h <<\_ACEOF |
| 5166 | #define _LARGEFILE_SOURCE 1 |
| 5167 | _ACEOF |
| 5168 | |
| 5169 | |
| 5170 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5171 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5172 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5173 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5174 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5175 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5176 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5177 | cat >> confdefs.h <<\EOF |
| 5178 | #if defined(SCO_DS) |
| 5179 | #undef _OFF_T |
| 5180 | #endif |
| 5181 | EOF |
| 5182 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5183 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5184 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5185 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5186 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5188 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5189 | cat >conftest.$ac_ext <<_ACEOF |
| 5190 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5191 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5192 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5193 | #ifdef F77_DUMMY_MAIN |
| 5194 | # ifdef __cplusplus |
| 5195 | extern "C" |
| 5196 | # endif |
| 5197 | int F77_DUMMY_MAIN() { return 1; } |
| 5198 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5199 | int |
| 5200 | main () |
| 5201 | { |
| 5202 | if ((mode_t *) 0) |
| 5203 | return 0; |
| 5204 | if (sizeof (mode_t)) |
| 5205 | return 0; |
| 5206 | ; |
| 5207 | return 0; |
| 5208 | } |
| 5209 | _ACEOF |
| 5210 | rm -f conftest.$ac_objext |
| 5211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5212 | (eval $ac_compile) 2>&5 |
| 5213 | ac_status=$? |
| 5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5215 | (exit $ac_status); } && |
| 5216 | { ac_try='test -s conftest.$ac_objext' |
| 5217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5218 | (eval $ac_try) 2>&5 |
| 5219 | ac_status=$? |
| 5220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5221 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5222 | ac_cv_type_mode_t=yes |
| 5223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5224 | echo "$as_me: failed program was:" >&5 |
| 5225 | cat conftest.$ac_ext >&5 |
| 5226 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5227 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5228 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5229 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5230 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5231 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5232 | if test $ac_cv_type_mode_t = yes; then |
| 5233 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5235 | |
| 5236 | cat >>confdefs.h <<_ACEOF |
| 5237 | #define mode_t int |
| 5238 | _ACEOF |
| 5239 | |
| 5240 | fi |
| 5241 | |
| 5242 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5243 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5244 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5246 | else |
| 5247 | cat >conftest.$ac_ext <<_ACEOF |
| 5248 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5249 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5250 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5251 | #ifdef F77_DUMMY_MAIN |
| 5252 | # ifdef __cplusplus |
| 5253 | extern "C" |
| 5254 | # endif |
| 5255 | int F77_DUMMY_MAIN() { return 1; } |
| 5256 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5257 | int |
| 5258 | main () |
| 5259 | { |
| 5260 | if ((off_t *) 0) |
| 5261 | return 0; |
| 5262 | if (sizeof (off_t)) |
| 5263 | return 0; |
| 5264 | ; |
| 5265 | return 0; |
| 5266 | } |
| 5267 | _ACEOF |
| 5268 | rm -f conftest.$ac_objext |
| 5269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5270 | (eval $ac_compile) 2>&5 |
| 5271 | ac_status=$? |
| 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5273 | (exit $ac_status); } && |
| 5274 | { ac_try='test -s conftest.$ac_objext' |
| 5275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5276 | (eval $ac_try) 2>&5 |
| 5277 | ac_status=$? |
| 5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5279 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5280 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5282 | echo "$as_me: failed program was:" >&5 |
| 5283 | cat conftest.$ac_ext >&5 |
| 5284 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5285 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5286 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5287 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5288 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5289 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5290 | if test $ac_cv_type_off_t = yes; then |
| 5291 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5293 | |
| 5294 | cat >>confdefs.h <<_ACEOF |
| 5295 | #define off_t long |
| 5296 | _ACEOF |
| 5297 | |
| 5298 | fi |
| 5299 | |
| 5300 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5301 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5302 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5304 | else |
| 5305 | cat >conftest.$ac_ext <<_ACEOF |
| 5306 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5307 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5308 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5309 | #ifdef F77_DUMMY_MAIN |
| 5310 | # ifdef __cplusplus |
| 5311 | extern "C" |
| 5312 | # endif |
| 5313 | int F77_DUMMY_MAIN() { return 1; } |
| 5314 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5315 | int |
| 5316 | main () |
| 5317 | { |
| 5318 | if ((pid_t *) 0) |
| 5319 | return 0; |
| 5320 | if (sizeof (pid_t)) |
| 5321 | return 0; |
| 5322 | ; |
| 5323 | return 0; |
| 5324 | } |
| 5325 | _ACEOF |
| 5326 | rm -f conftest.$ac_objext |
| 5327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5328 | (eval $ac_compile) 2>&5 |
| 5329 | ac_status=$? |
| 5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5331 | (exit $ac_status); } && |
| 5332 | { ac_try='test -s conftest.$ac_objext' |
| 5333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5334 | (eval $ac_try) 2>&5 |
| 5335 | ac_status=$? |
| 5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5337 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5338 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5340 | echo "$as_me: failed program was:" >&5 |
| 5341 | cat conftest.$ac_ext >&5 |
| 5342 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5343 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5344 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5346 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5347 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5348 | if test $ac_cv_type_pid_t = yes; then |
| 5349 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5351 | |
| 5352 | cat >>confdefs.h <<_ACEOF |
| 5353 | #define pid_t int |
| 5354 | _ACEOF |
| 5355 | |
| 5356 | fi |
| 5357 | |
| 5358 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5359 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5360 | if test "${ac_cv_type_signal+set}" = set; then |
| 5361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5362 | else |
| 5363 | cat >conftest.$ac_ext <<_ACEOF |
| 5364 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5365 | #include "confdefs.h" |
| 5366 | #include <sys/types.h> |
| 5367 | #include <signal.h> |
| 5368 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5369 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5370 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5371 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5372 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5373 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5374 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5375 | #endif |
| 5376 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5377 | #ifdef F77_DUMMY_MAIN |
| 5378 | # ifdef __cplusplus |
| 5379 | extern "C" |
| 5380 | # endif |
| 5381 | int F77_DUMMY_MAIN() { return 1; } |
| 5382 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5383 | int |
| 5384 | main () |
| 5385 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5386 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5387 | ; |
| 5388 | return 0; |
| 5389 | } |
| 5390 | _ACEOF |
| 5391 | rm -f conftest.$ac_objext |
| 5392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5393 | (eval $ac_compile) 2>&5 |
| 5394 | ac_status=$? |
| 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5396 | (exit $ac_status); } && |
| 5397 | { ac_try='test -s conftest.$ac_objext' |
| 5398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5399 | (eval $ac_try) 2>&5 |
| 5400 | ac_status=$? |
| 5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5402 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5403 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5405 | echo "$as_me: failed program was:" >&5 |
| 5406 | cat conftest.$ac_ext >&5 |
| 5407 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5408 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5409 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5411 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5412 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5413 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5414 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5415 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5416 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5417 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5419 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5420 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5421 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5424 | cat >conftest.$ac_ext <<_ACEOF |
| 5425 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5426 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5427 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5428 | #ifdef F77_DUMMY_MAIN |
| 5429 | # ifdef __cplusplus |
| 5430 | extern "C" |
| 5431 | # endif |
| 5432 | int F77_DUMMY_MAIN() { return 1; } |
| 5433 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5434 | int |
| 5435 | main () |
| 5436 | { |
| 5437 | if ((size_t *) 0) |
| 5438 | return 0; |
| 5439 | if (sizeof (size_t)) |
| 5440 | return 0; |
| 5441 | ; |
| 5442 | return 0; |
| 5443 | } |
| 5444 | _ACEOF |
| 5445 | rm -f conftest.$ac_objext |
| 5446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5447 | (eval $ac_compile) 2>&5 |
| 5448 | ac_status=$? |
| 5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5450 | (exit $ac_status); } && |
| 5451 | { ac_try='test -s conftest.$ac_objext' |
| 5452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5453 | (eval $ac_try) 2>&5 |
| 5454 | ac_status=$? |
| 5455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5456 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5457 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5459 | echo "$as_me: failed program was:" >&5 |
| 5460 | cat conftest.$ac_ext >&5 |
| 5461 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5462 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5463 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5464 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5465 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5466 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5467 | if test $ac_cv_type_size_t = yes; then |
| 5468 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5470 | |
| 5471 | cat >>confdefs.h <<_ACEOF |
| 5472 | #define size_t unsigned |
| 5473 | _ACEOF |
| 5474 | |
| 5475 | fi |
| 5476 | |
| 5477 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5478 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5479 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5481 | else |
| 5482 | cat >conftest.$ac_ext <<_ACEOF |
| 5483 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5484 | #include "confdefs.h" |
| 5485 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5486 | |
| 5487 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5489 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5490 | ac_cv_type_uid_t=yes |
| 5491 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5492 | ac_cv_type_uid_t=no |
| 5493 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5494 | rm -f conftest* |
| 5495 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5496 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5497 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5498 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5499 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5501 | cat >>confdefs.h <<\_ACEOF |
| 5502 | #define uid_t int |
| 5503 | _ACEOF |
| 5504 | |
| 5505 | |
| 5506 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5507 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5508 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5509 | |
| 5510 | fi |
| 5511 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5512 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5513 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5514 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5515 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5516 | if test "${ac_cv_type_int+set}" = set; then |
| 5517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5518 | else |
| 5519 | cat >conftest.$ac_ext <<_ACEOF |
| 5520 | #line $LINENO "configure" |
| 5521 | #include "confdefs.h" |
| 5522 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5523 | #ifdef F77_DUMMY_MAIN |
| 5524 | # ifdef __cplusplus |
| 5525 | extern "C" |
| 5526 | # endif |
| 5527 | int F77_DUMMY_MAIN() { return 1; } |
| 5528 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5529 | int |
| 5530 | main () |
| 5531 | { |
| 5532 | if ((int *) 0) |
| 5533 | return 0; |
| 5534 | if (sizeof (int)) |
| 5535 | return 0; |
| 5536 | ; |
| 5537 | return 0; |
| 5538 | } |
| 5539 | _ACEOF |
| 5540 | rm -f conftest.$ac_objext |
| 5541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5542 | (eval $ac_compile) 2>&5 |
| 5543 | ac_status=$? |
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5545 | (exit $ac_status); } && |
| 5546 | { ac_try='test -s conftest.$ac_objext' |
| 5547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5548 | (eval $ac_try) 2>&5 |
| 5549 | ac_status=$? |
| 5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5551 | (exit $ac_status); }; }; then |
| 5552 | ac_cv_type_int=yes |
| 5553 | else |
| 5554 | echo "$as_me: failed program was:" >&5 |
| 5555 | cat conftest.$ac_ext >&5 |
| 5556 | ac_cv_type_int=no |
| 5557 | fi |
| 5558 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5559 | fi |
| 5560 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5561 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5562 | |
| 5563 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5564 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5565 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5567 | else |
| 5568 | if test "$ac_cv_type_int" = yes; then |
| 5569 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5570 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5571 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5572 | # This bug is HP SR number 8606223364. |
| 5573 | if test "$cross_compiling" = yes; then |
| 5574 | # Depending upon the size, compute the lo and hi bounds. |
| 5575 | cat >conftest.$ac_ext <<_ACEOF |
| 5576 | #line $LINENO "configure" |
| 5577 | #include "confdefs.h" |
| 5578 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5579 | #ifdef F77_DUMMY_MAIN |
| 5580 | # ifdef __cplusplus |
| 5581 | extern "C" |
| 5582 | # endif |
| 5583 | int F77_DUMMY_MAIN() { return 1; } |
| 5584 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5585 | int |
| 5586 | main () |
| 5587 | { |
| 5588 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5589 | test_array [0] = 0 |
| 5590 | |
| 5591 | ; |
| 5592 | return 0; |
| 5593 | } |
| 5594 | _ACEOF |
| 5595 | rm -f conftest.$ac_objext |
| 5596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5597 | (eval $ac_compile) 2>&5 |
| 5598 | ac_status=$? |
| 5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5600 | (exit $ac_status); } && |
| 5601 | { ac_try='test -s conftest.$ac_objext' |
| 5602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5603 | (eval $ac_try) 2>&5 |
| 5604 | ac_status=$? |
| 5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5606 | (exit $ac_status); }; }; then |
| 5607 | ac_lo=0 ac_mid=0 |
| 5608 | while :; do |
| 5609 | cat >conftest.$ac_ext <<_ACEOF |
| 5610 | #line $LINENO "configure" |
| 5611 | #include "confdefs.h" |
| 5612 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5613 | #ifdef F77_DUMMY_MAIN |
| 5614 | # ifdef __cplusplus |
| 5615 | extern "C" |
| 5616 | # endif |
| 5617 | int F77_DUMMY_MAIN() { return 1; } |
| 5618 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5619 | int |
| 5620 | main () |
| 5621 | { |
| 5622 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5623 | test_array [0] = 0 |
| 5624 | |
| 5625 | ; |
| 5626 | return 0; |
| 5627 | } |
| 5628 | _ACEOF |
| 5629 | rm -f conftest.$ac_objext |
| 5630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5631 | (eval $ac_compile) 2>&5 |
| 5632 | ac_status=$? |
| 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5634 | (exit $ac_status); } && |
| 5635 | { ac_try='test -s conftest.$ac_objext' |
| 5636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5637 | (eval $ac_try) 2>&5 |
| 5638 | ac_status=$? |
| 5639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5640 | (exit $ac_status); }; }; then |
| 5641 | ac_hi=$ac_mid; break |
| 5642 | else |
| 5643 | echo "$as_me: failed program was:" >&5 |
| 5644 | cat conftest.$ac_ext >&5 |
| 5645 | ac_lo=`expr $ac_mid + 1` |
| 5646 | if test $ac_lo -le $ac_mid; then |
| 5647 | ac_lo= ac_hi= |
| 5648 | break |
| 5649 | fi |
| 5650 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5651 | fi |
| 5652 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5653 | done |
| 5654 | else |
| 5655 | echo "$as_me: failed program was:" >&5 |
| 5656 | cat conftest.$ac_ext >&5 |
| 5657 | cat >conftest.$ac_ext <<_ACEOF |
| 5658 | #line $LINENO "configure" |
| 5659 | #include "confdefs.h" |
| 5660 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5661 | #ifdef F77_DUMMY_MAIN |
| 5662 | # ifdef __cplusplus |
| 5663 | extern "C" |
| 5664 | # endif |
| 5665 | int F77_DUMMY_MAIN() { return 1; } |
| 5666 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5667 | int |
| 5668 | main () |
| 5669 | { |
| 5670 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5671 | test_array [0] = 0 |
| 5672 | |
| 5673 | ; |
| 5674 | return 0; |
| 5675 | } |
| 5676 | _ACEOF |
| 5677 | rm -f conftest.$ac_objext |
| 5678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5679 | (eval $ac_compile) 2>&5 |
| 5680 | ac_status=$? |
| 5681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5682 | (exit $ac_status); } && |
| 5683 | { ac_try='test -s conftest.$ac_objext' |
| 5684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5685 | (eval $ac_try) 2>&5 |
| 5686 | ac_status=$? |
| 5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5688 | (exit $ac_status); }; }; then |
| 5689 | ac_hi=-1 ac_mid=-1 |
| 5690 | while :; do |
| 5691 | cat >conftest.$ac_ext <<_ACEOF |
| 5692 | #line $LINENO "configure" |
| 5693 | #include "confdefs.h" |
| 5694 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5695 | #ifdef F77_DUMMY_MAIN |
| 5696 | # ifdef __cplusplus |
| 5697 | extern "C" |
| 5698 | # endif |
| 5699 | int F77_DUMMY_MAIN() { return 1; } |
| 5700 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5701 | int |
| 5702 | main () |
| 5703 | { |
| 5704 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5705 | test_array [0] = 0 |
| 5706 | |
| 5707 | ; |
| 5708 | return 0; |
| 5709 | } |
| 5710 | _ACEOF |
| 5711 | rm -f conftest.$ac_objext |
| 5712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5713 | (eval $ac_compile) 2>&5 |
| 5714 | ac_status=$? |
| 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5716 | (exit $ac_status); } && |
| 5717 | { ac_try='test -s conftest.$ac_objext' |
| 5718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5719 | (eval $ac_try) 2>&5 |
| 5720 | ac_status=$? |
| 5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5722 | (exit $ac_status); }; }; then |
| 5723 | ac_lo=$ac_mid; break |
| 5724 | else |
| 5725 | echo "$as_me: failed program was:" >&5 |
| 5726 | cat conftest.$ac_ext >&5 |
| 5727 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5728 | if test $ac_mid -le $ac_hi; then |
| 5729 | ac_lo= ac_hi= |
| 5730 | break |
| 5731 | fi |
| 5732 | ac_mid=`expr 2 '*' $ac_mid` |
| 5733 | fi |
| 5734 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5735 | done |
| 5736 | else |
| 5737 | echo "$as_me: failed program was:" >&5 |
| 5738 | cat conftest.$ac_ext >&5 |
| 5739 | ac_lo= ac_hi= |
| 5740 | fi |
| 5741 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5742 | fi |
| 5743 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5744 | # Binary search between lo and hi bounds. |
| 5745 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5746 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5747 | cat >conftest.$ac_ext <<_ACEOF |
| 5748 | #line $LINENO "configure" |
| 5749 | #include "confdefs.h" |
| 5750 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5751 | #ifdef F77_DUMMY_MAIN |
| 5752 | # ifdef __cplusplus |
| 5753 | extern "C" |
| 5754 | # endif |
| 5755 | int F77_DUMMY_MAIN() { return 1; } |
| 5756 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5757 | int |
| 5758 | main () |
| 5759 | { |
| 5760 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5761 | test_array [0] = 0 |
| 5762 | |
| 5763 | ; |
| 5764 | return 0; |
| 5765 | } |
| 5766 | _ACEOF |
| 5767 | rm -f conftest.$ac_objext |
| 5768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5769 | (eval $ac_compile) 2>&5 |
| 5770 | ac_status=$? |
| 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5772 | (exit $ac_status); } && |
| 5773 | { ac_try='test -s conftest.$ac_objext' |
| 5774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5775 | (eval $ac_try) 2>&5 |
| 5776 | ac_status=$? |
| 5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5778 | (exit $ac_status); }; }; then |
| 5779 | ac_hi=$ac_mid |
| 5780 | else |
| 5781 | echo "$as_me: failed program was:" >&5 |
| 5782 | cat conftest.$ac_ext >&5 |
| 5783 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5784 | fi |
| 5785 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5786 | done |
| 5787 | case $ac_lo in |
| 5788 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5789 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5790 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5791 | { (exit 1); exit 1; }; } ;; |
| 5792 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5793 | else |
| 5794 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5795 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5796 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5797 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5799 | cat >conftest.$ac_ext <<_ACEOF |
| 5800 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5801 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5802 | $ac_includes_default |
| 5803 | long longval () { return (long) (sizeof (int)); } |
| 5804 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5805 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5806 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5807 | #ifdef F77_DUMMY_MAIN |
| 5808 | # ifdef __cplusplus |
| 5809 | extern "C" |
| 5810 | # endif |
| 5811 | int F77_DUMMY_MAIN() { return 1; } |
| 5812 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5813 | int |
| 5814 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5815 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5816 | |
| 5817 | FILE *f = fopen ("conftest.val", "w"); |
| 5818 | if (! f) |
| 5819 | exit (1); |
| 5820 | if (((long) (sizeof (int))) < 0) |
| 5821 | { |
| 5822 | long i = longval (); |
| 5823 | if (i != ((long) (sizeof (int)))) |
| 5824 | exit (1); |
| 5825 | fprintf (f, "%ld\n", i); |
| 5826 | } |
| 5827 | else |
| 5828 | { |
| 5829 | unsigned long i = ulongval (); |
| 5830 | if (i != ((long) (sizeof (int)))) |
| 5831 | exit (1); |
| 5832 | fprintf (f, "%lu\n", i); |
| 5833 | } |
| 5834 | exit (ferror (f) || fclose (f) != 0); |
| 5835 | |
| 5836 | ; |
| 5837 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5838 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5839 | _ACEOF |
| 5840 | rm -f conftest$ac_exeext |
| 5841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5842 | (eval $ac_link) 2>&5 |
| 5843 | ac_status=$? |
| 5844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5845 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5847 | (eval $ac_try) 2>&5 |
| 5848 | ac_status=$? |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); }; }; then |
| 5851 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5852 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5853 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5854 | echo "$as_me: failed program was:" >&5 |
| 5855 | cat conftest.$ac_ext >&5 |
| 5856 | ( exit $ac_status ) |
| 5857 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5858 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5859 | { (exit 1); exit 1; }; } |
| 5860 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5861 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5862 | fi |
| 5863 | fi |
| 5864 | rm -f conftest.val |
| 5865 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5866 | ac_cv_sizeof_int=0 |
| 5867 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5869 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5870 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5871 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5872 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5873 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5874 | |
| 5875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5876 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5877 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5878 | if test "${ac_cv_type_long+set}" = set; then |
| 5879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5880 | else |
| 5881 | cat >conftest.$ac_ext <<_ACEOF |
| 5882 | #line $LINENO "configure" |
| 5883 | #include "confdefs.h" |
| 5884 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5885 | #ifdef F77_DUMMY_MAIN |
| 5886 | # ifdef __cplusplus |
| 5887 | extern "C" |
| 5888 | # endif |
| 5889 | int F77_DUMMY_MAIN() { return 1; } |
| 5890 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5891 | int |
| 5892 | main () |
| 5893 | { |
| 5894 | if ((long *) 0) |
| 5895 | return 0; |
| 5896 | if (sizeof (long)) |
| 5897 | return 0; |
| 5898 | ; |
| 5899 | return 0; |
| 5900 | } |
| 5901 | _ACEOF |
| 5902 | rm -f conftest.$ac_objext |
| 5903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5904 | (eval $ac_compile) 2>&5 |
| 5905 | ac_status=$? |
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5907 | (exit $ac_status); } && |
| 5908 | { ac_try='test -s conftest.$ac_objext' |
| 5909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5910 | (eval $ac_try) 2>&5 |
| 5911 | ac_status=$? |
| 5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5913 | (exit $ac_status); }; }; then |
| 5914 | ac_cv_type_long=yes |
| 5915 | else |
| 5916 | echo "$as_me: failed program was:" >&5 |
| 5917 | cat conftest.$ac_ext >&5 |
| 5918 | ac_cv_type_long=no |
| 5919 | fi |
| 5920 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5921 | fi |
| 5922 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5923 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5924 | |
| 5925 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5926 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5927 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5929 | else |
| 5930 | if test "$ac_cv_type_long" = yes; then |
| 5931 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5932 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5933 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5934 | # This bug is HP SR number 8606223364. |
| 5935 | if test "$cross_compiling" = yes; then |
| 5936 | # Depending upon the size, compute the lo and hi bounds. |
| 5937 | cat >conftest.$ac_ext <<_ACEOF |
| 5938 | #line $LINENO "configure" |
| 5939 | #include "confdefs.h" |
| 5940 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5941 | #ifdef F77_DUMMY_MAIN |
| 5942 | # ifdef __cplusplus |
| 5943 | extern "C" |
| 5944 | # endif |
| 5945 | int F77_DUMMY_MAIN() { return 1; } |
| 5946 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5947 | int |
| 5948 | main () |
| 5949 | { |
| 5950 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5951 | test_array [0] = 0 |
| 5952 | |
| 5953 | ; |
| 5954 | return 0; |
| 5955 | } |
| 5956 | _ACEOF |
| 5957 | rm -f conftest.$ac_objext |
| 5958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5959 | (eval $ac_compile) 2>&5 |
| 5960 | ac_status=$? |
| 5961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5962 | (exit $ac_status); } && |
| 5963 | { ac_try='test -s conftest.$ac_objext' |
| 5964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5965 | (eval $ac_try) 2>&5 |
| 5966 | ac_status=$? |
| 5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5968 | (exit $ac_status); }; }; then |
| 5969 | ac_lo=0 ac_mid=0 |
| 5970 | while :; do |
| 5971 | cat >conftest.$ac_ext <<_ACEOF |
| 5972 | #line $LINENO "configure" |
| 5973 | #include "confdefs.h" |
| 5974 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5975 | #ifdef F77_DUMMY_MAIN |
| 5976 | # ifdef __cplusplus |
| 5977 | extern "C" |
| 5978 | # endif |
| 5979 | int F77_DUMMY_MAIN() { return 1; } |
| 5980 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5981 | int |
| 5982 | main () |
| 5983 | { |
| 5984 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5985 | test_array [0] = 0 |
| 5986 | |
| 5987 | ; |
| 5988 | return 0; |
| 5989 | } |
| 5990 | _ACEOF |
| 5991 | rm -f conftest.$ac_objext |
| 5992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5993 | (eval $ac_compile) 2>&5 |
| 5994 | ac_status=$? |
| 5995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5996 | (exit $ac_status); } && |
| 5997 | { ac_try='test -s conftest.$ac_objext' |
| 5998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5999 | (eval $ac_try) 2>&5 |
| 6000 | ac_status=$? |
| 6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6002 | (exit $ac_status); }; }; then |
| 6003 | ac_hi=$ac_mid; break |
| 6004 | else |
| 6005 | echo "$as_me: failed program was:" >&5 |
| 6006 | cat conftest.$ac_ext >&5 |
| 6007 | ac_lo=`expr $ac_mid + 1` |
| 6008 | if test $ac_lo -le $ac_mid; then |
| 6009 | ac_lo= ac_hi= |
| 6010 | break |
| 6011 | fi |
| 6012 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6013 | fi |
| 6014 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6015 | done |
| 6016 | else |
| 6017 | echo "$as_me: failed program was:" >&5 |
| 6018 | cat conftest.$ac_ext >&5 |
| 6019 | cat >conftest.$ac_ext <<_ACEOF |
| 6020 | #line $LINENO "configure" |
| 6021 | #include "confdefs.h" |
| 6022 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6023 | #ifdef F77_DUMMY_MAIN |
| 6024 | # ifdef __cplusplus |
| 6025 | extern "C" |
| 6026 | # endif |
| 6027 | int F77_DUMMY_MAIN() { return 1; } |
| 6028 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6029 | int |
| 6030 | main () |
| 6031 | { |
| 6032 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6033 | test_array [0] = 0 |
| 6034 | |
| 6035 | ; |
| 6036 | return 0; |
| 6037 | } |
| 6038 | _ACEOF |
| 6039 | rm -f conftest.$ac_objext |
| 6040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6041 | (eval $ac_compile) 2>&5 |
| 6042 | ac_status=$? |
| 6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6044 | (exit $ac_status); } && |
| 6045 | { ac_try='test -s conftest.$ac_objext' |
| 6046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6047 | (eval $ac_try) 2>&5 |
| 6048 | ac_status=$? |
| 6049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6050 | (exit $ac_status); }; }; then |
| 6051 | ac_hi=-1 ac_mid=-1 |
| 6052 | while :; do |
| 6053 | cat >conftest.$ac_ext <<_ACEOF |
| 6054 | #line $LINENO "configure" |
| 6055 | #include "confdefs.h" |
| 6056 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6057 | #ifdef F77_DUMMY_MAIN |
| 6058 | # ifdef __cplusplus |
| 6059 | extern "C" |
| 6060 | # endif |
| 6061 | int F77_DUMMY_MAIN() { return 1; } |
| 6062 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6063 | int |
| 6064 | main () |
| 6065 | { |
| 6066 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6067 | test_array [0] = 0 |
| 6068 | |
| 6069 | ; |
| 6070 | return 0; |
| 6071 | } |
| 6072 | _ACEOF |
| 6073 | rm -f conftest.$ac_objext |
| 6074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6075 | (eval $ac_compile) 2>&5 |
| 6076 | ac_status=$? |
| 6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6078 | (exit $ac_status); } && |
| 6079 | { ac_try='test -s conftest.$ac_objext' |
| 6080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6081 | (eval $ac_try) 2>&5 |
| 6082 | ac_status=$? |
| 6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6084 | (exit $ac_status); }; }; then |
| 6085 | ac_lo=$ac_mid; break |
| 6086 | else |
| 6087 | echo "$as_me: failed program was:" >&5 |
| 6088 | cat conftest.$ac_ext >&5 |
| 6089 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6090 | if test $ac_mid -le $ac_hi; then |
| 6091 | ac_lo= ac_hi= |
| 6092 | break |
| 6093 | fi |
| 6094 | ac_mid=`expr 2 '*' $ac_mid` |
| 6095 | fi |
| 6096 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6097 | done |
| 6098 | else |
| 6099 | echo "$as_me: failed program was:" >&5 |
| 6100 | cat conftest.$ac_ext >&5 |
| 6101 | ac_lo= ac_hi= |
| 6102 | fi |
| 6103 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6104 | fi |
| 6105 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6106 | # Binary search between lo and hi bounds. |
| 6107 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6108 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6109 | cat >conftest.$ac_ext <<_ACEOF |
| 6110 | #line $LINENO "configure" |
| 6111 | #include "confdefs.h" |
| 6112 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6113 | #ifdef F77_DUMMY_MAIN |
| 6114 | # ifdef __cplusplus |
| 6115 | extern "C" |
| 6116 | # endif |
| 6117 | int F77_DUMMY_MAIN() { return 1; } |
| 6118 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6119 | int |
| 6120 | main () |
| 6121 | { |
| 6122 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6123 | test_array [0] = 0 |
| 6124 | |
| 6125 | ; |
| 6126 | return 0; |
| 6127 | } |
| 6128 | _ACEOF |
| 6129 | rm -f conftest.$ac_objext |
| 6130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6131 | (eval $ac_compile) 2>&5 |
| 6132 | ac_status=$? |
| 6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6134 | (exit $ac_status); } && |
| 6135 | { ac_try='test -s conftest.$ac_objext' |
| 6136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6137 | (eval $ac_try) 2>&5 |
| 6138 | ac_status=$? |
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); }; }; then |
| 6141 | ac_hi=$ac_mid |
| 6142 | else |
| 6143 | echo "$as_me: failed program was:" >&5 |
| 6144 | cat conftest.$ac_ext >&5 |
| 6145 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6146 | fi |
| 6147 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6148 | done |
| 6149 | case $ac_lo in |
| 6150 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 6151 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 6152 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 6153 | { (exit 1); exit 1; }; } ;; |
| 6154 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6155 | else |
| 6156 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6157 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6158 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6159 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6161 | cat >conftest.$ac_ext <<_ACEOF |
| 6162 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6163 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6164 | $ac_includes_default |
| 6165 | long longval () { return (long) (sizeof (long)); } |
| 6166 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6167 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6168 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6169 | #ifdef F77_DUMMY_MAIN |
| 6170 | # ifdef __cplusplus |
| 6171 | extern "C" |
| 6172 | # endif |
| 6173 | int F77_DUMMY_MAIN() { return 1; } |
| 6174 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6175 | int |
| 6176 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6177 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6178 | |
| 6179 | FILE *f = fopen ("conftest.val", "w"); |
| 6180 | if (! f) |
| 6181 | exit (1); |
| 6182 | if (((long) (sizeof (long))) < 0) |
| 6183 | { |
| 6184 | long i = longval (); |
| 6185 | if (i != ((long) (sizeof (long)))) |
| 6186 | exit (1); |
| 6187 | fprintf (f, "%ld\n", i); |
| 6188 | } |
| 6189 | else |
| 6190 | { |
| 6191 | unsigned long i = ulongval (); |
| 6192 | if (i != ((long) (sizeof (long)))) |
| 6193 | exit (1); |
| 6194 | fprintf (f, "%lu\n", i); |
| 6195 | } |
| 6196 | exit (ferror (f) || fclose (f) != 0); |
| 6197 | |
| 6198 | ; |
| 6199 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6200 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 | _ACEOF |
| 6202 | rm -f conftest$ac_exeext |
| 6203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6204 | (eval $ac_link) 2>&5 |
| 6205 | ac_status=$? |
| 6206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6209 | (eval $ac_try) 2>&5 |
| 6210 | ac_status=$? |
| 6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6212 | (exit $ac_status); }; }; then |
| 6213 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6215 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6216 | echo "$as_me: failed program was:" >&5 |
| 6217 | cat conftest.$ac_ext >&5 |
| 6218 | ( exit $ac_status ) |
| 6219 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 6220 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 6221 | { (exit 1); exit 1; }; } |
| 6222 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6223 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6224 | fi |
| 6225 | fi |
| 6226 | rm -f conftest.val |
| 6227 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6228 | ac_cv_sizeof_long=0 |
| 6229 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6230 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6231 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6232 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6233 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6234 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6235 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6236 | |
| 6237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6238 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6239 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6240 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6242 | else |
| 6243 | cat >conftest.$ac_ext <<_ACEOF |
| 6244 | #line $LINENO "configure" |
| 6245 | #include "confdefs.h" |
| 6246 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6247 | #ifdef F77_DUMMY_MAIN |
| 6248 | # ifdef __cplusplus |
| 6249 | extern "C" |
| 6250 | # endif |
| 6251 | int F77_DUMMY_MAIN() { return 1; } |
| 6252 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6253 | int |
| 6254 | main () |
| 6255 | { |
| 6256 | if ((void * *) 0) |
| 6257 | return 0; |
| 6258 | if (sizeof (void *)) |
| 6259 | return 0; |
| 6260 | ; |
| 6261 | return 0; |
| 6262 | } |
| 6263 | _ACEOF |
| 6264 | rm -f conftest.$ac_objext |
| 6265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6266 | (eval $ac_compile) 2>&5 |
| 6267 | ac_status=$? |
| 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6269 | (exit $ac_status); } && |
| 6270 | { ac_try='test -s conftest.$ac_objext' |
| 6271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6272 | (eval $ac_try) 2>&5 |
| 6273 | ac_status=$? |
| 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6275 | (exit $ac_status); }; }; then |
| 6276 | ac_cv_type_void_p=yes |
| 6277 | else |
| 6278 | echo "$as_me: failed program was:" >&5 |
| 6279 | cat conftest.$ac_ext >&5 |
| 6280 | ac_cv_type_void_p=no |
| 6281 | fi |
| 6282 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6283 | fi |
| 6284 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6285 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6286 | |
| 6287 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6288 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6289 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6291 | else |
| 6292 | if test "$ac_cv_type_void_p" = yes; then |
| 6293 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6294 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6295 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6296 | # This bug is HP SR number 8606223364. |
| 6297 | if test "$cross_compiling" = yes; then |
| 6298 | # Depending upon the size, compute the lo and hi bounds. |
| 6299 | cat >conftest.$ac_ext <<_ACEOF |
| 6300 | #line $LINENO "configure" |
| 6301 | #include "confdefs.h" |
| 6302 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6303 | #ifdef F77_DUMMY_MAIN |
| 6304 | # ifdef __cplusplus |
| 6305 | extern "C" |
| 6306 | # endif |
| 6307 | int F77_DUMMY_MAIN() { return 1; } |
| 6308 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6309 | int |
| 6310 | main () |
| 6311 | { |
| 6312 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6313 | test_array [0] = 0 |
| 6314 | |
| 6315 | ; |
| 6316 | return 0; |
| 6317 | } |
| 6318 | _ACEOF |
| 6319 | rm -f conftest.$ac_objext |
| 6320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6321 | (eval $ac_compile) 2>&5 |
| 6322 | ac_status=$? |
| 6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6324 | (exit $ac_status); } && |
| 6325 | { ac_try='test -s conftest.$ac_objext' |
| 6326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6327 | (eval $ac_try) 2>&5 |
| 6328 | ac_status=$? |
| 6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6330 | (exit $ac_status); }; }; then |
| 6331 | ac_lo=0 ac_mid=0 |
| 6332 | while :; do |
| 6333 | cat >conftest.$ac_ext <<_ACEOF |
| 6334 | #line $LINENO "configure" |
| 6335 | #include "confdefs.h" |
| 6336 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6337 | #ifdef F77_DUMMY_MAIN |
| 6338 | # ifdef __cplusplus |
| 6339 | extern "C" |
| 6340 | # endif |
| 6341 | int F77_DUMMY_MAIN() { return 1; } |
| 6342 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6343 | int |
| 6344 | main () |
| 6345 | { |
| 6346 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6347 | test_array [0] = 0 |
| 6348 | |
| 6349 | ; |
| 6350 | return 0; |
| 6351 | } |
| 6352 | _ACEOF |
| 6353 | rm -f conftest.$ac_objext |
| 6354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6355 | (eval $ac_compile) 2>&5 |
| 6356 | ac_status=$? |
| 6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6358 | (exit $ac_status); } && |
| 6359 | { ac_try='test -s conftest.$ac_objext' |
| 6360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6361 | (eval $ac_try) 2>&5 |
| 6362 | ac_status=$? |
| 6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6364 | (exit $ac_status); }; }; then |
| 6365 | ac_hi=$ac_mid; break |
| 6366 | else |
| 6367 | echo "$as_me: failed program was:" >&5 |
| 6368 | cat conftest.$ac_ext >&5 |
| 6369 | ac_lo=`expr $ac_mid + 1` |
| 6370 | if test $ac_lo -le $ac_mid; then |
| 6371 | ac_lo= ac_hi= |
| 6372 | break |
| 6373 | fi |
| 6374 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6375 | fi |
| 6376 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6377 | done |
| 6378 | else |
| 6379 | echo "$as_me: failed program was:" >&5 |
| 6380 | cat conftest.$ac_ext >&5 |
| 6381 | cat >conftest.$ac_ext <<_ACEOF |
| 6382 | #line $LINENO "configure" |
| 6383 | #include "confdefs.h" |
| 6384 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6385 | #ifdef F77_DUMMY_MAIN |
| 6386 | # ifdef __cplusplus |
| 6387 | extern "C" |
| 6388 | # endif |
| 6389 | int F77_DUMMY_MAIN() { return 1; } |
| 6390 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6391 | int |
| 6392 | main () |
| 6393 | { |
| 6394 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6395 | test_array [0] = 0 |
| 6396 | |
| 6397 | ; |
| 6398 | return 0; |
| 6399 | } |
| 6400 | _ACEOF |
| 6401 | rm -f conftest.$ac_objext |
| 6402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6403 | (eval $ac_compile) 2>&5 |
| 6404 | ac_status=$? |
| 6405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6406 | (exit $ac_status); } && |
| 6407 | { ac_try='test -s conftest.$ac_objext' |
| 6408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6409 | (eval $ac_try) 2>&5 |
| 6410 | ac_status=$? |
| 6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6412 | (exit $ac_status); }; }; then |
| 6413 | ac_hi=-1 ac_mid=-1 |
| 6414 | while :; do |
| 6415 | cat >conftest.$ac_ext <<_ACEOF |
| 6416 | #line $LINENO "configure" |
| 6417 | #include "confdefs.h" |
| 6418 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6419 | #ifdef F77_DUMMY_MAIN |
| 6420 | # ifdef __cplusplus |
| 6421 | extern "C" |
| 6422 | # endif |
| 6423 | int F77_DUMMY_MAIN() { return 1; } |
| 6424 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6425 | int |
| 6426 | main () |
| 6427 | { |
| 6428 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6429 | test_array [0] = 0 |
| 6430 | |
| 6431 | ; |
| 6432 | return 0; |
| 6433 | } |
| 6434 | _ACEOF |
| 6435 | rm -f conftest.$ac_objext |
| 6436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6437 | (eval $ac_compile) 2>&5 |
| 6438 | ac_status=$? |
| 6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6440 | (exit $ac_status); } && |
| 6441 | { ac_try='test -s conftest.$ac_objext' |
| 6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6443 | (eval $ac_try) 2>&5 |
| 6444 | ac_status=$? |
| 6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6446 | (exit $ac_status); }; }; then |
| 6447 | ac_lo=$ac_mid; break |
| 6448 | else |
| 6449 | echo "$as_me: failed program was:" >&5 |
| 6450 | cat conftest.$ac_ext >&5 |
| 6451 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6452 | if test $ac_mid -le $ac_hi; then |
| 6453 | ac_lo= ac_hi= |
| 6454 | break |
| 6455 | fi |
| 6456 | ac_mid=`expr 2 '*' $ac_mid` |
| 6457 | fi |
| 6458 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6459 | done |
| 6460 | else |
| 6461 | echo "$as_me: failed program was:" >&5 |
| 6462 | cat conftest.$ac_ext >&5 |
| 6463 | ac_lo= ac_hi= |
| 6464 | fi |
| 6465 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6466 | fi |
| 6467 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6468 | # Binary search between lo and hi bounds. |
| 6469 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6470 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6471 | cat >conftest.$ac_ext <<_ACEOF |
| 6472 | #line $LINENO "configure" |
| 6473 | #include "confdefs.h" |
| 6474 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6475 | #ifdef F77_DUMMY_MAIN |
| 6476 | # ifdef __cplusplus |
| 6477 | extern "C" |
| 6478 | # endif |
| 6479 | int F77_DUMMY_MAIN() { return 1; } |
| 6480 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6481 | int |
| 6482 | main () |
| 6483 | { |
| 6484 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6485 | test_array [0] = 0 |
| 6486 | |
| 6487 | ; |
| 6488 | return 0; |
| 6489 | } |
| 6490 | _ACEOF |
| 6491 | rm -f conftest.$ac_objext |
| 6492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6493 | (eval $ac_compile) 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); } && |
| 6497 | { ac_try='test -s conftest.$ac_objext' |
| 6498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6499 | (eval $ac_try) 2>&5 |
| 6500 | ac_status=$? |
| 6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6502 | (exit $ac_status); }; }; then |
| 6503 | ac_hi=$ac_mid |
| 6504 | else |
| 6505 | echo "$as_me: failed program was:" >&5 |
| 6506 | cat conftest.$ac_ext >&5 |
| 6507 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6508 | fi |
| 6509 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6510 | done |
| 6511 | case $ac_lo in |
| 6512 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6513 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6514 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6515 | { (exit 1); exit 1; }; } ;; |
| 6516 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6517 | else |
| 6518 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6519 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6520 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6521 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6523 | cat >conftest.$ac_ext <<_ACEOF |
| 6524 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6525 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6526 | $ac_includes_default |
| 6527 | long longval () { return (long) (sizeof (void *)); } |
| 6528 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6529 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6530 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6531 | #ifdef F77_DUMMY_MAIN |
| 6532 | # ifdef __cplusplus |
| 6533 | extern "C" |
| 6534 | # endif |
| 6535 | int F77_DUMMY_MAIN() { return 1; } |
| 6536 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6537 | int |
| 6538 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6539 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6540 | |
| 6541 | FILE *f = fopen ("conftest.val", "w"); |
| 6542 | if (! f) |
| 6543 | exit (1); |
| 6544 | if (((long) (sizeof (void *))) < 0) |
| 6545 | { |
| 6546 | long i = longval (); |
| 6547 | if (i != ((long) (sizeof (void *)))) |
| 6548 | exit (1); |
| 6549 | fprintf (f, "%ld\n", i); |
| 6550 | } |
| 6551 | else |
| 6552 | { |
| 6553 | unsigned long i = ulongval (); |
| 6554 | if (i != ((long) (sizeof (void *)))) |
| 6555 | exit (1); |
| 6556 | fprintf (f, "%lu\n", i); |
| 6557 | } |
| 6558 | exit (ferror (f) || fclose (f) != 0); |
| 6559 | |
| 6560 | ; |
| 6561 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6562 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 | _ACEOF |
| 6564 | rm -f conftest$ac_exeext |
| 6565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6566 | (eval $ac_link) 2>&5 |
| 6567 | ac_status=$? |
| 6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6571 | (eval $ac_try) 2>&5 |
| 6572 | ac_status=$? |
| 6573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6574 | (exit $ac_status); }; }; then |
| 6575 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6577 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6578 | echo "$as_me: failed program was:" >&5 |
| 6579 | cat conftest.$ac_ext >&5 |
| 6580 | ( exit $ac_status ) |
| 6581 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6582 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6583 | { (exit 1); exit 1; }; } |
| 6584 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6585 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6586 | fi |
| 6587 | fi |
| 6588 | rm -f conftest.val |
| 6589 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6590 | ac_cv_sizeof_void_p=0 |
| 6591 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6593 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6594 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6595 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6596 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6597 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6598 | |
| 6599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6600 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6601 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6602 | if test "${ac_cv_type_char+set}" = set; then |
| 6603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6604 | else |
| 6605 | cat >conftest.$ac_ext <<_ACEOF |
| 6606 | #line $LINENO "configure" |
| 6607 | #include "confdefs.h" |
| 6608 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6609 | #ifdef F77_DUMMY_MAIN |
| 6610 | # ifdef __cplusplus |
| 6611 | extern "C" |
| 6612 | # endif |
| 6613 | int F77_DUMMY_MAIN() { return 1; } |
| 6614 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6615 | int |
| 6616 | main () |
| 6617 | { |
| 6618 | if ((char *) 0) |
| 6619 | return 0; |
| 6620 | if (sizeof (char)) |
| 6621 | return 0; |
| 6622 | ; |
| 6623 | return 0; |
| 6624 | } |
| 6625 | _ACEOF |
| 6626 | rm -f conftest.$ac_objext |
| 6627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6628 | (eval $ac_compile) 2>&5 |
| 6629 | ac_status=$? |
| 6630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6631 | (exit $ac_status); } && |
| 6632 | { ac_try='test -s conftest.$ac_objext' |
| 6633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6634 | (eval $ac_try) 2>&5 |
| 6635 | ac_status=$? |
| 6636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6637 | (exit $ac_status); }; }; then |
| 6638 | ac_cv_type_char=yes |
| 6639 | else |
| 6640 | echo "$as_me: failed program was:" >&5 |
| 6641 | cat conftest.$ac_ext >&5 |
| 6642 | ac_cv_type_char=no |
| 6643 | fi |
| 6644 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6645 | fi |
| 6646 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6647 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6648 | |
| 6649 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6650 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6651 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6653 | else |
| 6654 | if test "$ac_cv_type_char" = yes; then |
| 6655 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6656 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6657 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6658 | # This bug is HP SR number 8606223364. |
| 6659 | if test "$cross_compiling" = yes; then |
| 6660 | # Depending upon the size, compute the lo and hi bounds. |
| 6661 | cat >conftest.$ac_ext <<_ACEOF |
| 6662 | #line $LINENO "configure" |
| 6663 | #include "confdefs.h" |
| 6664 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6665 | #ifdef F77_DUMMY_MAIN |
| 6666 | # ifdef __cplusplus |
| 6667 | extern "C" |
| 6668 | # endif |
| 6669 | int F77_DUMMY_MAIN() { return 1; } |
| 6670 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6671 | int |
| 6672 | main () |
| 6673 | { |
| 6674 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6675 | test_array [0] = 0 |
| 6676 | |
| 6677 | ; |
| 6678 | return 0; |
| 6679 | } |
| 6680 | _ACEOF |
| 6681 | rm -f conftest.$ac_objext |
| 6682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6683 | (eval $ac_compile) 2>&5 |
| 6684 | ac_status=$? |
| 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6686 | (exit $ac_status); } && |
| 6687 | { ac_try='test -s conftest.$ac_objext' |
| 6688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6689 | (eval $ac_try) 2>&5 |
| 6690 | ac_status=$? |
| 6691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6692 | (exit $ac_status); }; }; then |
| 6693 | ac_lo=0 ac_mid=0 |
| 6694 | while :; do |
| 6695 | cat >conftest.$ac_ext <<_ACEOF |
| 6696 | #line $LINENO "configure" |
| 6697 | #include "confdefs.h" |
| 6698 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6699 | #ifdef F77_DUMMY_MAIN |
| 6700 | # ifdef __cplusplus |
| 6701 | extern "C" |
| 6702 | # endif |
| 6703 | int F77_DUMMY_MAIN() { return 1; } |
| 6704 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6705 | int |
| 6706 | main () |
| 6707 | { |
| 6708 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6709 | test_array [0] = 0 |
| 6710 | |
| 6711 | ; |
| 6712 | return 0; |
| 6713 | } |
| 6714 | _ACEOF |
| 6715 | rm -f conftest.$ac_objext |
| 6716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6717 | (eval $ac_compile) 2>&5 |
| 6718 | ac_status=$? |
| 6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6720 | (exit $ac_status); } && |
| 6721 | { ac_try='test -s conftest.$ac_objext' |
| 6722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6723 | (eval $ac_try) 2>&5 |
| 6724 | ac_status=$? |
| 6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6726 | (exit $ac_status); }; }; then |
| 6727 | ac_hi=$ac_mid; break |
| 6728 | else |
| 6729 | echo "$as_me: failed program was:" >&5 |
| 6730 | cat conftest.$ac_ext >&5 |
| 6731 | ac_lo=`expr $ac_mid + 1` |
| 6732 | if test $ac_lo -le $ac_mid; then |
| 6733 | ac_lo= ac_hi= |
| 6734 | break |
| 6735 | fi |
| 6736 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6737 | fi |
| 6738 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6739 | done |
| 6740 | else |
| 6741 | echo "$as_me: failed program was:" >&5 |
| 6742 | cat conftest.$ac_ext >&5 |
| 6743 | cat >conftest.$ac_ext <<_ACEOF |
| 6744 | #line $LINENO "configure" |
| 6745 | #include "confdefs.h" |
| 6746 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6747 | #ifdef F77_DUMMY_MAIN |
| 6748 | # ifdef __cplusplus |
| 6749 | extern "C" |
| 6750 | # endif |
| 6751 | int F77_DUMMY_MAIN() { return 1; } |
| 6752 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6753 | int |
| 6754 | main () |
| 6755 | { |
| 6756 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6757 | test_array [0] = 0 |
| 6758 | |
| 6759 | ; |
| 6760 | return 0; |
| 6761 | } |
| 6762 | _ACEOF |
| 6763 | rm -f conftest.$ac_objext |
| 6764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6765 | (eval $ac_compile) 2>&5 |
| 6766 | ac_status=$? |
| 6767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6768 | (exit $ac_status); } && |
| 6769 | { ac_try='test -s conftest.$ac_objext' |
| 6770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6771 | (eval $ac_try) 2>&5 |
| 6772 | ac_status=$? |
| 6773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6774 | (exit $ac_status); }; }; then |
| 6775 | ac_hi=-1 ac_mid=-1 |
| 6776 | while :; do |
| 6777 | cat >conftest.$ac_ext <<_ACEOF |
| 6778 | #line $LINENO "configure" |
| 6779 | #include "confdefs.h" |
| 6780 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6781 | #ifdef F77_DUMMY_MAIN |
| 6782 | # ifdef __cplusplus |
| 6783 | extern "C" |
| 6784 | # endif |
| 6785 | int F77_DUMMY_MAIN() { return 1; } |
| 6786 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6787 | int |
| 6788 | main () |
| 6789 | { |
| 6790 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6791 | test_array [0] = 0 |
| 6792 | |
| 6793 | ; |
| 6794 | return 0; |
| 6795 | } |
| 6796 | _ACEOF |
| 6797 | rm -f conftest.$ac_objext |
| 6798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6799 | (eval $ac_compile) 2>&5 |
| 6800 | ac_status=$? |
| 6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6802 | (exit $ac_status); } && |
| 6803 | { ac_try='test -s conftest.$ac_objext' |
| 6804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6805 | (eval $ac_try) 2>&5 |
| 6806 | ac_status=$? |
| 6807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6808 | (exit $ac_status); }; }; then |
| 6809 | ac_lo=$ac_mid; break |
| 6810 | else |
| 6811 | echo "$as_me: failed program was:" >&5 |
| 6812 | cat conftest.$ac_ext >&5 |
| 6813 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6814 | if test $ac_mid -le $ac_hi; then |
| 6815 | ac_lo= ac_hi= |
| 6816 | break |
| 6817 | fi |
| 6818 | ac_mid=`expr 2 '*' $ac_mid` |
| 6819 | fi |
| 6820 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6821 | done |
| 6822 | else |
| 6823 | echo "$as_me: failed program was:" >&5 |
| 6824 | cat conftest.$ac_ext >&5 |
| 6825 | ac_lo= ac_hi= |
| 6826 | fi |
| 6827 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6828 | fi |
| 6829 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6830 | # Binary search between lo and hi bounds. |
| 6831 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6832 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6833 | cat >conftest.$ac_ext <<_ACEOF |
| 6834 | #line $LINENO "configure" |
| 6835 | #include "confdefs.h" |
| 6836 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6837 | #ifdef F77_DUMMY_MAIN |
| 6838 | # ifdef __cplusplus |
| 6839 | extern "C" |
| 6840 | # endif |
| 6841 | int F77_DUMMY_MAIN() { return 1; } |
| 6842 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6843 | int |
| 6844 | main () |
| 6845 | { |
| 6846 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6847 | test_array [0] = 0 |
| 6848 | |
| 6849 | ; |
| 6850 | return 0; |
| 6851 | } |
| 6852 | _ACEOF |
| 6853 | rm -f conftest.$ac_objext |
| 6854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6855 | (eval $ac_compile) 2>&5 |
| 6856 | ac_status=$? |
| 6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6858 | (exit $ac_status); } && |
| 6859 | { ac_try='test -s conftest.$ac_objext' |
| 6860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6861 | (eval $ac_try) 2>&5 |
| 6862 | ac_status=$? |
| 6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6864 | (exit $ac_status); }; }; then |
| 6865 | ac_hi=$ac_mid |
| 6866 | else |
| 6867 | echo "$as_me: failed program was:" >&5 |
| 6868 | cat conftest.$ac_ext >&5 |
| 6869 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6870 | fi |
| 6871 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6872 | done |
| 6873 | case $ac_lo in |
| 6874 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6875 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6876 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6877 | { (exit 1); exit 1; }; } ;; |
| 6878 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6879 | else |
| 6880 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6881 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6882 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6883 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6885 | cat >conftest.$ac_ext <<_ACEOF |
| 6886 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6887 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6888 | $ac_includes_default |
| 6889 | long longval () { return (long) (sizeof (char)); } |
| 6890 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6891 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6892 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6893 | #ifdef F77_DUMMY_MAIN |
| 6894 | # ifdef __cplusplus |
| 6895 | extern "C" |
| 6896 | # endif |
| 6897 | int F77_DUMMY_MAIN() { return 1; } |
| 6898 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6899 | int |
| 6900 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6901 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6902 | |
| 6903 | FILE *f = fopen ("conftest.val", "w"); |
| 6904 | if (! f) |
| 6905 | exit (1); |
| 6906 | if (((long) (sizeof (char))) < 0) |
| 6907 | { |
| 6908 | long i = longval (); |
| 6909 | if (i != ((long) (sizeof (char)))) |
| 6910 | exit (1); |
| 6911 | fprintf (f, "%ld\n", i); |
| 6912 | } |
| 6913 | else |
| 6914 | { |
| 6915 | unsigned long i = ulongval (); |
| 6916 | if (i != ((long) (sizeof (char)))) |
| 6917 | exit (1); |
| 6918 | fprintf (f, "%lu\n", i); |
| 6919 | } |
| 6920 | exit (ferror (f) || fclose (f) != 0); |
| 6921 | |
| 6922 | ; |
| 6923 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6924 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6925 | _ACEOF |
| 6926 | rm -f conftest$ac_exeext |
| 6927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6928 | (eval $ac_link) 2>&5 |
| 6929 | ac_status=$? |
| 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6933 | (eval $ac_try) 2>&5 |
| 6934 | ac_status=$? |
| 6935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6936 | (exit $ac_status); }; }; then |
| 6937 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6939 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6940 | echo "$as_me: failed program was:" >&5 |
| 6941 | cat conftest.$ac_ext >&5 |
| 6942 | ( exit $ac_status ) |
| 6943 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6944 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6945 | { (exit 1); exit 1; }; } |
| 6946 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6947 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | fi |
| 6949 | fi |
| 6950 | rm -f conftest.val |
| 6951 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6952 | ac_cv_sizeof_char=0 |
| 6953 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6954 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6955 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6956 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6957 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6958 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6959 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6960 | |
| 6961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6962 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6963 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6964 | if test "${ac_cv_type_short+set}" = set; then |
| 6965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6966 | else |
| 6967 | cat >conftest.$ac_ext <<_ACEOF |
| 6968 | #line $LINENO "configure" |
| 6969 | #include "confdefs.h" |
| 6970 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6971 | #ifdef F77_DUMMY_MAIN |
| 6972 | # ifdef __cplusplus |
| 6973 | extern "C" |
| 6974 | # endif |
| 6975 | int F77_DUMMY_MAIN() { return 1; } |
| 6976 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | int |
| 6978 | main () |
| 6979 | { |
| 6980 | if ((short *) 0) |
| 6981 | return 0; |
| 6982 | if (sizeof (short)) |
| 6983 | return 0; |
| 6984 | ; |
| 6985 | return 0; |
| 6986 | } |
| 6987 | _ACEOF |
| 6988 | rm -f conftest.$ac_objext |
| 6989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6990 | (eval $ac_compile) 2>&5 |
| 6991 | ac_status=$? |
| 6992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6993 | (exit $ac_status); } && |
| 6994 | { ac_try='test -s conftest.$ac_objext' |
| 6995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6996 | (eval $ac_try) 2>&5 |
| 6997 | ac_status=$? |
| 6998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6999 | (exit $ac_status); }; }; then |
| 7000 | ac_cv_type_short=yes |
| 7001 | else |
| 7002 | echo "$as_me: failed program was:" >&5 |
| 7003 | cat conftest.$ac_ext >&5 |
| 7004 | ac_cv_type_short=no |
| 7005 | fi |
| 7006 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7007 | fi |
| 7008 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7009 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7010 | |
| 7011 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7012 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7013 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7015 | else |
| 7016 | if test "$ac_cv_type_short" = yes; then |
| 7017 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7018 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7019 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7020 | # This bug is HP SR number 8606223364. |
| 7021 | if test "$cross_compiling" = yes; then |
| 7022 | # Depending upon the size, compute the lo and hi bounds. |
| 7023 | cat >conftest.$ac_ext <<_ACEOF |
| 7024 | #line $LINENO "configure" |
| 7025 | #include "confdefs.h" |
| 7026 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7027 | #ifdef F77_DUMMY_MAIN |
| 7028 | # ifdef __cplusplus |
| 7029 | extern "C" |
| 7030 | # endif |
| 7031 | int F77_DUMMY_MAIN() { return 1; } |
| 7032 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7033 | int |
| 7034 | main () |
| 7035 | { |
| 7036 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7037 | test_array [0] = 0 |
| 7038 | |
| 7039 | ; |
| 7040 | return 0; |
| 7041 | } |
| 7042 | _ACEOF |
| 7043 | rm -f conftest.$ac_objext |
| 7044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7045 | (eval $ac_compile) 2>&5 |
| 7046 | ac_status=$? |
| 7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7048 | (exit $ac_status); } && |
| 7049 | { ac_try='test -s conftest.$ac_objext' |
| 7050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7051 | (eval $ac_try) 2>&5 |
| 7052 | ac_status=$? |
| 7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7054 | (exit $ac_status); }; }; then |
| 7055 | ac_lo=0 ac_mid=0 |
| 7056 | while :; do |
| 7057 | cat >conftest.$ac_ext <<_ACEOF |
| 7058 | #line $LINENO "configure" |
| 7059 | #include "confdefs.h" |
| 7060 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7061 | #ifdef F77_DUMMY_MAIN |
| 7062 | # ifdef __cplusplus |
| 7063 | extern "C" |
| 7064 | # endif |
| 7065 | int F77_DUMMY_MAIN() { return 1; } |
| 7066 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7067 | int |
| 7068 | main () |
| 7069 | { |
| 7070 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7071 | test_array [0] = 0 |
| 7072 | |
| 7073 | ; |
| 7074 | return 0; |
| 7075 | } |
| 7076 | _ACEOF |
| 7077 | rm -f conftest.$ac_objext |
| 7078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7079 | (eval $ac_compile) 2>&5 |
| 7080 | ac_status=$? |
| 7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7082 | (exit $ac_status); } && |
| 7083 | { ac_try='test -s conftest.$ac_objext' |
| 7084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7085 | (eval $ac_try) 2>&5 |
| 7086 | ac_status=$? |
| 7087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7088 | (exit $ac_status); }; }; then |
| 7089 | ac_hi=$ac_mid; break |
| 7090 | else |
| 7091 | echo "$as_me: failed program was:" >&5 |
| 7092 | cat conftest.$ac_ext >&5 |
| 7093 | ac_lo=`expr $ac_mid + 1` |
| 7094 | if test $ac_lo -le $ac_mid; then |
| 7095 | ac_lo= ac_hi= |
| 7096 | break |
| 7097 | fi |
| 7098 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7099 | fi |
| 7100 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7101 | done |
| 7102 | else |
| 7103 | echo "$as_me: failed program was:" >&5 |
| 7104 | cat conftest.$ac_ext >&5 |
| 7105 | cat >conftest.$ac_ext <<_ACEOF |
| 7106 | #line $LINENO "configure" |
| 7107 | #include "confdefs.h" |
| 7108 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7109 | #ifdef F77_DUMMY_MAIN |
| 7110 | # ifdef __cplusplus |
| 7111 | extern "C" |
| 7112 | # endif |
| 7113 | int F77_DUMMY_MAIN() { return 1; } |
| 7114 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7115 | int |
| 7116 | main () |
| 7117 | { |
| 7118 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7119 | test_array [0] = 0 |
| 7120 | |
| 7121 | ; |
| 7122 | return 0; |
| 7123 | } |
| 7124 | _ACEOF |
| 7125 | rm -f conftest.$ac_objext |
| 7126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7127 | (eval $ac_compile) 2>&5 |
| 7128 | ac_status=$? |
| 7129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7130 | (exit $ac_status); } && |
| 7131 | { ac_try='test -s conftest.$ac_objext' |
| 7132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7133 | (eval $ac_try) 2>&5 |
| 7134 | ac_status=$? |
| 7135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7136 | (exit $ac_status); }; }; then |
| 7137 | ac_hi=-1 ac_mid=-1 |
| 7138 | while :; do |
| 7139 | cat >conftest.$ac_ext <<_ACEOF |
| 7140 | #line $LINENO "configure" |
| 7141 | #include "confdefs.h" |
| 7142 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7143 | #ifdef F77_DUMMY_MAIN |
| 7144 | # ifdef __cplusplus |
| 7145 | extern "C" |
| 7146 | # endif |
| 7147 | int F77_DUMMY_MAIN() { return 1; } |
| 7148 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7149 | int |
| 7150 | main () |
| 7151 | { |
| 7152 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7153 | test_array [0] = 0 |
| 7154 | |
| 7155 | ; |
| 7156 | return 0; |
| 7157 | } |
| 7158 | _ACEOF |
| 7159 | rm -f conftest.$ac_objext |
| 7160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7161 | (eval $ac_compile) 2>&5 |
| 7162 | ac_status=$? |
| 7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7164 | (exit $ac_status); } && |
| 7165 | { ac_try='test -s conftest.$ac_objext' |
| 7166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7167 | (eval $ac_try) 2>&5 |
| 7168 | ac_status=$? |
| 7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7170 | (exit $ac_status); }; }; then |
| 7171 | ac_lo=$ac_mid; break |
| 7172 | else |
| 7173 | echo "$as_me: failed program was:" >&5 |
| 7174 | cat conftest.$ac_ext >&5 |
| 7175 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7176 | if test $ac_mid -le $ac_hi; then |
| 7177 | ac_lo= ac_hi= |
| 7178 | break |
| 7179 | fi |
| 7180 | ac_mid=`expr 2 '*' $ac_mid` |
| 7181 | fi |
| 7182 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7183 | done |
| 7184 | else |
| 7185 | echo "$as_me: failed program was:" >&5 |
| 7186 | cat conftest.$ac_ext >&5 |
| 7187 | ac_lo= ac_hi= |
| 7188 | fi |
| 7189 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7190 | fi |
| 7191 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7192 | # Binary search between lo and hi bounds. |
| 7193 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7194 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7195 | cat >conftest.$ac_ext <<_ACEOF |
| 7196 | #line $LINENO "configure" |
| 7197 | #include "confdefs.h" |
| 7198 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7199 | #ifdef F77_DUMMY_MAIN |
| 7200 | # ifdef __cplusplus |
| 7201 | extern "C" |
| 7202 | # endif |
| 7203 | int F77_DUMMY_MAIN() { return 1; } |
| 7204 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7205 | int |
| 7206 | main () |
| 7207 | { |
| 7208 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7209 | test_array [0] = 0 |
| 7210 | |
| 7211 | ; |
| 7212 | return 0; |
| 7213 | } |
| 7214 | _ACEOF |
| 7215 | rm -f conftest.$ac_objext |
| 7216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7217 | (eval $ac_compile) 2>&5 |
| 7218 | ac_status=$? |
| 7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7220 | (exit $ac_status); } && |
| 7221 | { ac_try='test -s conftest.$ac_objext' |
| 7222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7223 | (eval $ac_try) 2>&5 |
| 7224 | ac_status=$? |
| 7225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7226 | (exit $ac_status); }; }; then |
| 7227 | ac_hi=$ac_mid |
| 7228 | else |
| 7229 | echo "$as_me: failed program was:" >&5 |
| 7230 | cat conftest.$ac_ext >&5 |
| 7231 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7232 | fi |
| 7233 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7234 | done |
| 7235 | case $ac_lo in |
| 7236 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 7237 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 7238 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 7239 | { (exit 1); exit 1; }; } ;; |
| 7240 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7241 | else |
| 7242 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7243 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7244 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7245 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7247 | cat >conftest.$ac_ext <<_ACEOF |
| 7248 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7249 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7250 | $ac_includes_default |
| 7251 | long longval () { return (long) (sizeof (short)); } |
| 7252 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7253 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7254 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7255 | #ifdef F77_DUMMY_MAIN |
| 7256 | # ifdef __cplusplus |
| 7257 | extern "C" |
| 7258 | # endif |
| 7259 | int F77_DUMMY_MAIN() { return 1; } |
| 7260 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7261 | int |
| 7262 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7263 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7264 | |
| 7265 | FILE *f = fopen ("conftest.val", "w"); |
| 7266 | if (! f) |
| 7267 | exit (1); |
| 7268 | if (((long) (sizeof (short))) < 0) |
| 7269 | { |
| 7270 | long i = longval (); |
| 7271 | if (i != ((long) (sizeof (short)))) |
| 7272 | exit (1); |
| 7273 | fprintf (f, "%ld\n", i); |
| 7274 | } |
| 7275 | else |
| 7276 | { |
| 7277 | unsigned long i = ulongval (); |
| 7278 | if (i != ((long) (sizeof (short)))) |
| 7279 | exit (1); |
| 7280 | fprintf (f, "%lu\n", i); |
| 7281 | } |
| 7282 | exit (ferror (f) || fclose (f) != 0); |
| 7283 | |
| 7284 | ; |
| 7285 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7286 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7287 | _ACEOF |
| 7288 | rm -f conftest$ac_exeext |
| 7289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7290 | (eval $ac_link) 2>&5 |
| 7291 | ac_status=$? |
| 7292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7293 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7295 | (eval $ac_try) 2>&5 |
| 7296 | ac_status=$? |
| 7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7298 | (exit $ac_status); }; }; then |
| 7299 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7301 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7302 | echo "$as_me: failed program was:" >&5 |
| 7303 | cat conftest.$ac_ext >&5 |
| 7304 | ( exit $ac_status ) |
| 7305 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 7306 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 7307 | { (exit 1); exit 1; }; } |
| 7308 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7309 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7310 | fi |
| 7311 | fi |
| 7312 | rm -f conftest.val |
| 7313 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7314 | ac_cv_sizeof_short=0 |
| 7315 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7316 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7317 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7318 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7319 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7320 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7321 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7322 | |
| 7323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7324 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7325 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7326 | if test "${ac_cv_type_float+set}" = set; then |
| 7327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7328 | else |
| 7329 | cat >conftest.$ac_ext <<_ACEOF |
| 7330 | #line $LINENO "configure" |
| 7331 | #include "confdefs.h" |
| 7332 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7333 | #ifdef F77_DUMMY_MAIN |
| 7334 | # ifdef __cplusplus |
| 7335 | extern "C" |
| 7336 | # endif |
| 7337 | int F77_DUMMY_MAIN() { return 1; } |
| 7338 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7339 | int |
| 7340 | main () |
| 7341 | { |
| 7342 | if ((float *) 0) |
| 7343 | return 0; |
| 7344 | if (sizeof (float)) |
| 7345 | return 0; |
| 7346 | ; |
| 7347 | return 0; |
| 7348 | } |
| 7349 | _ACEOF |
| 7350 | rm -f conftest.$ac_objext |
| 7351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7352 | (eval $ac_compile) 2>&5 |
| 7353 | ac_status=$? |
| 7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7355 | (exit $ac_status); } && |
| 7356 | { ac_try='test -s conftest.$ac_objext' |
| 7357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7358 | (eval $ac_try) 2>&5 |
| 7359 | ac_status=$? |
| 7360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7361 | (exit $ac_status); }; }; then |
| 7362 | ac_cv_type_float=yes |
| 7363 | else |
| 7364 | echo "$as_me: failed program was:" >&5 |
| 7365 | cat conftest.$ac_ext >&5 |
| 7366 | ac_cv_type_float=no |
| 7367 | fi |
| 7368 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7369 | fi |
| 7370 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7371 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7372 | |
| 7373 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7374 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7375 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7377 | else |
| 7378 | if test "$ac_cv_type_float" = yes; then |
| 7379 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7380 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7381 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7382 | # This bug is HP SR number 8606223364. |
| 7383 | if test "$cross_compiling" = yes; then |
| 7384 | # Depending upon the size, compute the lo and hi bounds. |
| 7385 | cat >conftest.$ac_ext <<_ACEOF |
| 7386 | #line $LINENO "configure" |
| 7387 | #include "confdefs.h" |
| 7388 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7389 | #ifdef F77_DUMMY_MAIN |
| 7390 | # ifdef __cplusplus |
| 7391 | extern "C" |
| 7392 | # endif |
| 7393 | int F77_DUMMY_MAIN() { return 1; } |
| 7394 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7395 | int |
| 7396 | main () |
| 7397 | { |
| 7398 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7399 | test_array [0] = 0 |
| 7400 | |
| 7401 | ; |
| 7402 | return 0; |
| 7403 | } |
| 7404 | _ACEOF |
| 7405 | rm -f conftest.$ac_objext |
| 7406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7407 | (eval $ac_compile) 2>&5 |
| 7408 | ac_status=$? |
| 7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7410 | (exit $ac_status); } && |
| 7411 | { ac_try='test -s conftest.$ac_objext' |
| 7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7413 | (eval $ac_try) 2>&5 |
| 7414 | ac_status=$? |
| 7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7416 | (exit $ac_status); }; }; then |
| 7417 | ac_lo=0 ac_mid=0 |
| 7418 | while :; do |
| 7419 | cat >conftest.$ac_ext <<_ACEOF |
| 7420 | #line $LINENO "configure" |
| 7421 | #include "confdefs.h" |
| 7422 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7423 | #ifdef F77_DUMMY_MAIN |
| 7424 | # ifdef __cplusplus |
| 7425 | extern "C" |
| 7426 | # endif |
| 7427 | int F77_DUMMY_MAIN() { return 1; } |
| 7428 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7429 | int |
| 7430 | main () |
| 7431 | { |
| 7432 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7433 | test_array [0] = 0 |
| 7434 | |
| 7435 | ; |
| 7436 | return 0; |
| 7437 | } |
| 7438 | _ACEOF |
| 7439 | rm -f conftest.$ac_objext |
| 7440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7441 | (eval $ac_compile) 2>&5 |
| 7442 | ac_status=$? |
| 7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7444 | (exit $ac_status); } && |
| 7445 | { ac_try='test -s conftest.$ac_objext' |
| 7446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7447 | (eval $ac_try) 2>&5 |
| 7448 | ac_status=$? |
| 7449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7450 | (exit $ac_status); }; }; then |
| 7451 | ac_hi=$ac_mid; break |
| 7452 | else |
| 7453 | echo "$as_me: failed program was:" >&5 |
| 7454 | cat conftest.$ac_ext >&5 |
| 7455 | ac_lo=`expr $ac_mid + 1` |
| 7456 | if test $ac_lo -le $ac_mid; then |
| 7457 | ac_lo= ac_hi= |
| 7458 | break |
| 7459 | fi |
| 7460 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7461 | fi |
| 7462 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7463 | done |
| 7464 | else |
| 7465 | echo "$as_me: failed program was:" >&5 |
| 7466 | cat conftest.$ac_ext >&5 |
| 7467 | cat >conftest.$ac_ext <<_ACEOF |
| 7468 | #line $LINENO "configure" |
| 7469 | #include "confdefs.h" |
| 7470 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7471 | #ifdef F77_DUMMY_MAIN |
| 7472 | # ifdef __cplusplus |
| 7473 | extern "C" |
| 7474 | # endif |
| 7475 | int F77_DUMMY_MAIN() { return 1; } |
| 7476 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | int |
| 7478 | main () |
| 7479 | { |
| 7480 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7481 | test_array [0] = 0 |
| 7482 | |
| 7483 | ; |
| 7484 | return 0; |
| 7485 | } |
| 7486 | _ACEOF |
| 7487 | rm -f conftest.$ac_objext |
| 7488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7489 | (eval $ac_compile) 2>&5 |
| 7490 | ac_status=$? |
| 7491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7492 | (exit $ac_status); } && |
| 7493 | { ac_try='test -s conftest.$ac_objext' |
| 7494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7495 | (eval $ac_try) 2>&5 |
| 7496 | ac_status=$? |
| 7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7498 | (exit $ac_status); }; }; then |
| 7499 | ac_hi=-1 ac_mid=-1 |
| 7500 | while :; do |
| 7501 | cat >conftest.$ac_ext <<_ACEOF |
| 7502 | #line $LINENO "configure" |
| 7503 | #include "confdefs.h" |
| 7504 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7505 | #ifdef F77_DUMMY_MAIN |
| 7506 | # ifdef __cplusplus |
| 7507 | extern "C" |
| 7508 | # endif |
| 7509 | int F77_DUMMY_MAIN() { return 1; } |
| 7510 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7511 | int |
| 7512 | main () |
| 7513 | { |
| 7514 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7515 | test_array [0] = 0 |
| 7516 | |
| 7517 | ; |
| 7518 | return 0; |
| 7519 | } |
| 7520 | _ACEOF |
| 7521 | rm -f conftest.$ac_objext |
| 7522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7523 | (eval $ac_compile) 2>&5 |
| 7524 | ac_status=$? |
| 7525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7526 | (exit $ac_status); } && |
| 7527 | { ac_try='test -s conftest.$ac_objext' |
| 7528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7529 | (eval $ac_try) 2>&5 |
| 7530 | ac_status=$? |
| 7531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7532 | (exit $ac_status); }; }; then |
| 7533 | ac_lo=$ac_mid; break |
| 7534 | else |
| 7535 | echo "$as_me: failed program was:" >&5 |
| 7536 | cat conftest.$ac_ext >&5 |
| 7537 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7538 | if test $ac_mid -le $ac_hi; then |
| 7539 | ac_lo= ac_hi= |
| 7540 | break |
| 7541 | fi |
| 7542 | ac_mid=`expr 2 '*' $ac_mid` |
| 7543 | fi |
| 7544 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7545 | done |
| 7546 | else |
| 7547 | echo "$as_me: failed program was:" >&5 |
| 7548 | cat conftest.$ac_ext >&5 |
| 7549 | ac_lo= ac_hi= |
| 7550 | fi |
| 7551 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7552 | fi |
| 7553 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7554 | # Binary search between lo and hi bounds. |
| 7555 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7556 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7557 | cat >conftest.$ac_ext <<_ACEOF |
| 7558 | #line $LINENO "configure" |
| 7559 | #include "confdefs.h" |
| 7560 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7561 | #ifdef F77_DUMMY_MAIN |
| 7562 | # ifdef __cplusplus |
| 7563 | extern "C" |
| 7564 | # endif |
| 7565 | int F77_DUMMY_MAIN() { return 1; } |
| 7566 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7567 | int |
| 7568 | main () |
| 7569 | { |
| 7570 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7571 | test_array [0] = 0 |
| 7572 | |
| 7573 | ; |
| 7574 | return 0; |
| 7575 | } |
| 7576 | _ACEOF |
| 7577 | rm -f conftest.$ac_objext |
| 7578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7579 | (eval $ac_compile) 2>&5 |
| 7580 | ac_status=$? |
| 7581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7582 | (exit $ac_status); } && |
| 7583 | { ac_try='test -s conftest.$ac_objext' |
| 7584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7585 | (eval $ac_try) 2>&5 |
| 7586 | ac_status=$? |
| 7587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7588 | (exit $ac_status); }; }; then |
| 7589 | ac_hi=$ac_mid |
| 7590 | else |
| 7591 | echo "$as_me: failed program was:" >&5 |
| 7592 | cat conftest.$ac_ext >&5 |
| 7593 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7594 | fi |
| 7595 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7596 | done |
| 7597 | case $ac_lo in |
| 7598 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7599 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7600 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7601 | { (exit 1); exit 1; }; } ;; |
| 7602 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7603 | else |
| 7604 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7606 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7607 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7609 | cat >conftest.$ac_ext <<_ACEOF |
| 7610 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7611 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7612 | $ac_includes_default |
| 7613 | long longval () { return (long) (sizeof (float)); } |
| 7614 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7615 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7616 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7617 | #ifdef F77_DUMMY_MAIN |
| 7618 | # ifdef __cplusplus |
| 7619 | extern "C" |
| 7620 | # endif |
| 7621 | int F77_DUMMY_MAIN() { return 1; } |
| 7622 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7623 | int |
| 7624 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7625 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7626 | |
| 7627 | FILE *f = fopen ("conftest.val", "w"); |
| 7628 | if (! f) |
| 7629 | exit (1); |
| 7630 | if (((long) (sizeof (float))) < 0) |
| 7631 | { |
| 7632 | long i = longval (); |
| 7633 | if (i != ((long) (sizeof (float)))) |
| 7634 | exit (1); |
| 7635 | fprintf (f, "%ld\n", i); |
| 7636 | } |
| 7637 | else |
| 7638 | { |
| 7639 | unsigned long i = ulongval (); |
| 7640 | if (i != ((long) (sizeof (float)))) |
| 7641 | exit (1); |
| 7642 | fprintf (f, "%lu\n", i); |
| 7643 | } |
| 7644 | exit (ferror (f) || fclose (f) != 0); |
| 7645 | |
| 7646 | ; |
| 7647 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7648 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7649 | _ACEOF |
| 7650 | rm -f conftest$ac_exeext |
| 7651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7652 | (eval $ac_link) 2>&5 |
| 7653 | ac_status=$? |
| 7654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7657 | (eval $ac_try) 2>&5 |
| 7658 | ac_status=$? |
| 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7660 | (exit $ac_status); }; }; then |
| 7661 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7664 | echo "$as_me: failed program was:" >&5 |
| 7665 | cat conftest.$ac_ext >&5 |
| 7666 | ( exit $ac_status ) |
| 7667 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7668 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7669 | { (exit 1); exit 1; }; } |
| 7670 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7671 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7672 | fi |
| 7673 | fi |
| 7674 | rm -f conftest.val |
| 7675 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7676 | ac_cv_sizeof_float=0 |
| 7677 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7678 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7680 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7681 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7682 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7683 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7684 | |
| 7685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7686 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7687 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7688 | if test "${ac_cv_type_double+set}" = set; then |
| 7689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7690 | else |
| 7691 | cat >conftest.$ac_ext <<_ACEOF |
| 7692 | #line $LINENO "configure" |
| 7693 | #include "confdefs.h" |
| 7694 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7695 | #ifdef F77_DUMMY_MAIN |
| 7696 | # ifdef __cplusplus |
| 7697 | extern "C" |
| 7698 | # endif |
| 7699 | int F77_DUMMY_MAIN() { return 1; } |
| 7700 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7701 | int |
| 7702 | main () |
| 7703 | { |
| 7704 | if ((double *) 0) |
| 7705 | return 0; |
| 7706 | if (sizeof (double)) |
| 7707 | return 0; |
| 7708 | ; |
| 7709 | return 0; |
| 7710 | } |
| 7711 | _ACEOF |
| 7712 | rm -f conftest.$ac_objext |
| 7713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7714 | (eval $ac_compile) 2>&5 |
| 7715 | ac_status=$? |
| 7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7717 | (exit $ac_status); } && |
| 7718 | { ac_try='test -s conftest.$ac_objext' |
| 7719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7720 | (eval $ac_try) 2>&5 |
| 7721 | ac_status=$? |
| 7722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7723 | (exit $ac_status); }; }; then |
| 7724 | ac_cv_type_double=yes |
| 7725 | else |
| 7726 | echo "$as_me: failed program was:" >&5 |
| 7727 | cat conftest.$ac_ext >&5 |
| 7728 | ac_cv_type_double=no |
| 7729 | fi |
| 7730 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7731 | fi |
| 7732 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7733 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7734 | |
| 7735 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7736 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7737 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7739 | else |
| 7740 | if test "$ac_cv_type_double" = yes; then |
| 7741 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7742 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7743 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7744 | # This bug is HP SR number 8606223364. |
| 7745 | if test "$cross_compiling" = yes; then |
| 7746 | # Depending upon the size, compute the lo and hi bounds. |
| 7747 | cat >conftest.$ac_ext <<_ACEOF |
| 7748 | #line $LINENO "configure" |
| 7749 | #include "confdefs.h" |
| 7750 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7751 | #ifdef F77_DUMMY_MAIN |
| 7752 | # ifdef __cplusplus |
| 7753 | extern "C" |
| 7754 | # endif |
| 7755 | int F77_DUMMY_MAIN() { return 1; } |
| 7756 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7757 | int |
| 7758 | main () |
| 7759 | { |
| 7760 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7761 | test_array [0] = 0 |
| 7762 | |
| 7763 | ; |
| 7764 | return 0; |
| 7765 | } |
| 7766 | _ACEOF |
| 7767 | rm -f conftest.$ac_objext |
| 7768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7769 | (eval $ac_compile) 2>&5 |
| 7770 | ac_status=$? |
| 7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7772 | (exit $ac_status); } && |
| 7773 | { ac_try='test -s conftest.$ac_objext' |
| 7774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7775 | (eval $ac_try) 2>&5 |
| 7776 | ac_status=$? |
| 7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7778 | (exit $ac_status); }; }; then |
| 7779 | ac_lo=0 ac_mid=0 |
| 7780 | while :; do |
| 7781 | cat >conftest.$ac_ext <<_ACEOF |
| 7782 | #line $LINENO "configure" |
| 7783 | #include "confdefs.h" |
| 7784 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7785 | #ifdef F77_DUMMY_MAIN |
| 7786 | # ifdef __cplusplus |
| 7787 | extern "C" |
| 7788 | # endif |
| 7789 | int F77_DUMMY_MAIN() { return 1; } |
| 7790 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7791 | int |
| 7792 | main () |
| 7793 | { |
| 7794 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7795 | test_array [0] = 0 |
| 7796 | |
| 7797 | ; |
| 7798 | return 0; |
| 7799 | } |
| 7800 | _ACEOF |
| 7801 | rm -f conftest.$ac_objext |
| 7802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7803 | (eval $ac_compile) 2>&5 |
| 7804 | ac_status=$? |
| 7805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7806 | (exit $ac_status); } && |
| 7807 | { ac_try='test -s conftest.$ac_objext' |
| 7808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7809 | (eval $ac_try) 2>&5 |
| 7810 | ac_status=$? |
| 7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7812 | (exit $ac_status); }; }; then |
| 7813 | ac_hi=$ac_mid; break |
| 7814 | else |
| 7815 | echo "$as_me: failed program was:" >&5 |
| 7816 | cat conftest.$ac_ext >&5 |
| 7817 | ac_lo=`expr $ac_mid + 1` |
| 7818 | if test $ac_lo -le $ac_mid; then |
| 7819 | ac_lo= ac_hi= |
| 7820 | break |
| 7821 | fi |
| 7822 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7823 | fi |
| 7824 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7825 | done |
| 7826 | else |
| 7827 | echo "$as_me: failed program was:" >&5 |
| 7828 | cat conftest.$ac_ext >&5 |
| 7829 | cat >conftest.$ac_ext <<_ACEOF |
| 7830 | #line $LINENO "configure" |
| 7831 | #include "confdefs.h" |
| 7832 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7833 | #ifdef F77_DUMMY_MAIN |
| 7834 | # ifdef __cplusplus |
| 7835 | extern "C" |
| 7836 | # endif |
| 7837 | int F77_DUMMY_MAIN() { return 1; } |
| 7838 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7839 | int |
| 7840 | main () |
| 7841 | { |
| 7842 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7843 | test_array [0] = 0 |
| 7844 | |
| 7845 | ; |
| 7846 | return 0; |
| 7847 | } |
| 7848 | _ACEOF |
| 7849 | rm -f conftest.$ac_objext |
| 7850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7851 | (eval $ac_compile) 2>&5 |
| 7852 | ac_status=$? |
| 7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7854 | (exit $ac_status); } && |
| 7855 | { ac_try='test -s conftest.$ac_objext' |
| 7856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7857 | (eval $ac_try) 2>&5 |
| 7858 | ac_status=$? |
| 7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7860 | (exit $ac_status); }; }; then |
| 7861 | ac_hi=-1 ac_mid=-1 |
| 7862 | while :; do |
| 7863 | cat >conftest.$ac_ext <<_ACEOF |
| 7864 | #line $LINENO "configure" |
| 7865 | #include "confdefs.h" |
| 7866 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7867 | #ifdef F77_DUMMY_MAIN |
| 7868 | # ifdef __cplusplus |
| 7869 | extern "C" |
| 7870 | # endif |
| 7871 | int F77_DUMMY_MAIN() { return 1; } |
| 7872 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7873 | int |
| 7874 | main () |
| 7875 | { |
| 7876 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7877 | test_array [0] = 0 |
| 7878 | |
| 7879 | ; |
| 7880 | return 0; |
| 7881 | } |
| 7882 | _ACEOF |
| 7883 | rm -f conftest.$ac_objext |
| 7884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7885 | (eval $ac_compile) 2>&5 |
| 7886 | ac_status=$? |
| 7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7888 | (exit $ac_status); } && |
| 7889 | { ac_try='test -s conftest.$ac_objext' |
| 7890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7891 | (eval $ac_try) 2>&5 |
| 7892 | ac_status=$? |
| 7893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7894 | (exit $ac_status); }; }; then |
| 7895 | ac_lo=$ac_mid; break |
| 7896 | else |
| 7897 | echo "$as_me: failed program was:" >&5 |
| 7898 | cat conftest.$ac_ext >&5 |
| 7899 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7900 | if test $ac_mid -le $ac_hi; then |
| 7901 | ac_lo= ac_hi= |
| 7902 | break |
| 7903 | fi |
| 7904 | ac_mid=`expr 2 '*' $ac_mid` |
| 7905 | fi |
| 7906 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7907 | done |
| 7908 | else |
| 7909 | echo "$as_me: failed program was:" >&5 |
| 7910 | cat conftest.$ac_ext >&5 |
| 7911 | ac_lo= ac_hi= |
| 7912 | fi |
| 7913 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7914 | fi |
| 7915 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7916 | # Binary search between lo and hi bounds. |
| 7917 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7918 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7919 | cat >conftest.$ac_ext <<_ACEOF |
| 7920 | #line $LINENO "configure" |
| 7921 | #include "confdefs.h" |
| 7922 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7923 | #ifdef F77_DUMMY_MAIN |
| 7924 | # ifdef __cplusplus |
| 7925 | extern "C" |
| 7926 | # endif |
| 7927 | int F77_DUMMY_MAIN() { return 1; } |
| 7928 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | int |
| 7930 | main () |
| 7931 | { |
| 7932 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7933 | test_array [0] = 0 |
| 7934 | |
| 7935 | ; |
| 7936 | return 0; |
| 7937 | } |
| 7938 | _ACEOF |
| 7939 | rm -f conftest.$ac_objext |
| 7940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7941 | (eval $ac_compile) 2>&5 |
| 7942 | ac_status=$? |
| 7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7944 | (exit $ac_status); } && |
| 7945 | { ac_try='test -s conftest.$ac_objext' |
| 7946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7947 | (eval $ac_try) 2>&5 |
| 7948 | ac_status=$? |
| 7949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7950 | (exit $ac_status); }; }; then |
| 7951 | ac_hi=$ac_mid |
| 7952 | else |
| 7953 | echo "$as_me: failed program was:" >&5 |
| 7954 | cat conftest.$ac_ext >&5 |
| 7955 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7956 | fi |
| 7957 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7958 | done |
| 7959 | case $ac_lo in |
| 7960 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7961 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7962 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7963 | { (exit 1); exit 1; }; } ;; |
| 7964 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7965 | else |
| 7966 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7967 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7968 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7969 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7971 | cat >conftest.$ac_ext <<_ACEOF |
| 7972 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7973 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7974 | $ac_includes_default |
| 7975 | long longval () { return (long) (sizeof (double)); } |
| 7976 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7977 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7978 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7979 | #ifdef F77_DUMMY_MAIN |
| 7980 | # ifdef __cplusplus |
| 7981 | extern "C" |
| 7982 | # endif |
| 7983 | int F77_DUMMY_MAIN() { return 1; } |
| 7984 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7985 | int |
| 7986 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7987 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7988 | |
| 7989 | FILE *f = fopen ("conftest.val", "w"); |
| 7990 | if (! f) |
| 7991 | exit (1); |
| 7992 | if (((long) (sizeof (double))) < 0) |
| 7993 | { |
| 7994 | long i = longval (); |
| 7995 | if (i != ((long) (sizeof (double)))) |
| 7996 | exit (1); |
| 7997 | fprintf (f, "%ld\n", i); |
| 7998 | } |
| 7999 | else |
| 8000 | { |
| 8001 | unsigned long i = ulongval (); |
| 8002 | if (i != ((long) (sizeof (double)))) |
| 8003 | exit (1); |
| 8004 | fprintf (f, "%lu\n", i); |
| 8005 | } |
| 8006 | exit (ferror (f) || fclose (f) != 0); |
| 8007 | |
| 8008 | ; |
| 8009 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8010 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8011 | _ACEOF |
| 8012 | rm -f conftest$ac_exeext |
| 8013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8014 | (eval $ac_link) 2>&5 |
| 8015 | ac_status=$? |
| 8016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8017 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8019 | (eval $ac_try) 2>&5 |
| 8020 | ac_status=$? |
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8022 | (exit $ac_status); }; }; then |
| 8023 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8025 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8026 | echo "$as_me: failed program was:" >&5 |
| 8027 | cat conftest.$ac_ext >&5 |
| 8028 | ( exit $ac_status ) |
| 8029 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 8030 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 8031 | { (exit 1); exit 1; }; } |
| 8032 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8033 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | fi |
| 8035 | fi |
| 8036 | rm -f conftest.val |
| 8037 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8038 | ac_cv_sizeof_double=0 |
| 8039 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8040 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8041 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8042 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8043 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8044 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8046 | |
| 8047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8049 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8050 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8052 | else |
| 8053 | cat >conftest.$ac_ext <<_ACEOF |
| 8054 | #line $LINENO "configure" |
| 8055 | #include "confdefs.h" |
| 8056 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8057 | #ifdef F77_DUMMY_MAIN |
| 8058 | # ifdef __cplusplus |
| 8059 | extern "C" |
| 8060 | # endif |
| 8061 | int F77_DUMMY_MAIN() { return 1; } |
| 8062 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8063 | int |
| 8064 | main () |
| 8065 | { |
| 8066 | if ((fpos_t *) 0) |
| 8067 | return 0; |
| 8068 | if (sizeof (fpos_t)) |
| 8069 | return 0; |
| 8070 | ; |
| 8071 | return 0; |
| 8072 | } |
| 8073 | _ACEOF |
| 8074 | rm -f conftest.$ac_objext |
| 8075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8076 | (eval $ac_compile) 2>&5 |
| 8077 | ac_status=$? |
| 8078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8079 | (exit $ac_status); } && |
| 8080 | { ac_try='test -s conftest.$ac_objext' |
| 8081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8082 | (eval $ac_try) 2>&5 |
| 8083 | ac_status=$? |
| 8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8085 | (exit $ac_status); }; }; then |
| 8086 | ac_cv_type_fpos_t=yes |
| 8087 | else |
| 8088 | echo "$as_me: failed program was:" >&5 |
| 8089 | cat conftest.$ac_ext >&5 |
| 8090 | ac_cv_type_fpos_t=no |
| 8091 | fi |
| 8092 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8093 | fi |
| 8094 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8095 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8096 | |
| 8097 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8098 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8099 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8101 | else |
| 8102 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8103 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8104 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8105 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8106 | # This bug is HP SR number 8606223364. |
| 8107 | if test "$cross_compiling" = yes; then |
| 8108 | # Depending upon the size, compute the lo and hi bounds. |
| 8109 | cat >conftest.$ac_ext <<_ACEOF |
| 8110 | #line $LINENO "configure" |
| 8111 | #include "confdefs.h" |
| 8112 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8113 | #ifdef F77_DUMMY_MAIN |
| 8114 | # ifdef __cplusplus |
| 8115 | extern "C" |
| 8116 | # endif |
| 8117 | int F77_DUMMY_MAIN() { return 1; } |
| 8118 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8119 | int |
| 8120 | main () |
| 8121 | { |
| 8122 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8123 | test_array [0] = 0 |
| 8124 | |
| 8125 | ; |
| 8126 | return 0; |
| 8127 | } |
| 8128 | _ACEOF |
| 8129 | rm -f conftest.$ac_objext |
| 8130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8131 | (eval $ac_compile) 2>&5 |
| 8132 | ac_status=$? |
| 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8134 | (exit $ac_status); } && |
| 8135 | { ac_try='test -s conftest.$ac_objext' |
| 8136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8137 | (eval $ac_try) 2>&5 |
| 8138 | ac_status=$? |
| 8139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8140 | (exit $ac_status); }; }; then |
| 8141 | ac_lo=0 ac_mid=0 |
| 8142 | while :; do |
| 8143 | cat >conftest.$ac_ext <<_ACEOF |
| 8144 | #line $LINENO "configure" |
| 8145 | #include "confdefs.h" |
| 8146 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8147 | #ifdef F77_DUMMY_MAIN |
| 8148 | # ifdef __cplusplus |
| 8149 | extern "C" |
| 8150 | # endif |
| 8151 | int F77_DUMMY_MAIN() { return 1; } |
| 8152 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8153 | int |
| 8154 | main () |
| 8155 | { |
| 8156 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8157 | test_array [0] = 0 |
| 8158 | |
| 8159 | ; |
| 8160 | return 0; |
| 8161 | } |
| 8162 | _ACEOF |
| 8163 | rm -f conftest.$ac_objext |
| 8164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8165 | (eval $ac_compile) 2>&5 |
| 8166 | ac_status=$? |
| 8167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8168 | (exit $ac_status); } && |
| 8169 | { ac_try='test -s conftest.$ac_objext' |
| 8170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8171 | (eval $ac_try) 2>&5 |
| 8172 | ac_status=$? |
| 8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8174 | (exit $ac_status); }; }; then |
| 8175 | ac_hi=$ac_mid; break |
| 8176 | else |
| 8177 | echo "$as_me: failed program was:" >&5 |
| 8178 | cat conftest.$ac_ext >&5 |
| 8179 | ac_lo=`expr $ac_mid + 1` |
| 8180 | if test $ac_lo -le $ac_mid; then |
| 8181 | ac_lo= ac_hi= |
| 8182 | break |
| 8183 | fi |
| 8184 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8185 | fi |
| 8186 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8187 | done |
| 8188 | else |
| 8189 | echo "$as_me: failed program was:" >&5 |
| 8190 | cat conftest.$ac_ext >&5 |
| 8191 | cat >conftest.$ac_ext <<_ACEOF |
| 8192 | #line $LINENO "configure" |
| 8193 | #include "confdefs.h" |
| 8194 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8195 | #ifdef F77_DUMMY_MAIN |
| 8196 | # ifdef __cplusplus |
| 8197 | extern "C" |
| 8198 | # endif |
| 8199 | int F77_DUMMY_MAIN() { return 1; } |
| 8200 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8201 | int |
| 8202 | main () |
| 8203 | { |
| 8204 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8205 | test_array [0] = 0 |
| 8206 | |
| 8207 | ; |
| 8208 | return 0; |
| 8209 | } |
| 8210 | _ACEOF |
| 8211 | rm -f conftest.$ac_objext |
| 8212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8213 | (eval $ac_compile) 2>&5 |
| 8214 | ac_status=$? |
| 8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8216 | (exit $ac_status); } && |
| 8217 | { ac_try='test -s conftest.$ac_objext' |
| 8218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8219 | (eval $ac_try) 2>&5 |
| 8220 | ac_status=$? |
| 8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8222 | (exit $ac_status); }; }; then |
| 8223 | ac_hi=-1 ac_mid=-1 |
| 8224 | while :; do |
| 8225 | cat >conftest.$ac_ext <<_ACEOF |
| 8226 | #line $LINENO "configure" |
| 8227 | #include "confdefs.h" |
| 8228 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8229 | #ifdef F77_DUMMY_MAIN |
| 8230 | # ifdef __cplusplus |
| 8231 | extern "C" |
| 8232 | # endif |
| 8233 | int F77_DUMMY_MAIN() { return 1; } |
| 8234 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8235 | int |
| 8236 | main () |
| 8237 | { |
| 8238 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8239 | test_array [0] = 0 |
| 8240 | |
| 8241 | ; |
| 8242 | return 0; |
| 8243 | } |
| 8244 | _ACEOF |
| 8245 | rm -f conftest.$ac_objext |
| 8246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8247 | (eval $ac_compile) 2>&5 |
| 8248 | ac_status=$? |
| 8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8250 | (exit $ac_status); } && |
| 8251 | { ac_try='test -s conftest.$ac_objext' |
| 8252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8253 | (eval $ac_try) 2>&5 |
| 8254 | ac_status=$? |
| 8255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8256 | (exit $ac_status); }; }; then |
| 8257 | ac_lo=$ac_mid; break |
| 8258 | else |
| 8259 | echo "$as_me: failed program was:" >&5 |
| 8260 | cat conftest.$ac_ext >&5 |
| 8261 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8262 | if test $ac_mid -le $ac_hi; then |
| 8263 | ac_lo= ac_hi= |
| 8264 | break |
| 8265 | fi |
| 8266 | ac_mid=`expr 2 '*' $ac_mid` |
| 8267 | fi |
| 8268 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8269 | done |
| 8270 | else |
| 8271 | echo "$as_me: failed program was:" >&5 |
| 8272 | cat conftest.$ac_ext >&5 |
| 8273 | ac_lo= ac_hi= |
| 8274 | fi |
| 8275 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8276 | fi |
| 8277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8278 | # Binary search between lo and hi bounds. |
| 8279 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8280 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8281 | cat >conftest.$ac_ext <<_ACEOF |
| 8282 | #line $LINENO "configure" |
| 8283 | #include "confdefs.h" |
| 8284 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8285 | #ifdef F77_DUMMY_MAIN |
| 8286 | # ifdef __cplusplus |
| 8287 | extern "C" |
| 8288 | # endif |
| 8289 | int F77_DUMMY_MAIN() { return 1; } |
| 8290 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | int |
| 8292 | main () |
| 8293 | { |
| 8294 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8295 | test_array [0] = 0 |
| 8296 | |
| 8297 | ; |
| 8298 | return 0; |
| 8299 | } |
| 8300 | _ACEOF |
| 8301 | rm -f conftest.$ac_objext |
| 8302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8303 | (eval $ac_compile) 2>&5 |
| 8304 | ac_status=$? |
| 8305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8306 | (exit $ac_status); } && |
| 8307 | { ac_try='test -s conftest.$ac_objext' |
| 8308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8309 | (eval $ac_try) 2>&5 |
| 8310 | ac_status=$? |
| 8311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8312 | (exit $ac_status); }; }; then |
| 8313 | ac_hi=$ac_mid |
| 8314 | else |
| 8315 | echo "$as_me: failed program was:" >&5 |
| 8316 | cat conftest.$ac_ext >&5 |
| 8317 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8318 | fi |
| 8319 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8320 | done |
| 8321 | case $ac_lo in |
| 8322 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 8323 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8324 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8325 | { (exit 1); exit 1; }; } ;; |
| 8326 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8327 | else |
| 8328 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8329 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8330 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8331 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | cat >conftest.$ac_ext <<_ACEOF |
| 8334 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8335 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8336 | $ac_includes_default |
| 8337 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8338 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8339 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8340 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8341 | #ifdef F77_DUMMY_MAIN |
| 8342 | # ifdef __cplusplus |
| 8343 | extern "C" |
| 8344 | # endif |
| 8345 | int F77_DUMMY_MAIN() { return 1; } |
| 8346 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8347 | int |
| 8348 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8349 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8350 | |
| 8351 | FILE *f = fopen ("conftest.val", "w"); |
| 8352 | if (! f) |
| 8353 | exit (1); |
| 8354 | if (((long) (sizeof (fpos_t))) < 0) |
| 8355 | { |
| 8356 | long i = longval (); |
| 8357 | if (i != ((long) (sizeof (fpos_t)))) |
| 8358 | exit (1); |
| 8359 | fprintf (f, "%ld\n", i); |
| 8360 | } |
| 8361 | else |
| 8362 | { |
| 8363 | unsigned long i = ulongval (); |
| 8364 | if (i != ((long) (sizeof (fpos_t)))) |
| 8365 | exit (1); |
| 8366 | fprintf (f, "%lu\n", i); |
| 8367 | } |
| 8368 | exit (ferror (f) || fclose (f) != 0); |
| 8369 | |
| 8370 | ; |
| 8371 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8372 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | _ACEOF |
| 8374 | rm -f conftest$ac_exeext |
| 8375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8376 | (eval $ac_link) 2>&5 |
| 8377 | ac_status=$? |
| 8378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8381 | (eval $ac_try) 2>&5 |
| 8382 | ac_status=$? |
| 8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8384 | (exit $ac_status); }; }; then |
| 8385 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8387 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8388 | echo "$as_me: failed program was:" >&5 |
| 8389 | cat conftest.$ac_ext >&5 |
| 8390 | ( exit $ac_status ) |
| 8391 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8392 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8393 | { (exit 1); exit 1; }; } |
| 8394 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8395 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 | fi |
| 8397 | fi |
| 8398 | rm -f conftest.val |
| 8399 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8400 | ac_cv_sizeof_fpos_t=0 |
| 8401 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8403 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8404 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8405 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8406 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8408 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8409 | |
| 8410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8412 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8413 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | cat >conftest.$ac_ext <<_ACEOF |
| 8415 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8416 | #include "confdefs.h" |
| 8417 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8418 | #ifdef F77_DUMMY_MAIN |
| 8419 | # ifdef __cplusplus |
| 8420 | extern "C" |
| 8421 | # endif |
| 8422 | int F77_DUMMY_MAIN() { return 1; } |
| 8423 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | int |
| 8425 | main () |
| 8426 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8427 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8428 | ; |
| 8429 | return 0; |
| 8430 | } |
| 8431 | _ACEOF |
| 8432 | rm -f conftest.$ac_objext |
| 8433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8434 | (eval $ac_compile) 2>&5 |
| 8435 | ac_status=$? |
| 8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8437 | (exit $ac_status); } && |
| 8438 | { ac_try='test -s conftest.$ac_objext' |
| 8439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8440 | (eval $ac_try) 2>&5 |
| 8441 | ac_status=$? |
| 8442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8443 | (exit $ac_status); }; }; then |
| 8444 | |
| 8445 | |
| 8446 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8447 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8448 | _ACEOF |
| 8449 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8450 | have_long_long=yes |
| 8451 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | echo "$as_me: failed program was:" >&5 |
| 8454 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8455 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8457 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8458 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8459 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8460 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8461 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8462 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8464 | else |
| 8465 | cat >conftest.$ac_ext <<_ACEOF |
| 8466 | #line $LINENO "configure" |
| 8467 | #include "confdefs.h" |
| 8468 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8469 | #ifdef F77_DUMMY_MAIN |
| 8470 | # ifdef __cplusplus |
| 8471 | extern "C" |
| 8472 | # endif |
| 8473 | int F77_DUMMY_MAIN() { return 1; } |
| 8474 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8475 | int |
| 8476 | main () |
| 8477 | { |
| 8478 | if ((long long *) 0) |
| 8479 | return 0; |
| 8480 | if (sizeof (long long)) |
| 8481 | return 0; |
| 8482 | ; |
| 8483 | return 0; |
| 8484 | } |
| 8485 | _ACEOF |
| 8486 | rm -f conftest.$ac_objext |
| 8487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8488 | (eval $ac_compile) 2>&5 |
| 8489 | ac_status=$? |
| 8490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8491 | (exit $ac_status); } && |
| 8492 | { ac_try='test -s conftest.$ac_objext' |
| 8493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8494 | (eval $ac_try) 2>&5 |
| 8495 | ac_status=$? |
| 8496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8497 | (exit $ac_status); }; }; then |
| 8498 | ac_cv_type_long_long=yes |
| 8499 | else |
| 8500 | echo "$as_me: failed program was:" >&5 |
| 8501 | cat conftest.$ac_ext >&5 |
| 8502 | ac_cv_type_long_long=no |
| 8503 | fi |
| 8504 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8505 | fi |
| 8506 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8507 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8508 | |
| 8509 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8510 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8511 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8513 | else |
| 8514 | if test "$ac_cv_type_long_long" = yes; then |
| 8515 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8516 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8517 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8518 | # This bug is HP SR number 8606223364. |
| 8519 | if test "$cross_compiling" = yes; then |
| 8520 | # Depending upon the size, compute the lo and hi bounds. |
| 8521 | cat >conftest.$ac_ext <<_ACEOF |
| 8522 | #line $LINENO "configure" |
| 8523 | #include "confdefs.h" |
| 8524 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8525 | #ifdef F77_DUMMY_MAIN |
| 8526 | # ifdef __cplusplus |
| 8527 | extern "C" |
| 8528 | # endif |
| 8529 | int F77_DUMMY_MAIN() { return 1; } |
| 8530 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | int |
| 8532 | main () |
| 8533 | { |
| 8534 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8535 | test_array [0] = 0 |
| 8536 | |
| 8537 | ; |
| 8538 | return 0; |
| 8539 | } |
| 8540 | _ACEOF |
| 8541 | rm -f conftest.$ac_objext |
| 8542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8543 | (eval $ac_compile) 2>&5 |
| 8544 | ac_status=$? |
| 8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8546 | (exit $ac_status); } && |
| 8547 | { ac_try='test -s conftest.$ac_objext' |
| 8548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8549 | (eval $ac_try) 2>&5 |
| 8550 | ac_status=$? |
| 8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8552 | (exit $ac_status); }; }; then |
| 8553 | ac_lo=0 ac_mid=0 |
| 8554 | while :; do |
| 8555 | cat >conftest.$ac_ext <<_ACEOF |
| 8556 | #line $LINENO "configure" |
| 8557 | #include "confdefs.h" |
| 8558 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8559 | #ifdef F77_DUMMY_MAIN |
| 8560 | # ifdef __cplusplus |
| 8561 | extern "C" |
| 8562 | # endif |
| 8563 | int F77_DUMMY_MAIN() { return 1; } |
| 8564 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8565 | int |
| 8566 | main () |
| 8567 | { |
| 8568 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8569 | test_array [0] = 0 |
| 8570 | |
| 8571 | ; |
| 8572 | return 0; |
| 8573 | } |
| 8574 | _ACEOF |
| 8575 | rm -f conftest.$ac_objext |
| 8576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8577 | (eval $ac_compile) 2>&5 |
| 8578 | ac_status=$? |
| 8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8580 | (exit $ac_status); } && |
| 8581 | { ac_try='test -s conftest.$ac_objext' |
| 8582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8583 | (eval $ac_try) 2>&5 |
| 8584 | ac_status=$? |
| 8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8586 | (exit $ac_status); }; }; then |
| 8587 | ac_hi=$ac_mid; break |
| 8588 | else |
| 8589 | echo "$as_me: failed program was:" >&5 |
| 8590 | cat conftest.$ac_ext >&5 |
| 8591 | ac_lo=`expr $ac_mid + 1` |
| 8592 | if test $ac_lo -le $ac_mid; then |
| 8593 | ac_lo= ac_hi= |
| 8594 | break |
| 8595 | fi |
| 8596 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8597 | fi |
| 8598 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8599 | done |
| 8600 | else |
| 8601 | echo "$as_me: failed program was:" >&5 |
| 8602 | cat conftest.$ac_ext >&5 |
| 8603 | cat >conftest.$ac_ext <<_ACEOF |
| 8604 | #line $LINENO "configure" |
| 8605 | #include "confdefs.h" |
| 8606 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8607 | #ifdef F77_DUMMY_MAIN |
| 8608 | # ifdef __cplusplus |
| 8609 | extern "C" |
| 8610 | # endif |
| 8611 | int F77_DUMMY_MAIN() { return 1; } |
| 8612 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8613 | int |
| 8614 | main () |
| 8615 | { |
| 8616 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8617 | test_array [0] = 0 |
| 8618 | |
| 8619 | ; |
| 8620 | return 0; |
| 8621 | } |
| 8622 | _ACEOF |
| 8623 | rm -f conftest.$ac_objext |
| 8624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8625 | (eval $ac_compile) 2>&5 |
| 8626 | ac_status=$? |
| 8627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8628 | (exit $ac_status); } && |
| 8629 | { ac_try='test -s conftest.$ac_objext' |
| 8630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8631 | (eval $ac_try) 2>&5 |
| 8632 | ac_status=$? |
| 8633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8634 | (exit $ac_status); }; }; then |
| 8635 | ac_hi=-1 ac_mid=-1 |
| 8636 | while :; do |
| 8637 | cat >conftest.$ac_ext <<_ACEOF |
| 8638 | #line $LINENO "configure" |
| 8639 | #include "confdefs.h" |
| 8640 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8641 | #ifdef F77_DUMMY_MAIN |
| 8642 | # ifdef __cplusplus |
| 8643 | extern "C" |
| 8644 | # endif |
| 8645 | int F77_DUMMY_MAIN() { return 1; } |
| 8646 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | int |
| 8648 | main () |
| 8649 | { |
| 8650 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8651 | test_array [0] = 0 |
| 8652 | |
| 8653 | ; |
| 8654 | return 0; |
| 8655 | } |
| 8656 | _ACEOF |
| 8657 | rm -f conftest.$ac_objext |
| 8658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8659 | (eval $ac_compile) 2>&5 |
| 8660 | ac_status=$? |
| 8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8662 | (exit $ac_status); } && |
| 8663 | { ac_try='test -s conftest.$ac_objext' |
| 8664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8665 | (eval $ac_try) 2>&5 |
| 8666 | ac_status=$? |
| 8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8668 | (exit $ac_status); }; }; then |
| 8669 | ac_lo=$ac_mid; break |
| 8670 | else |
| 8671 | echo "$as_me: failed program was:" >&5 |
| 8672 | cat conftest.$ac_ext >&5 |
| 8673 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8674 | if test $ac_mid -le $ac_hi; then |
| 8675 | ac_lo= ac_hi= |
| 8676 | break |
| 8677 | fi |
| 8678 | ac_mid=`expr 2 '*' $ac_mid` |
| 8679 | fi |
| 8680 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8681 | done |
| 8682 | else |
| 8683 | echo "$as_me: failed program was:" >&5 |
| 8684 | cat conftest.$ac_ext >&5 |
| 8685 | ac_lo= ac_hi= |
| 8686 | fi |
| 8687 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8688 | fi |
| 8689 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8690 | # Binary search between lo and hi bounds. |
| 8691 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8692 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8693 | cat >conftest.$ac_ext <<_ACEOF |
| 8694 | #line $LINENO "configure" |
| 8695 | #include "confdefs.h" |
| 8696 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8697 | #ifdef F77_DUMMY_MAIN |
| 8698 | # ifdef __cplusplus |
| 8699 | extern "C" |
| 8700 | # endif |
| 8701 | int F77_DUMMY_MAIN() { return 1; } |
| 8702 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8703 | int |
| 8704 | main () |
| 8705 | { |
| 8706 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8707 | test_array [0] = 0 |
| 8708 | |
| 8709 | ; |
| 8710 | return 0; |
| 8711 | } |
| 8712 | _ACEOF |
| 8713 | rm -f conftest.$ac_objext |
| 8714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8715 | (eval $ac_compile) 2>&5 |
| 8716 | ac_status=$? |
| 8717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8718 | (exit $ac_status); } && |
| 8719 | { ac_try='test -s conftest.$ac_objext' |
| 8720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8721 | (eval $ac_try) 2>&5 |
| 8722 | ac_status=$? |
| 8723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8724 | (exit $ac_status); }; }; then |
| 8725 | ac_hi=$ac_mid |
| 8726 | else |
| 8727 | echo "$as_me: failed program was:" >&5 |
| 8728 | cat conftest.$ac_ext >&5 |
| 8729 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8730 | fi |
| 8731 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8732 | done |
| 8733 | case $ac_lo in |
| 8734 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8735 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8736 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8737 | { (exit 1); exit 1; }; } ;; |
| 8738 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8739 | else |
| 8740 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8741 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8742 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8743 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 | cat >conftest.$ac_ext <<_ACEOF |
| 8746 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8747 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8748 | $ac_includes_default |
| 8749 | long longval () { return (long) (sizeof (long long)); } |
| 8750 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8751 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8752 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8753 | #ifdef F77_DUMMY_MAIN |
| 8754 | # ifdef __cplusplus |
| 8755 | extern "C" |
| 8756 | # endif |
| 8757 | int F77_DUMMY_MAIN() { return 1; } |
| 8758 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8759 | int |
| 8760 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8761 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8762 | |
| 8763 | FILE *f = fopen ("conftest.val", "w"); |
| 8764 | if (! f) |
| 8765 | exit (1); |
| 8766 | if (((long) (sizeof (long long))) < 0) |
| 8767 | { |
| 8768 | long i = longval (); |
| 8769 | if (i != ((long) (sizeof (long long)))) |
| 8770 | exit (1); |
| 8771 | fprintf (f, "%ld\n", i); |
| 8772 | } |
| 8773 | else |
| 8774 | { |
| 8775 | unsigned long i = ulongval (); |
| 8776 | if (i != ((long) (sizeof (long long)))) |
| 8777 | exit (1); |
| 8778 | fprintf (f, "%lu\n", i); |
| 8779 | } |
| 8780 | exit (ferror (f) || fclose (f) != 0); |
| 8781 | |
| 8782 | ; |
| 8783 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8784 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | _ACEOF |
| 8786 | rm -f conftest$ac_exeext |
| 8787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8788 | (eval $ac_link) 2>&5 |
| 8789 | ac_status=$? |
| 8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8791 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8793 | (eval $ac_try) 2>&5 |
| 8794 | ac_status=$? |
| 8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8796 | (exit $ac_status); }; }; then |
| 8797 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8799 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8800 | echo "$as_me: failed program was:" >&5 |
| 8801 | cat conftest.$ac_ext >&5 |
| 8802 | ( exit $ac_status ) |
| 8803 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8804 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8805 | { (exit 1); exit 1; }; } |
| 8806 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8807 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | fi |
| 8809 | fi |
| 8810 | rm -f conftest.val |
| 8811 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8812 | ac_cv_sizeof_long_long=0 |
| 8813 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8816 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8817 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8818 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8820 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8821 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8822 | fi |
| 8823 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8824 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8825 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8826 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8827 | cat >conftest.$ac_ext <<_ACEOF |
| 8828 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8829 | #include "confdefs.h" |
| 8830 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8831 | #ifdef F77_DUMMY_MAIN |
| 8832 | # ifdef __cplusplus |
| 8833 | extern "C" |
| 8834 | # endif |
| 8835 | int F77_DUMMY_MAIN() { return 1; } |
| 8836 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | int |
| 8838 | main () |
| 8839 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8840 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8841 | ; |
| 8842 | return 0; |
| 8843 | } |
| 8844 | _ACEOF |
| 8845 | rm -f conftest.$ac_objext |
| 8846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8847 | (eval $ac_compile) 2>&5 |
| 8848 | ac_status=$? |
| 8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8850 | (exit $ac_status); } && |
| 8851 | { ac_try='test -s conftest.$ac_objext' |
| 8852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8853 | (eval $ac_try) 2>&5 |
| 8854 | ac_status=$? |
| 8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8856 | (exit $ac_status); }; }; then |
| 8857 | |
| 8858 | |
| 8859 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8860 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8861 | _ACEOF |
| 8862 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8863 | have_uintptr_t=yes |
| 8864 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 | echo "$as_me: failed program was:" >&5 |
| 8867 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8870 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8871 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8872 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8874 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8875 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8877 | else |
| 8878 | cat >conftest.$ac_ext <<_ACEOF |
| 8879 | #line $LINENO "configure" |
| 8880 | #include "confdefs.h" |
| 8881 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8882 | #ifdef F77_DUMMY_MAIN |
| 8883 | # ifdef __cplusplus |
| 8884 | extern "C" |
| 8885 | # endif |
| 8886 | int F77_DUMMY_MAIN() { return 1; } |
| 8887 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | int |
| 8889 | main () |
| 8890 | { |
| 8891 | if ((uintptr_t *) 0) |
| 8892 | return 0; |
| 8893 | if (sizeof (uintptr_t)) |
| 8894 | return 0; |
| 8895 | ; |
| 8896 | return 0; |
| 8897 | } |
| 8898 | _ACEOF |
| 8899 | rm -f conftest.$ac_objext |
| 8900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8901 | (eval $ac_compile) 2>&5 |
| 8902 | ac_status=$? |
| 8903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8904 | (exit $ac_status); } && |
| 8905 | { ac_try='test -s conftest.$ac_objext' |
| 8906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8907 | (eval $ac_try) 2>&5 |
| 8908 | ac_status=$? |
| 8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8910 | (exit $ac_status); }; }; then |
| 8911 | ac_cv_type_uintptr_t=yes |
| 8912 | else |
| 8913 | echo "$as_me: failed program was:" >&5 |
| 8914 | cat conftest.$ac_ext >&5 |
| 8915 | ac_cv_type_uintptr_t=no |
| 8916 | fi |
| 8917 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8918 | fi |
| 8919 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8920 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8921 | |
| 8922 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8923 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8924 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8926 | else |
| 8927 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8928 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8929 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8930 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8931 | # This bug is HP SR number 8606223364. |
| 8932 | if test "$cross_compiling" = yes; then |
| 8933 | # Depending upon the size, compute the lo and hi bounds. |
| 8934 | cat >conftest.$ac_ext <<_ACEOF |
| 8935 | #line $LINENO "configure" |
| 8936 | #include "confdefs.h" |
| 8937 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8938 | #ifdef F77_DUMMY_MAIN |
| 8939 | # ifdef __cplusplus |
| 8940 | extern "C" |
| 8941 | # endif |
| 8942 | int F77_DUMMY_MAIN() { return 1; } |
| 8943 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | int |
| 8945 | main () |
| 8946 | { |
| 8947 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8948 | test_array [0] = 0 |
| 8949 | |
| 8950 | ; |
| 8951 | return 0; |
| 8952 | } |
| 8953 | _ACEOF |
| 8954 | rm -f conftest.$ac_objext |
| 8955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8956 | (eval $ac_compile) 2>&5 |
| 8957 | ac_status=$? |
| 8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8959 | (exit $ac_status); } && |
| 8960 | { ac_try='test -s conftest.$ac_objext' |
| 8961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8962 | (eval $ac_try) 2>&5 |
| 8963 | ac_status=$? |
| 8964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8965 | (exit $ac_status); }; }; then |
| 8966 | ac_lo=0 ac_mid=0 |
| 8967 | while :; do |
| 8968 | cat >conftest.$ac_ext <<_ACEOF |
| 8969 | #line $LINENO "configure" |
| 8970 | #include "confdefs.h" |
| 8971 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8972 | #ifdef F77_DUMMY_MAIN |
| 8973 | # ifdef __cplusplus |
| 8974 | extern "C" |
| 8975 | # endif |
| 8976 | int F77_DUMMY_MAIN() { return 1; } |
| 8977 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | int |
| 8979 | main () |
| 8980 | { |
| 8981 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8982 | test_array [0] = 0 |
| 8983 | |
| 8984 | ; |
| 8985 | return 0; |
| 8986 | } |
| 8987 | _ACEOF |
| 8988 | rm -f conftest.$ac_objext |
| 8989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8990 | (eval $ac_compile) 2>&5 |
| 8991 | ac_status=$? |
| 8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8993 | (exit $ac_status); } && |
| 8994 | { ac_try='test -s conftest.$ac_objext' |
| 8995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8996 | (eval $ac_try) 2>&5 |
| 8997 | ac_status=$? |
| 8998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8999 | (exit $ac_status); }; }; then |
| 9000 | ac_hi=$ac_mid; break |
| 9001 | else |
| 9002 | echo "$as_me: failed program was:" >&5 |
| 9003 | cat conftest.$ac_ext >&5 |
| 9004 | ac_lo=`expr $ac_mid + 1` |
| 9005 | if test $ac_lo -le $ac_mid; then |
| 9006 | ac_lo= ac_hi= |
| 9007 | break |
| 9008 | fi |
| 9009 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9010 | fi |
| 9011 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9012 | done |
| 9013 | else |
| 9014 | echo "$as_me: failed program was:" >&5 |
| 9015 | cat conftest.$ac_ext >&5 |
| 9016 | cat >conftest.$ac_ext <<_ACEOF |
| 9017 | #line $LINENO "configure" |
| 9018 | #include "confdefs.h" |
| 9019 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9020 | #ifdef F77_DUMMY_MAIN |
| 9021 | # ifdef __cplusplus |
| 9022 | extern "C" |
| 9023 | # endif |
| 9024 | int F77_DUMMY_MAIN() { return 1; } |
| 9025 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | int |
| 9027 | main () |
| 9028 | { |
| 9029 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9030 | test_array [0] = 0 |
| 9031 | |
| 9032 | ; |
| 9033 | return 0; |
| 9034 | } |
| 9035 | _ACEOF |
| 9036 | rm -f conftest.$ac_objext |
| 9037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9038 | (eval $ac_compile) 2>&5 |
| 9039 | ac_status=$? |
| 9040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9041 | (exit $ac_status); } && |
| 9042 | { ac_try='test -s conftest.$ac_objext' |
| 9043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9044 | (eval $ac_try) 2>&5 |
| 9045 | ac_status=$? |
| 9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9047 | (exit $ac_status); }; }; then |
| 9048 | ac_hi=-1 ac_mid=-1 |
| 9049 | while :; do |
| 9050 | cat >conftest.$ac_ext <<_ACEOF |
| 9051 | #line $LINENO "configure" |
| 9052 | #include "confdefs.h" |
| 9053 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9054 | #ifdef F77_DUMMY_MAIN |
| 9055 | # ifdef __cplusplus |
| 9056 | extern "C" |
| 9057 | # endif |
| 9058 | int F77_DUMMY_MAIN() { return 1; } |
| 9059 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | int |
| 9061 | main () |
| 9062 | { |
| 9063 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9064 | test_array [0] = 0 |
| 9065 | |
| 9066 | ; |
| 9067 | return 0; |
| 9068 | } |
| 9069 | _ACEOF |
| 9070 | rm -f conftest.$ac_objext |
| 9071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9072 | (eval $ac_compile) 2>&5 |
| 9073 | ac_status=$? |
| 9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9075 | (exit $ac_status); } && |
| 9076 | { ac_try='test -s conftest.$ac_objext' |
| 9077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9078 | (eval $ac_try) 2>&5 |
| 9079 | ac_status=$? |
| 9080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9081 | (exit $ac_status); }; }; then |
| 9082 | ac_lo=$ac_mid; break |
| 9083 | else |
| 9084 | echo "$as_me: failed program was:" >&5 |
| 9085 | cat conftest.$ac_ext >&5 |
| 9086 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9087 | if test $ac_mid -le $ac_hi; then |
| 9088 | ac_lo= ac_hi= |
| 9089 | break |
| 9090 | fi |
| 9091 | ac_mid=`expr 2 '*' $ac_mid` |
| 9092 | fi |
| 9093 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9094 | done |
| 9095 | else |
| 9096 | echo "$as_me: failed program was:" >&5 |
| 9097 | cat conftest.$ac_ext >&5 |
| 9098 | ac_lo= ac_hi= |
| 9099 | fi |
| 9100 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9101 | fi |
| 9102 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9103 | # Binary search between lo and hi bounds. |
| 9104 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9105 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9106 | cat >conftest.$ac_ext <<_ACEOF |
| 9107 | #line $LINENO "configure" |
| 9108 | #include "confdefs.h" |
| 9109 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9110 | #ifdef F77_DUMMY_MAIN |
| 9111 | # ifdef __cplusplus |
| 9112 | extern "C" |
| 9113 | # endif |
| 9114 | int F77_DUMMY_MAIN() { return 1; } |
| 9115 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9116 | int |
| 9117 | main () |
| 9118 | { |
| 9119 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9120 | test_array [0] = 0 |
| 9121 | |
| 9122 | ; |
| 9123 | return 0; |
| 9124 | } |
| 9125 | _ACEOF |
| 9126 | rm -f conftest.$ac_objext |
| 9127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9128 | (eval $ac_compile) 2>&5 |
| 9129 | ac_status=$? |
| 9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9131 | (exit $ac_status); } && |
| 9132 | { ac_try='test -s conftest.$ac_objext' |
| 9133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9134 | (eval $ac_try) 2>&5 |
| 9135 | ac_status=$? |
| 9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9137 | (exit $ac_status); }; }; then |
| 9138 | ac_hi=$ac_mid |
| 9139 | else |
| 9140 | echo "$as_me: failed program was:" >&5 |
| 9141 | cat conftest.$ac_ext >&5 |
| 9142 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9143 | fi |
| 9144 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9145 | done |
| 9146 | case $ac_lo in |
| 9147 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 9148 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 9149 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 9150 | { (exit 1); exit 1; }; } ;; |
| 9151 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9152 | else |
| 9153 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9154 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 9155 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 9156 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9158 | cat >conftest.$ac_ext <<_ACEOF |
| 9159 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9160 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | $ac_includes_default |
| 9162 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9163 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9164 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9166 | #ifdef F77_DUMMY_MAIN |
| 9167 | # ifdef __cplusplus |
| 9168 | extern "C" |
| 9169 | # endif |
| 9170 | int F77_DUMMY_MAIN() { return 1; } |
| 9171 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | int |
| 9173 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9174 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9175 | |
| 9176 | FILE *f = fopen ("conftest.val", "w"); |
| 9177 | if (! f) |
| 9178 | exit (1); |
| 9179 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9180 | { |
| 9181 | long i = longval (); |
| 9182 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9183 | exit (1); |
| 9184 | fprintf (f, "%ld\n", i); |
| 9185 | } |
| 9186 | else |
| 9187 | { |
| 9188 | unsigned long i = ulongval (); |
| 9189 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9190 | exit (1); |
| 9191 | fprintf (f, "%lu\n", i); |
| 9192 | } |
| 9193 | exit (ferror (f) || fclose (f) != 0); |
| 9194 | |
| 9195 | ; |
| 9196 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9197 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | _ACEOF |
| 9199 | rm -f conftest$ac_exeext |
| 9200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9201 | (eval $ac_link) 2>&5 |
| 9202 | ac_status=$? |
| 9203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9206 | (eval $ac_try) 2>&5 |
| 9207 | ac_status=$? |
| 9208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9209 | (exit $ac_status); }; }; then |
| 9210 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9212 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9213 | echo "$as_me: failed program was:" >&5 |
| 9214 | cat conftest.$ac_ext >&5 |
| 9215 | ( exit $ac_status ) |
| 9216 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 9217 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 9218 | { (exit 1); exit 1; }; } |
| 9219 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9220 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9221 | fi |
| 9222 | fi |
| 9223 | rm -f conftest.val |
| 9224 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9225 | ac_cv_sizeof_uintptr_t=0 |
| 9226 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9227 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9228 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9229 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9230 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9231 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9232 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9233 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9234 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9235 | fi |
| 9236 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9237 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9239 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9240 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9242 | else |
| 9243 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9244 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9246 | cat >conftest.$ac_ext <<_ACEOF |
| 9247 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9248 | #include "confdefs.h" |
| 9249 | #include <stdio.h> |
| 9250 | #include <sys/types.h> |
| 9251 | main() |
| 9252 | { |
| 9253 | FILE *f=fopen("conftestval", "w"); |
| 9254 | if (!f) exit(1); |
| 9255 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9256 | exit(0); |
| 9257 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9258 | _ACEOF |
| 9259 | rm -f conftest$ac_exeext |
| 9260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9261 | (eval $ac_link) 2>&5 |
| 9262 | ac_status=$? |
| 9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9266 | (eval $ac_try) 2>&5 |
| 9267 | ac_status=$? |
| 9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9269 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9270 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9273 | echo "$as_me: failed program was:" >&5 |
| 9274 | cat conftest.$ac_ext >&5 |
| 9275 | ( exit $ac_status ) |
| 9276 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9277 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9278 | 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] | 9279 | fi |
| 9280 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9281 | fi |
| 9282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9283 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9284 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9285 | |
| 9286 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9287 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9289 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9291 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9292 | 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] | 9293 | if test "$have_long_long" = yes -a \ |
| 9294 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9295 | "$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] | 9296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | cat >>confdefs.h <<\_ACEOF |
| 9298 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9299 | _ACEOF |
| 9300 | |
| 9301 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9302 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9304 | echo "$as_me:$LINENO: result: no" >&5 |
| 9305 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9306 | fi |
| 9307 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9308 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9309 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9310 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9311 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9313 | else |
| 9314 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9315 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9317 | cat >conftest.$ac_ext <<_ACEOF |
| 9318 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9319 | #include "confdefs.h" |
| 9320 | #include <stdio.h> |
| 9321 | #include <time.h> |
| 9322 | main() |
| 9323 | { |
| 9324 | FILE *f=fopen("conftestval", "w"); |
| 9325 | if (!f) exit(1); |
| 9326 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9327 | exit(0); |
| 9328 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9329 | _ACEOF |
| 9330 | rm -f conftest$ac_exeext |
| 9331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9332 | (eval $ac_link) 2>&5 |
| 9333 | ac_status=$? |
| 9334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9337 | (eval $ac_try) 2>&5 |
| 9338 | ac_status=$? |
| 9339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9340 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9341 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9343 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9344 | echo "$as_me: failed program was:" >&5 |
| 9345 | cat conftest.$ac_ext >&5 |
| 9346 | ( exit $ac_status ) |
| 9347 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9348 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9349 | 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] | 9350 | fi |
| 9351 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9352 | fi |
| 9353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9355 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9356 | |
| 9357 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9358 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9359 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9360 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9361 | |
| 9362 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9363 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9364 | ac_save_cc="$CC" |
| 9365 | if test "$ac_cv_kpthread" = "yes" |
| 9366 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9367 | elif test "$ac_cv_kthread" = "yes" |
| 9368 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9369 | elif test "$ac_cv_pthread" = "yes" |
| 9370 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9372 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9373 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9374 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9375 | cat >conftest.$ac_ext <<_ACEOF |
| 9376 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9377 | #include "confdefs.h" |
| 9378 | #include <pthread.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9379 | #ifdef F77_DUMMY_MAIN |
| 9380 | # ifdef __cplusplus |
| 9381 | extern "C" |
| 9382 | # endif |
| 9383 | int F77_DUMMY_MAIN() { return 1; } |
| 9384 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9385 | int |
| 9386 | main () |
| 9387 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9388 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9389 | ; |
| 9390 | return 0; |
| 9391 | } |
| 9392 | _ACEOF |
| 9393 | rm -f conftest.$ac_objext |
| 9394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9395 | (eval $ac_compile) 2>&5 |
| 9396 | ac_status=$? |
| 9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9398 | (exit $ac_status); } && |
| 9399 | { ac_try='test -s conftest.$ac_objext' |
| 9400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9401 | (eval $ac_try) 2>&5 |
| 9402 | ac_status=$? |
| 9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9404 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9405 | have_pthread_t=yes |
| 9406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | echo "$as_me: failed program was:" >&5 |
| 9408 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9409 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9411 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9412 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9413 | if test "$have_pthread_t" = yes ; then |
| 9414 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9415 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9416 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9417 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9419 | else |
| 9420 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9421 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9423 | cat >conftest.$ac_ext <<_ACEOF |
| 9424 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9425 | #include "confdefs.h" |
| 9426 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9427 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9428 | main() |
| 9429 | { |
| 9430 | FILE *f=fopen("conftestval", "w"); |
| 9431 | if (!f) exit(1); |
| 9432 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9433 | exit(0); |
| 9434 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | _ACEOF |
| 9436 | rm -f conftest$ac_exeext |
| 9437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9438 | (eval $ac_link) 2>&5 |
| 9439 | ac_status=$? |
| 9440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9443 | (eval $ac_try) 2>&5 |
| 9444 | ac_status=$? |
| 9445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9446 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9447 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9449 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9450 | echo "$as_me: failed program was:" >&5 |
| 9451 | cat conftest.$ac_ext >&5 |
| 9452 | ( exit $ac_status ) |
| 9453 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9454 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9455 | 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] | 9456 | fi |
| 9457 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9458 | fi |
| 9459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9461 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9462 | |
| 9463 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9464 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9465 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9466 | |
| 9467 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9468 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9471 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9472 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9473 | if test "${enable_toolbox_glue+set}" = set; then |
| 9474 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9477 | |
| 9478 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9480 | case $ac_sys_system/$ac_sys_release in |
| 9481 | Darwin/*) |
| 9482 | enable_toolbox_glue="yes";; |
| 9483 | *) |
| 9484 | enable_toolbox_glue="no";; |
| 9485 | esac |
| 9486 | fi |
| 9487 | case "$enable_toolbox_glue" in |
| 9488 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9489 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9490 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9491 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | |
| 9493 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9494 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9496 | |
| 9497 | ;; |
| 9498 | *) |
| 9499 | extra_frameworks="" |
| 9500 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9501 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9502 | ;; |
| 9503 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9504 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9505 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9506 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9507 | |
| 9508 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9509 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9510 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9511 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9512 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9513 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9514 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9515 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9516 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 9517 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9518 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9519 | esac |
| 9520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9521 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9522 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9523 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9524 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9525 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9526 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9527 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9528 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | cat >>confdefs.h <<\_ACEOF |
| 9531 | #define WITH_NEXT_FRAMEWORK 1 |
| 9532 | _ACEOF |
| 9533 | |
| 9534 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9535 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9536 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9537 | echo "$as_me:$LINENO: result: no" >&5 |
| 9538 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9539 | fi |
| 9540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9541 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9542 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9543 | case $ac_sys_system/$ac_sys_release in |
| 9544 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | cat >>confdefs.h <<\_ACEOF |
| 9547 | #define WITH_DYLD 1 |
| 9548 | _ACEOF |
| 9549 | |
| 9550 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9551 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9552 | ;; |
| 9553 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | echo "$as_me:$LINENO: result: no" >&5 |
| 9555 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9556 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9557 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9558 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9559 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9560 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9561 | |
| 9562 | |
| 9563 | |
| 9564 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9565 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9566 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9567 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9568 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9569 | if test -z "$SO" |
| 9570 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9571 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9572 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9573 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9574 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9575 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 9576 | else |
| 9577 | # this might also be a termcap variable, see #610332 |
| 9578 | echo |
| 9579 | echo '=====================================================================' |
| 9580 | echo '+ +' |
| 9581 | echo '+ WARNING: You have set SO in your environment. +' |
| 9582 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 9583 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 9584 | echo '+ +' |
| 9585 | echo '=====================================================================' |
| 9586 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9587 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9588 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9589 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9590 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9591 | # -- "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] | 9592 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9593 | # 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] | 9594 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9595 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9596 | if test -z "$LDSHARED" |
| 9597 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9598 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9599 | AIX*) |
| 9600 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9601 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9602 | ;; |
| 9603 | BeOS*) |
| 9604 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9605 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9606 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9607 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9608 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9609 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9610 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9611 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9612 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9613 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9614 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9615 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9616 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9617 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9618 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9619 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9620 | if test "$enable_framework" ; then |
| 9621 | # Link against the framework. All externals should be defined. |
| 9622 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9623 | else |
| 9624 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9625 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9626 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9627 | Darwin/*) |
| 9628 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9629 | if test "$enable_framework" ; then |
| 9630 | # Link against the framework. All externals should be defined. |
| 9631 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9632 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9633 | # No framework, use the Python app as bundle-loader |
| 9634 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9635 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9636 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9637 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9638 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9639 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9640 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9641 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9642 | then |
| 9643 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9644 | else |
| 9645 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9646 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9647 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9648 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9649 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9650 | then LDSHARED='$(CC) -shared' |
| 9651 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9652 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9653 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9654 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9655 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9656 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9657 | *) LDSHARED="ld";; |
| 9658 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9659 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9660 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9661 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9662 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9663 | # 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] | 9664 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9665 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9666 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9667 | if test -z "$CCSHARED" |
| 9668 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9669 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9670 | SunOS*) if test "$GCC" = yes; |
| 9671 | then CCSHARED="-fPIC"; |
| 9672 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9673 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9674 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9675 | else CCSHARED="+z"; |
| 9676 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9677 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9678 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9679 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9680 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9681 | if test "$GCC" = "yes" |
| 9682 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9683 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9684 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9685 | SCO_SV*) |
| 9686 | if test "$GCC" = "yes" |
| 9687 | then CCSHARED="-fPIC" |
| 9688 | else CCSHARED="-Kpic -belf" |
| 9689 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9690 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9691 | IRIX*/6*) case $CC in |
| 9692 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9693 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9694 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9695 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9696 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9697 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9698 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9699 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9700 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9701 | # 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] | 9702 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9703 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9704 | if test -z "$LINKFORSHARED" |
| 9705 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9706 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9707 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9708 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9709 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9710 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9711 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9712 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9713 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9714 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9715 | # -u __dummy makes the linker aware of the objc runtime |
| 9716 | # in System.framework; otherwise, __objcInit (referenced in |
| 9717 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9718 | # loading of any modules which reference it in System.framework. |
| 9719 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9720 | # not used by the core itself but which needs to be in the core so |
| 9721 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 9722 | # -prebind is no longer used, because it actually seems to give a |
| 9723 | # slowdown in stead of a speedup, maybe due to the large number of |
| 9724 | # dynamic loads Python does. |
| 9725 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9726 | if test "$enable_framework" |
| 9727 | then |
| 9728 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9729 | fi |
| 9730 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9731 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9732 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9733 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9735 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9736 | then |
| 9737 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9738 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9739 | SunOS/5*) case $CC in |
| 9740 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9741 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9742 | then |
| 9743 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9744 | fi;; |
| 9745 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9746 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9747 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9749 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9750 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9751 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9753 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9754 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9755 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9756 | case $ac_sys_system in |
| 9757 | CYGWIN*) |
| 9758 | # Cygwin needs CCSHARED when building extension DLLs |
| 9759 | # but not when building the interpreter DLL. |
| 9760 | CFLAGSFORSHARED='';; |
| 9761 | *) |
| 9762 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9763 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9764 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9765 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9766 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9767 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9768 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9769 | # library (with --enable-shared). |
| 9770 | # 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] | 9771 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9772 | # if it is not required, since it creates a dependency of the shared library |
| 9773 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9774 | # don't need to link LIBS explicitly. The default should be only changed |
| 9775 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9776 | |
| 9777 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9778 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9779 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9780 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9781 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9782 | esac |
| 9783 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9784 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9785 | |
| 9786 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9787 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9788 | |
| 9789 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9790 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9791 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9795 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | cat >conftest.$ac_ext <<_ACEOF |
| 9797 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9798 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9800 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9801 | #ifdef __cplusplus |
| 9802 | extern "C" |
| 9803 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9804 | /* 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] | 9805 | builtin and then its argument prototype would still apply. */ |
| 9806 | char dlopen (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9807 | #ifdef F77_DUMMY_MAIN |
| 9808 | # ifdef __cplusplus |
| 9809 | extern "C" |
| 9810 | # endif |
| 9811 | int F77_DUMMY_MAIN() { return 1; } |
| 9812 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | int |
| 9814 | main () |
| 9815 | { |
| 9816 | dlopen (); |
| 9817 | ; |
| 9818 | return 0; |
| 9819 | } |
| 9820 | _ACEOF |
| 9821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9823 | (eval $ac_link) 2>&5 |
| 9824 | ac_status=$? |
| 9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9826 | (exit $ac_status); } && |
| 9827 | { ac_try='test -s conftest$ac_exeext' |
| 9828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9829 | (eval $ac_try) 2>&5 |
| 9830 | ac_status=$? |
| 9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9832 | (exit $ac_status); }; }; then |
| 9833 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | echo "$as_me: failed program was:" >&5 |
| 9836 | cat conftest.$ac_ext >&5 |
| 9837 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9838 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9839 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9840 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9841 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9842 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9843 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9844 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9845 | cat >>confdefs.h <<_ACEOF |
| 9846 | #define HAVE_LIBDL 1 |
| 9847 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9848 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9849 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9850 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9851 | fi |
| 9852 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9853 | |
| 9854 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9855 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9856 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9860 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | cat >conftest.$ac_ext <<_ACEOF |
| 9862 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9863 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9864 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9865 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9866 | #ifdef __cplusplus |
| 9867 | extern "C" |
| 9868 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9869 | /* 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] | 9870 | builtin and then its argument prototype would still apply. */ |
| 9871 | char shl_load (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9872 | #ifdef F77_DUMMY_MAIN |
| 9873 | # ifdef __cplusplus |
| 9874 | extern "C" |
| 9875 | # endif |
| 9876 | int F77_DUMMY_MAIN() { return 1; } |
| 9877 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | int |
| 9879 | main () |
| 9880 | { |
| 9881 | shl_load (); |
| 9882 | ; |
| 9883 | return 0; |
| 9884 | } |
| 9885 | _ACEOF |
| 9886 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9888 | (eval $ac_link) 2>&5 |
| 9889 | ac_status=$? |
| 9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9891 | (exit $ac_status); } && |
| 9892 | { ac_try='test -s conftest$ac_exeext' |
| 9893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9894 | (eval $ac_try) 2>&5 |
| 9895 | ac_status=$? |
| 9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9897 | (exit $ac_status); }; }; then |
| 9898 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | echo "$as_me: failed program was:" >&5 |
| 9901 | cat conftest.$ac_ext >&5 |
| 9902 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9903 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9905 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9906 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9908 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9909 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9910 | cat >>confdefs.h <<_ACEOF |
| 9911 | #define HAVE_LIBDLD 1 |
| 9912 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9913 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9914 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9915 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9916 | fi |
| 9917 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9918 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9919 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9920 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9922 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9923 | ac_func_search_save_LIBS=$LIBS |
| 9924 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9925 | cat >conftest.$ac_ext <<_ACEOF |
| 9926 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9927 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9929 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | #ifdef __cplusplus |
| 9931 | extern "C" |
| 9932 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9933 | /* 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] | 9934 | builtin and then its argument prototype would still apply. */ |
| 9935 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9936 | #ifdef F77_DUMMY_MAIN |
| 9937 | # ifdef __cplusplus |
| 9938 | extern "C" |
| 9939 | # endif |
| 9940 | int F77_DUMMY_MAIN() { return 1; } |
| 9941 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | int |
| 9943 | main () |
| 9944 | { |
| 9945 | sem_init (); |
| 9946 | ; |
| 9947 | return 0; |
| 9948 | } |
| 9949 | _ACEOF |
| 9950 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9952 | (eval $ac_link) 2>&5 |
| 9953 | ac_status=$? |
| 9954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9955 | (exit $ac_status); } && |
| 9956 | { ac_try='test -s conftest$ac_exeext' |
| 9957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9958 | (eval $ac_try) 2>&5 |
| 9959 | ac_status=$? |
| 9960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9961 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9962 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | echo "$as_me: failed program was:" >&5 |
| 9965 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | 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] | 9968 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9969 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9970 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9971 | cat >conftest.$ac_ext <<_ACEOF |
| 9972 | #line $LINENO "configure" |
| 9973 | #include "confdefs.h" |
| 9974 | |
| 9975 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9976 | #ifdef __cplusplus |
| 9977 | extern "C" |
| 9978 | #endif |
| 9979 | /* We use char because int might match the return type of a gcc2 |
| 9980 | builtin and then its argument prototype would still apply. */ |
| 9981 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9982 | #ifdef F77_DUMMY_MAIN |
| 9983 | # ifdef __cplusplus |
| 9984 | extern "C" |
| 9985 | # endif |
| 9986 | int F77_DUMMY_MAIN() { return 1; } |
| 9987 | #endif |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9988 | int |
| 9989 | main () |
| 9990 | { |
| 9991 | sem_init (); |
| 9992 | ; |
| 9993 | return 0; |
| 9994 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9996 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9998 | (eval $ac_link) 2>&5 |
| 9999 | ac_status=$? |
| 10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10001 | (exit $ac_status); } && |
| 10002 | { ac_try='test -s conftest$ac_exeext' |
| 10003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10004 | (eval $ac_try) 2>&5 |
| 10005 | ac_status=$? |
| 10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10007 | (exit $ac_status); }; }; then |
| 10008 | ac_cv_search_sem_init="-l$ac_lib" |
| 10009 | break |
| 10010 | else |
| 10011 | echo "$as_me: failed program was:" >&5 |
| 10012 | cat conftest.$ac_ext >&5 |
| 10013 | fi |
| 10014 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10015 | done |
| 10016 | fi |
| 10017 | LIBS=$ac_func_search_save_LIBS |
| 10018 | fi |
| 10019 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10020 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10021 | if test "$ac_cv_search_sem_init" != no; then |
| 10022 | 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] | 10023 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10024 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10025 | # 'Real Time' functions on Solaris |
| 10026 | # posix4 on Solaris 2.6 |
| 10027 | # pthread (first!) on Linux |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10028 | # check if we need libintl for locale functions |
| 10029 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10030 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10031 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10033 | else |
| 10034 | ac_check_lib_save_LIBS=$LIBS |
| 10035 | LIBS="-lintl $LIBS" |
| 10036 | cat >conftest.$ac_ext <<_ACEOF |
| 10037 | #line $LINENO "configure" |
| 10038 | #include "confdefs.h" |
| 10039 | |
| 10040 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10041 | #ifdef __cplusplus |
| 10042 | extern "C" |
| 10043 | #endif |
| 10044 | /* We use char because int might match the return type of a gcc2 |
| 10045 | builtin and then its argument prototype would still apply. */ |
| 10046 | char textdomain (); |
| 10047 | #ifdef F77_DUMMY_MAIN |
| 10048 | # ifdef __cplusplus |
| 10049 | extern "C" |
| 10050 | # endif |
| 10051 | int F77_DUMMY_MAIN() { return 1; } |
| 10052 | #endif |
| 10053 | int |
| 10054 | main () |
| 10055 | { |
| 10056 | textdomain (); |
| 10057 | ; |
| 10058 | return 0; |
| 10059 | } |
| 10060 | _ACEOF |
| 10061 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10063 | (eval $ac_link) 2>&5 |
| 10064 | ac_status=$? |
| 10065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10066 | (exit $ac_status); } && |
| 10067 | { ac_try='test -s conftest$ac_exeext' |
| 10068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10069 | (eval $ac_try) 2>&5 |
| 10070 | ac_status=$? |
| 10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10072 | (exit $ac_status); }; }; then |
| 10073 | ac_cv_lib_intl_textdomain=yes |
| 10074 | else |
| 10075 | echo "$as_me: failed program was:" >&5 |
| 10076 | cat conftest.$ac_ext >&5 |
| 10077 | ac_cv_lib_intl_textdomain=no |
| 10078 | fi |
| 10079 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10080 | LIBS=$ac_check_lib_save_LIBS |
| 10081 | fi |
| 10082 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10083 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10084 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10085 | |
| 10086 | cat >>confdefs.h <<\_ACEOF |
| 10087 | #define WITH_LIBINTL 1 |
| 10088 | _ACEOF |
| 10089 | |
| 10090 | fi |
| 10091 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10092 | |
| 10093 | # checks for system dependent C++ extensions support |
| 10094 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10095 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10096 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10097 | cat >conftest.$ac_ext <<_ACEOF |
| 10098 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10099 | #include "confdefs.h" |
| 10100 | #include "/usr/lpp/xlC/include/load.h" |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10101 | #ifdef F77_DUMMY_MAIN |
| 10102 | # ifdef __cplusplus |
| 10103 | extern "C" |
| 10104 | # endif |
| 10105 | int F77_DUMMY_MAIN() { return 1; } |
| 10106 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10107 | int |
| 10108 | main () |
| 10109 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10110 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 | ; |
| 10112 | return 0; |
| 10113 | } |
| 10114 | _ACEOF |
| 10115 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10117 | (eval $ac_link) 2>&5 |
| 10118 | ac_status=$? |
| 10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10120 | (exit $ac_status); } && |
| 10121 | { ac_try='test -s conftest$ac_exeext' |
| 10122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10123 | (eval $ac_try) 2>&5 |
| 10124 | ac_status=$? |
| 10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10126 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | cat >>confdefs.h <<\_ACEOF |
| 10129 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10130 | _ACEOF |
| 10131 | |
| 10132 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10133 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10135 | echo "$as_me: failed program was:" >&5 |
| 10136 | cat conftest.$ac_ext >&5 |
| 10137 | echo "$as_me:$LINENO: result: no" >&5 |
| 10138 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10139 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10141 | *) ;; |
| 10142 | esac |
| 10143 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10144 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 10145 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10146 | # BeOS' sockets are stashed in libnet. |
| 10147 | case "$ac_sys_system" in |
| 10148 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10149 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10150 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10151 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10152 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10155 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10156 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | cat >conftest.$ac_ext <<_ACEOF |
| 10158 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10159 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10160 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10161 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10162 | #ifdef __cplusplus |
| 10163 | extern "C" |
| 10164 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10165 | /* 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] | 10166 | builtin and then its argument prototype would still apply. */ |
| 10167 | char t_open (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10168 | #ifdef F77_DUMMY_MAIN |
| 10169 | # ifdef __cplusplus |
| 10170 | extern "C" |
| 10171 | # endif |
| 10172 | int F77_DUMMY_MAIN() { return 1; } |
| 10173 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | int |
| 10175 | main () |
| 10176 | { |
| 10177 | t_open (); |
| 10178 | ; |
| 10179 | return 0; |
| 10180 | } |
| 10181 | _ACEOF |
| 10182 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10184 | (eval $ac_link) 2>&5 |
| 10185 | ac_status=$? |
| 10186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10187 | (exit $ac_status); } && |
| 10188 | { ac_try='test -s conftest$ac_exeext' |
| 10189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10190 | (eval $ac_try) 2>&5 |
| 10191 | ac_status=$? |
| 10192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10193 | (exit $ac_status); }; }; then |
| 10194 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | echo "$as_me: failed program was:" >&5 |
| 10197 | cat conftest.$ac_ext >&5 |
| 10198 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10200 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10201 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10202 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10203 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10204 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10205 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10206 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10207 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10208 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10209 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10210 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10211 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10214 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10215 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | cat >conftest.$ac_ext <<_ACEOF |
| 10217 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10218 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10219 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10220 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | #ifdef __cplusplus |
| 10222 | extern "C" |
| 10223 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10224 | /* 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] | 10225 | builtin and then its argument prototype would still apply. */ |
| 10226 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10227 | #ifdef F77_DUMMY_MAIN |
| 10228 | # ifdef __cplusplus |
| 10229 | extern "C" |
| 10230 | # endif |
| 10231 | int F77_DUMMY_MAIN() { return 1; } |
| 10232 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10233 | int |
| 10234 | main () |
| 10235 | { |
| 10236 | socket (); |
| 10237 | ; |
| 10238 | return 0; |
| 10239 | } |
| 10240 | _ACEOF |
| 10241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10243 | (eval $ac_link) 2>&5 |
| 10244 | ac_status=$? |
| 10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10246 | (exit $ac_status); } && |
| 10247 | { ac_try='test -s conftest$ac_exeext' |
| 10248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10249 | (eval $ac_try) 2>&5 |
| 10250 | ac_status=$? |
| 10251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10252 | (exit $ac_status); }; }; then |
| 10253 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | echo "$as_me: failed program was:" >&5 |
| 10256 | cat conftest.$ac_ext >&5 |
| 10257 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10260 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10263 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10264 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10265 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10266 | fi |
| 10267 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10268 | ;; |
| 10269 | esac |
| 10270 | case "$ac_sys_system" in |
| 10271 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10272 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10273 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10274 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10277 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10278 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10279 | cat >conftest.$ac_ext <<_ACEOF |
| 10280 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10281 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10282 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10283 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10284 | #ifdef __cplusplus |
| 10285 | extern "C" |
| 10286 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10287 | /* 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] | 10288 | builtin and then its argument prototype would still apply. */ |
| 10289 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10290 | #ifdef F77_DUMMY_MAIN |
| 10291 | # ifdef __cplusplus |
| 10292 | extern "C" |
| 10293 | # endif |
| 10294 | int F77_DUMMY_MAIN() { return 1; } |
| 10295 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | int |
| 10297 | main () |
| 10298 | { |
| 10299 | socket (); |
| 10300 | ; |
| 10301 | return 0; |
| 10302 | } |
| 10303 | _ACEOF |
| 10304 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10306 | (eval $ac_link) 2>&5 |
| 10307 | ac_status=$? |
| 10308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10309 | (exit $ac_status); } && |
| 10310 | { ac_try='test -s conftest$ac_exeext' |
| 10311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10312 | (eval $ac_try) 2>&5 |
| 10313 | ac_status=$? |
| 10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10315 | (exit $ac_status); }; }; then |
| 10316 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10318 | echo "$as_me: failed program was:" >&5 |
| 10319 | cat conftest.$ac_ext >&5 |
| 10320 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10323 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10324 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10325 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10326 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10327 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10328 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10329 | fi |
| 10330 | # BeOS |
| 10331 | ;; |
| 10332 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10335 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10336 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10337 | # Check whether --with-libs or --without-libs was given. |
| 10338 | if test "${with_libs+set}" = set; then |
| 10339 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | |
| 10341 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10342 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10343 | LIBS="$withval $LIBS" |
| 10344 | |
| 10345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | echo "$as_me:$LINENO: result: no" >&5 |
| 10347 | echo "${ECHO_T}no" >&6 |
| 10348 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10349 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10350 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10351 | |
| 10352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10353 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10354 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10355 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10356 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10357 | if test "${with_signal_module+set}" = set; then |
| 10358 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10361 | |
| 10362 | if test -z "$with_signal_module" |
| 10363 | then with_signal_module="yes" |
| 10364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10366 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10367 | |
| 10368 | if test "${with_signal_module}" = "yes"; then |
| 10369 | USE_SIGNAL_MODULE="" |
| 10370 | SIGNAL_OBJS="" |
| 10371 | else |
| 10372 | USE_SIGNAL_MODULE="#" |
| 10373 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10374 | fi |
| 10375 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10376 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10377 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10378 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10380 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10381 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10382 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10383 | |
| 10384 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10385 | if test "${with_dec_threads+set}" = set; then |
| 10386 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | |
| 10388 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10389 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10390 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10391 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10392 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10393 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | echo "$as_me:$LINENO: result: no" >&5 |
| 10396 | echo "${ECHO_T}no" >&6 |
| 10397 | fi; |
| 10398 | |
| 10399 | # Templates for things AC_DEFINEd more than once. |
| 10400 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10401 | |
| 10402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10403 | |
| 10404 | |
| 10405 | |
| 10406 | |
| 10407 | |
| 10408 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10409 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10410 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10411 | # Check whether --with-threads or --without-threads was given. |
| 10412 | if test "${with_threads+set}" = set; then |
| 10413 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10416 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10417 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10419 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10420 | if test "${with_thread+set}" = set; then |
| 10421 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10422 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10423 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10424 | |
| 10425 | if test -z "$with_threads" |
| 10426 | then with_threads="yes" |
| 10427 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10428 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10429 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10430 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10431 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10432 | if test "$with_threads" = "no" |
| 10433 | then |
| 10434 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10435 | elif test "$ac_cv_pthread_is_default" = yes |
| 10436 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10437 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10438 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10439 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10440 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10441 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10442 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10443 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10445 | |
| 10446 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10448 | elif test "$ac_cv_kpthread" = "yes" |
| 10449 | then |
| 10450 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10451 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10452 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10453 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10454 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10455 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10456 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10457 | elif test "$ac_cv_kthread" = "yes" |
| 10458 | then |
| 10459 | CC="$CC -Kthread" |
| 10460 | cat >>confdefs.h <<\_ACEOF |
| 10461 | #define WITH_THREAD 1 |
| 10462 | _ACEOF |
| 10463 | |
| 10464 | posix_threads=yes |
| 10465 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10466 | elif test "$ac_cv_pthread" = "yes" |
| 10467 | then |
| 10468 | CC="$CC -pthread" |
| 10469 | cat >>confdefs.h <<\_ACEOF |
| 10470 | #define WITH_THREAD 1 |
| 10471 | _ACEOF |
| 10472 | |
| 10473 | posix_threads=yes |
| 10474 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10475 | else |
| 10476 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10477 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10478 | fi |
| 10479 | if test ! -z "$withval" -a -d "$withval" |
| 10480 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10481 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10482 | |
| 10483 | # According to the POSIX spec, a pthreads implementation must |
| 10484 | # 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] | 10485 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10486 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10487 | cat >conftest.$ac_ext <<_ACEOF |
| 10488 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10489 | #include "confdefs.h" |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10490 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10491 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10492 | #ifdef _POSIX_THREADS |
| 10493 | yes |
| 10494 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10495 | |
| 10496 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10497 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10498 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10499 | unistd_defines_pthreads=yes |
| 10500 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10501 | unistd_defines_pthreads=no |
| 10502 | fi |
| 10503 | rm -f conftest* |
| 10504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10505 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10506 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10508 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10509 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10510 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10512 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10513 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10514 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10515 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10517 | fi |
| 10518 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10519 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10521 | # Is the header compilable? |
| 10522 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10523 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10524 | cat >conftest.$ac_ext <<_ACEOF |
| 10525 | #line $LINENO "configure" |
| 10526 | #include "confdefs.h" |
| 10527 | $ac_includes_default |
| 10528 | #include <cthreads.h> |
| 10529 | _ACEOF |
| 10530 | rm -f conftest.$ac_objext |
| 10531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10532 | (eval $ac_compile) 2>&5 |
| 10533 | ac_status=$? |
| 10534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10535 | (exit $ac_status); } && |
| 10536 | { ac_try='test -s conftest.$ac_objext' |
| 10537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10538 | (eval $ac_try) 2>&5 |
| 10539 | ac_status=$? |
| 10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10541 | (exit $ac_status); }; }; then |
| 10542 | ac_header_compiler=yes |
| 10543 | else |
| 10544 | echo "$as_me: failed program was:" >&5 |
| 10545 | cat conftest.$ac_ext >&5 |
| 10546 | ac_header_compiler=no |
| 10547 | fi |
| 10548 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10549 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10550 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10551 | |
| 10552 | # Is the header present? |
| 10553 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10554 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10555 | cat >conftest.$ac_ext <<_ACEOF |
| 10556 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10557 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10558 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 | _ACEOF |
| 10560 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10561 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10562 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10563 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10564 | rm -f conftest.er1 |
| 10565 | cat conftest.err >&5 |
| 10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10567 | (exit $ac_status); } >/dev/null; then |
| 10568 | if test -s conftest.err; then |
| 10569 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10570 | else |
| 10571 | ac_cpp_err= |
| 10572 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10574 | ac_cpp_err=yes |
| 10575 | fi |
| 10576 | if test -z "$ac_cpp_err"; then |
| 10577 | ac_header_preproc=yes |
| 10578 | else |
| 10579 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10580 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10581 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10582 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10583 | rm -f conftest.err conftest.$ac_ext |
| 10584 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10585 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10586 | |
| 10587 | # So? What about this header? |
| 10588 | case $ac_header_compiler:$ac_header_preproc in |
| 10589 | yes:no ) |
| 10590 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10591 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10592 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10593 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10594 | no:yes ) |
| 10595 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10596 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10597 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10598 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10599 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10600 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10601 | esac |
| 10602 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10603 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10604 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10606 | else |
| 10607 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10608 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10609 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10610 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10611 | |
| 10612 | fi |
| 10613 | if test $ac_cv_header_cthreads_h = yes; then |
| 10614 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10615 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10616 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10618 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10619 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10620 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | |
| 10623 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10624 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10625 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10626 | |
| 10627 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10628 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10629 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10631 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10632 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10633 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10634 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10636 | fi |
| 10637 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10638 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | # Is the header compilable? |
| 10641 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10642 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10643 | cat >conftest.$ac_ext <<_ACEOF |
| 10644 | #line $LINENO "configure" |
| 10645 | #include "confdefs.h" |
| 10646 | $ac_includes_default |
| 10647 | #include <mach/cthreads.h> |
| 10648 | _ACEOF |
| 10649 | rm -f conftest.$ac_objext |
| 10650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10651 | (eval $ac_compile) 2>&5 |
| 10652 | ac_status=$? |
| 10653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10654 | (exit $ac_status); } && |
| 10655 | { ac_try='test -s conftest.$ac_objext' |
| 10656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10657 | (eval $ac_try) 2>&5 |
| 10658 | ac_status=$? |
| 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10660 | (exit $ac_status); }; }; then |
| 10661 | ac_header_compiler=yes |
| 10662 | else |
| 10663 | echo "$as_me: failed program was:" >&5 |
| 10664 | cat conftest.$ac_ext >&5 |
| 10665 | ac_header_compiler=no |
| 10666 | fi |
| 10667 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10668 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10669 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10670 | |
| 10671 | # Is the header present? |
| 10672 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10673 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10674 | cat >conftest.$ac_ext <<_ACEOF |
| 10675 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10676 | #include "confdefs.h" |
| 10677 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | _ACEOF |
| 10679 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10680 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10681 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10682 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10683 | rm -f conftest.er1 |
| 10684 | cat conftest.err >&5 |
| 10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10686 | (exit $ac_status); } >/dev/null; then |
| 10687 | if test -s conftest.err; then |
| 10688 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10689 | else |
| 10690 | ac_cpp_err= |
| 10691 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | ac_cpp_err=yes |
| 10694 | fi |
| 10695 | if test -z "$ac_cpp_err"; then |
| 10696 | ac_header_preproc=yes |
| 10697 | else |
| 10698 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10699 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10701 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10702 | rm -f conftest.err conftest.$ac_ext |
| 10703 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10704 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10705 | |
| 10706 | # So? What about this header? |
| 10707 | case $ac_header_compiler:$ac_header_preproc in |
| 10708 | yes:no ) |
| 10709 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10710 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10711 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10712 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10713 | no:yes ) |
| 10714 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10715 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10716 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10717 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10718 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10719 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10720 | esac |
| 10721 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10722 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10723 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10725 | else |
| 10726 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10727 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10729 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10730 | |
| 10731 | fi |
| 10732 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10733 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10734 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10735 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10736 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10737 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10738 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10739 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10740 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | |
| 10742 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10743 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10744 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10745 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10746 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10747 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10749 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10750 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10751 | |
| 10752 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10753 | if test "${with_pth+set}" = set; then |
| 10754 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10755 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10756 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10757 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10758 | #define WITH_THREAD 1 |
| 10759 | _ACEOF |
| 10760 | |
| 10761 | |
| 10762 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10763 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10764 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10765 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10766 | LIBS="-lpth $LIBS" |
| 10767 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10768 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10769 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10770 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10771 | |
| 10772 | # Just looking for pthread_create in libpthread is not enough: |
| 10773 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10774 | # So we really have to include pthread.h, and then link. |
| 10775 | _libs=$LIBS |
| 10776 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10778 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10779 | cat >conftest.$ac_ext <<_ACEOF |
| 10780 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10781 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10782 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10783 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10784 | void * start_routine (void *arg) { exit (0); } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10785 | #ifdef F77_DUMMY_MAIN |
| 10786 | # ifdef __cplusplus |
| 10787 | extern "C" |
| 10788 | # endif |
| 10789 | int F77_DUMMY_MAIN() { return 1; } |
| 10790 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10791 | int |
| 10792 | main () |
| 10793 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10794 | |
| 10795 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10796 | ; |
| 10797 | return 0; |
| 10798 | } |
| 10799 | _ACEOF |
| 10800 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10802 | (eval $ac_link) 2>&5 |
| 10803 | ac_status=$? |
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10805 | (exit $ac_status); } && |
| 10806 | { ac_try='test -s conftest$ac_exeext' |
| 10807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10808 | (eval $ac_try) 2>&5 |
| 10809 | ac_status=$? |
| 10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10811 | (exit $ac_status); }; }; then |
| 10812 | |
| 10813 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10814 | echo "${ECHO_T}yes" >&6 |
| 10815 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10816 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10817 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10818 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10819 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10820 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10822 | echo "$as_me: failed program was:" >&5 |
| 10823 | cat conftest.$ac_ext >&5 |
| 10824 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10825 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10826 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10827 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10828 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10831 | cat >conftest.$ac_ext <<_ACEOF |
| 10832 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10833 | #include "confdefs.h" |
| 10834 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10836 | #include <assert.h> |
| 10837 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10838 | #ifdef __cplusplus |
| 10839 | extern "C" |
| 10840 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10841 | /* 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] | 10842 | builtin and then its argument prototype would still apply. */ |
| 10843 | char pthread_detach (); |
| 10844 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10845 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10846 | #ifdef F77_DUMMY_MAIN |
| 10847 | # ifdef __cplusplus |
| 10848 | extern "C" |
| 10849 | # endif |
| 10850 | int F77_DUMMY_MAIN() { return 1; } |
| 10851 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10852 | int |
| 10853 | main () |
| 10854 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10855 | /* The GNU C library defines this for functions which it implements |
| 10856 | to always fail with ENOSYS. Some functions are actually named |
| 10857 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10858 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10859 | choke me |
| 10860 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10861 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10862 | #endif |
| 10863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 | ; |
| 10865 | return 0; |
| 10866 | } |
| 10867 | _ACEOF |
| 10868 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10870 | (eval $ac_link) 2>&5 |
| 10871 | ac_status=$? |
| 10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10873 | (exit $ac_status); } && |
| 10874 | { ac_try='test -s conftest$ac_exeext' |
| 10875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10876 | (eval $ac_try) 2>&5 |
| 10877 | ac_status=$? |
| 10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10879 | (exit $ac_status); }; }; then |
| 10880 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10882 | echo "$as_me: failed program was:" >&5 |
| 10883 | cat conftest.$ac_ext >&5 |
| 10884 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10887 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10888 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10889 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10890 | if test $ac_cv_func_pthread_detach = yes; then |
| 10891 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10892 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10893 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10894 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10895 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10896 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10897 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10898 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10899 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10900 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10901 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10902 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10904 | fi |
| 10905 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10906 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10907 | else |
| 10908 | # Is the header compilable? |
| 10909 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10910 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10911 | cat >conftest.$ac_ext <<_ACEOF |
| 10912 | #line $LINENO "configure" |
| 10913 | #include "confdefs.h" |
| 10914 | $ac_includes_default |
| 10915 | #include <atheos/threads.h> |
| 10916 | _ACEOF |
| 10917 | rm -f conftest.$ac_objext |
| 10918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10919 | (eval $ac_compile) 2>&5 |
| 10920 | ac_status=$? |
| 10921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10922 | (exit $ac_status); } && |
| 10923 | { ac_try='test -s conftest.$ac_objext' |
| 10924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10925 | (eval $ac_try) 2>&5 |
| 10926 | ac_status=$? |
| 10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10928 | (exit $ac_status); }; }; then |
| 10929 | ac_header_compiler=yes |
| 10930 | else |
| 10931 | echo "$as_me: failed program was:" >&5 |
| 10932 | cat conftest.$ac_ext >&5 |
| 10933 | ac_header_compiler=no |
| 10934 | fi |
| 10935 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10936 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10937 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10938 | |
| 10939 | # Is the header present? |
| 10940 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10941 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10942 | cat >conftest.$ac_ext <<_ACEOF |
| 10943 | #line $LINENO "configure" |
| 10944 | #include "confdefs.h" |
| 10945 | #include <atheos/threads.h> |
| 10946 | _ACEOF |
| 10947 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10948 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10949 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10950 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10951 | rm -f conftest.er1 |
| 10952 | cat conftest.err >&5 |
| 10953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10954 | (exit $ac_status); } >/dev/null; then |
| 10955 | if test -s conftest.err; then |
| 10956 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10957 | else |
| 10958 | ac_cpp_err= |
| 10959 | fi |
| 10960 | else |
| 10961 | ac_cpp_err=yes |
| 10962 | fi |
| 10963 | if test -z "$ac_cpp_err"; then |
| 10964 | ac_header_preproc=yes |
| 10965 | else |
| 10966 | echo "$as_me: failed program was:" >&5 |
| 10967 | cat conftest.$ac_ext >&5 |
| 10968 | ac_header_preproc=no |
| 10969 | fi |
| 10970 | rm -f conftest.err conftest.$ac_ext |
| 10971 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10972 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10973 | |
| 10974 | # So? What about this header? |
| 10975 | case $ac_header_compiler:$ac_header_preproc in |
| 10976 | yes:no ) |
| 10977 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10978 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10979 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10980 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10981 | no:yes ) |
| 10982 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10983 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10984 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10985 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10986 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10987 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10988 | esac |
| 10989 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10990 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10991 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10993 | else |
| 10994 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10995 | fi |
| 10996 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10997 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10998 | |
| 10999 | fi |
| 11000 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11001 | cat >>confdefs.h <<\_ACEOF |
| 11002 | #define WITH_THREAD 1 |
| 11003 | _ACEOF |
| 11004 | |
| 11005 | |
| 11006 | cat >>confdefs.h <<\_ACEOF |
| 11007 | #define ATHEOS_THREADS 1 |
| 11008 | _ACEOF |
| 11009 | |
| 11010 | THREADOBJ="Python/thread.o" |
| 11011 | else |
| 11012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11013 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11014 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11015 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11016 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11018 | fi |
| 11019 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11020 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11022 | # Is the header compilable? |
| 11023 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11024 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11025 | cat >conftest.$ac_ext <<_ACEOF |
| 11026 | #line $LINENO "configure" |
| 11027 | #include "confdefs.h" |
| 11028 | $ac_includes_default |
| 11029 | #include <kernel/OS.h> |
| 11030 | _ACEOF |
| 11031 | rm -f conftest.$ac_objext |
| 11032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11033 | (eval $ac_compile) 2>&5 |
| 11034 | ac_status=$? |
| 11035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11036 | (exit $ac_status); } && |
| 11037 | { ac_try='test -s conftest.$ac_objext' |
| 11038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11039 | (eval $ac_try) 2>&5 |
| 11040 | ac_status=$? |
| 11041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11042 | (exit $ac_status); }; }; then |
| 11043 | ac_header_compiler=yes |
| 11044 | else |
| 11045 | echo "$as_me: failed program was:" >&5 |
| 11046 | cat conftest.$ac_ext >&5 |
| 11047 | ac_header_compiler=no |
| 11048 | fi |
| 11049 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11050 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11051 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11052 | |
| 11053 | # Is the header present? |
| 11054 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 11055 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 11056 | cat >conftest.$ac_ext <<_ACEOF |
| 11057 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11058 | #include "confdefs.h" |
| 11059 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11060 | _ACEOF |
| 11061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11063 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11064 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11065 | rm -f conftest.er1 |
| 11066 | cat conftest.err >&5 |
| 11067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11068 | (exit $ac_status); } >/dev/null; then |
| 11069 | if test -s conftest.err; then |
| 11070 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11071 | else |
| 11072 | ac_cpp_err= |
| 11073 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11075 | ac_cpp_err=yes |
| 11076 | fi |
| 11077 | if test -z "$ac_cpp_err"; then |
| 11078 | ac_header_preproc=yes |
| 11079 | else |
| 11080 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11081 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11083 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | rm -f conftest.err conftest.$ac_ext |
| 11085 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11086 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 | # So? What about this header? |
| 11089 | case $ac_header_compiler:$ac_header_preproc in |
| 11090 | yes:no ) |
| 11091 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11092 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11093 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 11094 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 11095 | no:yes ) |
| 11096 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 11097 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 11098 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 11099 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 11100 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 11101 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 11102 | esac |
| 11103 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11104 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11105 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11107 | else |
| 11108 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 11109 | fi |
| 11110 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11111 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 11112 | |
| 11113 | fi |
| 11114 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 11115 | cat >>confdefs.h <<\_ACEOF |
| 11116 | #define WITH_THREAD 1 |
| 11117 | _ACEOF |
| 11118 | |
| 11119 | |
| 11120 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11121 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11123 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11124 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11125 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11127 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 11128 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 11129 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 11130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11132 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11133 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | cat >conftest.$ac_ext <<_ACEOF |
| 11135 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11136 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11137 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11138 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11139 | #ifdef __cplusplus |
| 11140 | extern "C" |
| 11141 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11142 | /* 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] | 11143 | builtin and then its argument prototype would still apply. */ |
| 11144 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11145 | #ifdef F77_DUMMY_MAIN |
| 11146 | # ifdef __cplusplus |
| 11147 | extern "C" |
| 11148 | # endif |
| 11149 | int F77_DUMMY_MAIN() { return 1; } |
| 11150 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | int |
| 11152 | main () |
| 11153 | { |
| 11154 | pthread_create (); |
| 11155 | ; |
| 11156 | return 0; |
| 11157 | } |
| 11158 | _ACEOF |
| 11159 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11161 | (eval $ac_link) 2>&5 |
| 11162 | ac_status=$? |
| 11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11164 | (exit $ac_status); } && |
| 11165 | { ac_try='test -s conftest$ac_exeext' |
| 11166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11167 | (eval $ac_try) 2>&5 |
| 11168 | ac_status=$? |
| 11169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11170 | (exit $ac_status); }; }; then |
| 11171 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11173 | echo "$as_me: failed program was:" >&5 |
| 11174 | cat conftest.$ac_ext >&5 |
| 11175 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11176 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11178 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11179 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11181 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 11182 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 11183 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11184 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11186 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11187 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11188 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11189 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11190 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11192 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 11193 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 11194 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 11195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11198 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 | cat >conftest.$ac_ext <<_ACEOF |
| 11200 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11201 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11203 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | #ifdef __cplusplus |
| 11205 | extern "C" |
| 11206 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11207 | /* 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] | 11208 | builtin and then its argument prototype would still apply. */ |
| 11209 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11210 | #ifdef F77_DUMMY_MAIN |
| 11211 | # ifdef __cplusplus |
| 11212 | extern "C" |
| 11213 | # endif |
| 11214 | int F77_DUMMY_MAIN() { return 1; } |
| 11215 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | int |
| 11217 | main () |
| 11218 | { |
| 11219 | pthread_create (); |
| 11220 | ; |
| 11221 | return 0; |
| 11222 | } |
| 11223 | _ACEOF |
| 11224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11226 | (eval $ac_link) 2>&5 |
| 11227 | ac_status=$? |
| 11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11229 | (exit $ac_status); } && |
| 11230 | { ac_try='test -s conftest$ac_exeext' |
| 11231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11232 | (eval $ac_try) 2>&5 |
| 11233 | ac_status=$? |
| 11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11235 | (exit $ac_status); }; }; then |
| 11236 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11238 | echo "$as_me: failed program was:" >&5 |
| 11239 | cat conftest.$ac_ext >&5 |
| 11240 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11243 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11244 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11246 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 11247 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 11248 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11249 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11250 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11251 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11252 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11253 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11254 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11255 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11256 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 11258 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 11259 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 11260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11263 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 | cat >conftest.$ac_ext <<_ACEOF |
| 11265 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11266 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11268 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 | #ifdef __cplusplus |
| 11270 | extern "C" |
| 11271 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11272 | /* 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] | 11273 | builtin and then its argument prototype would still apply. */ |
| 11274 | char __d6_pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11275 | #ifdef F77_DUMMY_MAIN |
| 11276 | # ifdef __cplusplus |
| 11277 | extern "C" |
| 11278 | # endif |
| 11279 | int F77_DUMMY_MAIN() { return 1; } |
| 11280 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | int |
| 11282 | main () |
| 11283 | { |
| 11284 | __d6_pthread_create (); |
| 11285 | ; |
| 11286 | return 0; |
| 11287 | } |
| 11288 | _ACEOF |
| 11289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11291 | (eval $ac_link) 2>&5 |
| 11292 | ac_status=$? |
| 11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11294 | (exit $ac_status); } && |
| 11295 | { ac_try='test -s conftest$ac_exeext' |
| 11296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11297 | (eval $ac_try) 2>&5 |
| 11298 | ac_status=$? |
| 11299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11300 | (exit $ac_status); }; }; then |
| 11301 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | echo "$as_me: failed program was:" >&5 |
| 11304 | cat conftest.$ac_ext >&5 |
| 11305 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11306 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11308 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11310 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 11311 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 11312 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 11313 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11314 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11315 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11316 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11317 | echo Systems with __d6_pthread_create are not supported anymore. |
| 11318 | echo See README |
| 11319 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11320 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11321 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11322 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11323 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11325 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11326 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11327 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11330 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11331 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11332 | cat >conftest.$ac_ext <<_ACEOF |
| 11333 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11334 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11336 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11337 | #ifdef __cplusplus |
| 11338 | extern "C" |
| 11339 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11340 | /* 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] | 11341 | builtin and then its argument prototype would still apply. */ |
| 11342 | char __pthread_create_system (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11343 | #ifdef F77_DUMMY_MAIN |
| 11344 | # ifdef __cplusplus |
| 11345 | extern "C" |
| 11346 | # endif |
| 11347 | int F77_DUMMY_MAIN() { return 1; } |
| 11348 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | int |
| 11350 | main () |
| 11351 | { |
| 11352 | __pthread_create_system (); |
| 11353 | ; |
| 11354 | return 0; |
| 11355 | } |
| 11356 | _ACEOF |
| 11357 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11359 | (eval $ac_link) 2>&5 |
| 11360 | ac_status=$? |
| 11361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11362 | (exit $ac_status); } && |
| 11363 | { ac_try='test -s conftest$ac_exeext' |
| 11364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11365 | (eval $ac_try) 2>&5 |
| 11366 | ac_status=$? |
| 11367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11368 | (exit $ac_status); }; }; then |
| 11369 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11371 | echo "$as_me: failed program was:" >&5 |
| 11372 | cat conftest.$ac_ext >&5 |
| 11373 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11374 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11375 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11376 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11379 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11380 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11381 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11382 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11383 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11384 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11385 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11386 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11387 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11388 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11391 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11392 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11396 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | cat >conftest.$ac_ext <<_ACEOF |
| 11398 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11399 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11400 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11401 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | #ifdef __cplusplus |
| 11403 | extern "C" |
| 11404 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11405 | /* 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] | 11406 | builtin and then its argument prototype would still apply. */ |
| 11407 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11408 | #ifdef F77_DUMMY_MAIN |
| 11409 | # ifdef __cplusplus |
| 11410 | extern "C" |
| 11411 | # endif |
| 11412 | int F77_DUMMY_MAIN() { return 1; } |
| 11413 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11414 | int |
| 11415 | main () |
| 11416 | { |
| 11417 | pthread_create (); |
| 11418 | ; |
| 11419 | return 0; |
| 11420 | } |
| 11421 | _ACEOF |
| 11422 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11424 | (eval $ac_link) 2>&5 |
| 11425 | ac_status=$? |
| 11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11427 | (exit $ac_status); } && |
| 11428 | { ac_try='test -s conftest$ac_exeext' |
| 11429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11430 | (eval $ac_try) 2>&5 |
| 11431 | ac_status=$? |
| 11432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11433 | (exit $ac_status); }; }; then |
| 11434 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11436 | echo "$as_me: failed program was:" >&5 |
| 11437 | cat conftest.$ac_ext >&5 |
| 11438 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11439 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11441 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11442 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 11444 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 11445 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 11446 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11447 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11449 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11450 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11451 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11452 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11453 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11454 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11455 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11456 | fi |
| 11457 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11458 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11459 | fi |
| 11460 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11461 | fi |
| 11462 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11463 | fi |
| 11464 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11465 | fi |
| 11466 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11467 | fi |
| 11468 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11469 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11470 | fi |
| 11471 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11472 | |
| 11473 | fi |
| 11474 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11475 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11476 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11477 | fi; |
| 11478 | fi |
| 11479 | |
| 11480 | |
| 11481 | fi |
| 11482 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11483 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11485 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11486 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11487 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11491 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11492 | cat >conftest.$ac_ext <<_ACEOF |
| 11493 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11494 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11496 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11497 | #ifdef __cplusplus |
| 11498 | extern "C" |
| 11499 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11500 | /* 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] | 11501 | builtin and then its argument prototype would still apply. */ |
| 11502 | char usconfig (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11503 | #ifdef F77_DUMMY_MAIN |
| 11504 | # ifdef __cplusplus |
| 11505 | extern "C" |
| 11506 | # endif |
| 11507 | int F77_DUMMY_MAIN() { return 1; } |
| 11508 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11509 | int |
| 11510 | main () |
| 11511 | { |
| 11512 | usconfig (); |
| 11513 | ; |
| 11514 | return 0; |
| 11515 | } |
| 11516 | _ACEOF |
| 11517 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11519 | (eval $ac_link) 2>&5 |
| 11520 | ac_status=$? |
| 11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11522 | (exit $ac_status); } && |
| 11523 | { ac_try='test -s conftest$ac_exeext' |
| 11524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11525 | (eval $ac_try) 2>&5 |
| 11526 | ac_status=$? |
| 11527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11528 | (exit $ac_status); }; }; then |
| 11529 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11531 | echo "$as_me: failed program was:" >&5 |
| 11532 | cat conftest.$ac_ext >&5 |
| 11533 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11534 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11536 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11538 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11539 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11540 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11541 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11542 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11543 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11544 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11545 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11546 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11547 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11548 | fi |
| 11549 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11550 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11551 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11552 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11553 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11554 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11557 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11558 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11559 | cat >conftest.$ac_ext <<_ACEOF |
| 11560 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11561 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11563 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11564 | #ifdef __cplusplus |
| 11565 | extern "C" |
| 11566 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11567 | /* 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] | 11568 | builtin and then its argument prototype would still apply. */ |
| 11569 | char thr_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11570 | #ifdef F77_DUMMY_MAIN |
| 11571 | # ifdef __cplusplus |
| 11572 | extern "C" |
| 11573 | # endif |
| 11574 | int F77_DUMMY_MAIN() { return 1; } |
| 11575 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | int |
| 11577 | main () |
| 11578 | { |
| 11579 | thr_create (); |
| 11580 | ; |
| 11581 | return 0; |
| 11582 | } |
| 11583 | _ACEOF |
| 11584 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11586 | (eval $ac_link) 2>&5 |
| 11587 | ac_status=$? |
| 11588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11589 | (exit $ac_status); } && |
| 11590 | { ac_try='test -s conftest$ac_exeext' |
| 11591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11592 | (eval $ac_try) 2>&5 |
| 11593 | ac_status=$? |
| 11594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11595 | (exit $ac_status); }; }; then |
| 11596 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | echo "$as_me: failed program was:" >&5 |
| 11599 | cat conftest.$ac_ext >&5 |
| 11600 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11601 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11603 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11604 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11605 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11606 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11607 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11608 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11609 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11611 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11612 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11613 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11614 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11615 | fi |
| 11616 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11617 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11618 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11619 | if test "$USE_THREAD_MODULE" != "#" |
| 11620 | then |
| 11621 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11622 | # needs this '-threads' argument during linking. |
| 11623 | case $ac_sys_system in |
| 11624 | OSF1) LDLAST=-threads;; |
| 11625 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11626 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11627 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11628 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11629 | if test "$posix_threads" = "yes"; then |
| 11630 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11631 | |
| 11632 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11633 | #define _POSIX_THREADS 1 |
| 11634 | _ACEOF |
| 11635 | |
| 11636 | fi |
| 11637 | |
| 11638 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 11639 | case $ac_sys_system/$ac_sys_release in |
| 11640 | SunOS/5.6) |
| 11641 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11642 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11643 | _ACEOF |
| 11644 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11645 | ;; |
| 11646 | SunOS/5.8) |
| 11647 | cat >>confdefs.h <<\_ACEOF |
| 11648 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 11649 | _ACEOF |
| 11650 | |
| 11651 | ;; |
| 11652 | esac |
| 11653 | |
| 11654 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11655 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11656 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11658 | else |
| 11659 | if test "$cross_compiling" = yes; then |
| 11660 | ac_cv_pthread_system_supported=no |
| 11661 | else |
| 11662 | cat >conftest.$ac_ext <<_ACEOF |
| 11663 | #line $LINENO "configure" |
| 11664 | #include "confdefs.h" |
| 11665 | #include <pthread.h> |
| 11666 | void *foo(void *parm) { |
| 11667 | return NULL; |
| 11668 | } |
| 11669 | main() { |
| 11670 | pthread_attr_t attr; |
| 11671 | pthread_t id; |
| 11672 | if (pthread_attr_init(&attr)) exit(-1); |
| 11673 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 11674 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 11675 | exit(0); |
| 11676 | } |
| 11677 | _ACEOF |
| 11678 | rm -f conftest$ac_exeext |
| 11679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11680 | (eval $ac_link) 2>&5 |
| 11681 | ac_status=$? |
| 11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11683 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11685 | (eval $ac_try) 2>&5 |
| 11686 | ac_status=$? |
| 11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11688 | (exit $ac_status); }; }; then |
| 11689 | ac_cv_pthread_system_supported=yes |
| 11690 | else |
| 11691 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11692 | echo "$as_me: failed program was:" >&5 |
| 11693 | cat conftest.$ac_ext >&5 |
| 11694 | ( exit $ac_status ) |
| 11695 | ac_cv_pthread_system_supported=no |
| 11696 | fi |
| 11697 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11698 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11699 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11700 | fi |
| 11701 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11702 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11703 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 11704 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 11705 | |
| 11706 | cat >>confdefs.h <<\_ACEOF |
| 11707 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 11708 | _ACEOF |
| 11709 | |
| 11710 | fi |
| 11711 | |
| 11712 | for ac_func in pthread_sigmask |
| 11713 | do |
| 11714 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11715 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11716 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11717 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11719 | else |
| 11720 | cat >conftest.$ac_ext <<_ACEOF |
| 11721 | #line $LINENO "configure" |
| 11722 | #include "confdefs.h" |
| 11723 | /* System header to define __stub macros and hopefully few prototypes, |
| 11724 | which can conflict with char $ac_func (); below. */ |
| 11725 | #include <assert.h> |
| 11726 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11727 | #ifdef __cplusplus |
| 11728 | extern "C" |
| 11729 | #endif |
| 11730 | /* We use char because int might match the return type of a gcc2 |
| 11731 | builtin and then its argument prototype would still apply. */ |
| 11732 | char $ac_func (); |
| 11733 | char (*f) (); |
| 11734 | |
| 11735 | #ifdef F77_DUMMY_MAIN |
| 11736 | # ifdef __cplusplus |
| 11737 | extern "C" |
| 11738 | # endif |
| 11739 | int F77_DUMMY_MAIN() { return 1; } |
| 11740 | #endif |
| 11741 | int |
| 11742 | main () |
| 11743 | { |
| 11744 | /* The GNU C library defines this for functions which it implements |
| 11745 | to always fail with ENOSYS. Some functions are actually named |
| 11746 | something starting with __ and the normal name is an alias. */ |
| 11747 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11748 | choke me |
| 11749 | #else |
| 11750 | f = $ac_func; |
| 11751 | #endif |
| 11752 | |
| 11753 | ; |
| 11754 | return 0; |
| 11755 | } |
| 11756 | _ACEOF |
| 11757 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11759 | (eval $ac_link) 2>&5 |
| 11760 | ac_status=$? |
| 11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11762 | (exit $ac_status); } && |
| 11763 | { ac_try='test -s conftest$ac_exeext' |
| 11764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11765 | (eval $ac_try) 2>&5 |
| 11766 | ac_status=$? |
| 11767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11768 | (exit $ac_status); }; }; then |
| 11769 | eval "$as_ac_var=yes" |
| 11770 | else |
| 11771 | echo "$as_me: failed program was:" >&5 |
| 11772 | cat conftest.$ac_ext >&5 |
| 11773 | eval "$as_ac_var=no" |
| 11774 | fi |
| 11775 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11776 | fi |
| 11777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11778 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11779 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11780 | cat >>confdefs.h <<_ACEOF |
| 11781 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11782 | _ACEOF |
| 11783 | |
| 11784 | fi |
| 11785 | done |
| 11786 | |
| 11787 | fi |
| 11788 | |
| 11789 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11790 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11791 | |
| 11792 | |
| 11793 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11794 | 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] | 11795 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11796 | if test "${enable_ipv6+set}" = set; then |
| 11797 | enableval="$enable_ipv6" |
| 11798 | case "$enableval" in |
| 11799 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11800 | echo "$as_me:$LINENO: result: no" >&5 |
| 11801 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11802 | ipv6=no |
| 11803 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11804 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11805 | echo "${ECHO_T}yes" >&6 |
| 11806 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11807 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11808 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11809 | |
| 11810 | ipv6=yes |
| 11811 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11812 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11814 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11815 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11816 | echo "$as_me:$LINENO: result: no" >&5 |
| 11817 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11818 | ipv6=no |
| 11819 | |
| 11820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11821 | cat >conftest.$ac_ext <<_ACEOF |
| 11822 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11823 | #include "confdefs.h" |
| 11824 | /* AF_INET6 available check */ |
| 11825 | #include <sys/types.h> |
| 11826 | #include <sys/socket.h> |
| 11827 | main() |
| 11828 | { |
| 11829 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11830 | exit(1); |
| 11831 | else |
| 11832 | exit(0); |
| 11833 | } |
| 11834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | _ACEOF |
| 11836 | rm -f conftest$ac_exeext |
| 11837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11838 | (eval $ac_link) 2>&5 |
| 11839 | ac_status=$? |
| 11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11841 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11843 | (eval $ac_try) 2>&5 |
| 11844 | ac_status=$? |
| 11845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11846 | (exit $ac_status); }; }; then |
| 11847 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11848 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11849 | ipv6=yes |
| 11850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11851 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11852 | echo "$as_me: failed program was:" >&5 |
| 11853 | cat conftest.$ac_ext >&5 |
| 11854 | ( exit $ac_status ) |
| 11855 | echo "$as_me:$LINENO: result: no" >&5 |
| 11856 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11857 | ipv6=no |
| 11858 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11859 | 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] | 11860 | fi |
| 11861 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11862 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11863 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11864 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11865 | cat >conftest.$ac_ext <<_ACEOF |
| 11866 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11867 | #include "confdefs.h" |
| 11868 | #include <sys/types.h> |
| 11869 | #include <netinet/in.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11870 | #ifdef F77_DUMMY_MAIN |
| 11871 | # ifdef __cplusplus |
| 11872 | extern "C" |
| 11873 | # endif |
| 11874 | int F77_DUMMY_MAIN() { return 1; } |
| 11875 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11876 | int |
| 11877 | main () |
| 11878 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11879 | struct sockaddr_in6 x; |
| 11880 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11881 | ; |
| 11882 | return 0; |
| 11883 | } |
| 11884 | _ACEOF |
| 11885 | rm -f conftest.$ac_objext |
| 11886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11887 | (eval $ac_compile) 2>&5 |
| 11888 | ac_status=$? |
| 11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11890 | (exit $ac_status); } && |
| 11891 | { ac_try='test -s conftest.$ac_objext' |
| 11892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11893 | (eval $ac_try) 2>&5 |
| 11894 | ac_status=$? |
| 11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11896 | (exit $ac_status); }; }; then |
| 11897 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11898 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11899 | ipv6=yes |
| 11900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11901 | echo "$as_me: failed program was:" >&5 |
| 11902 | cat conftest.$ac_ext >&5 |
| 11903 | echo "$as_me:$LINENO: result: no" >&5 |
| 11904 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11905 | ipv6=no |
| 11906 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11907 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11908 | fi |
| 11909 | |
| 11910 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11911 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11912 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11913 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11914 | |
| 11915 | fi |
| 11916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11918 | |
| 11919 | ipv6type=unknown |
| 11920 | ipv6lib=none |
| 11921 | ipv6trylibc=no |
| 11922 | |
| 11923 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11924 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11925 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11926 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11927 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11928 | case $i in |
| 11929 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11930 | cat >conftest.$ac_ext <<_ACEOF |
| 11931 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11932 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11933 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11934 | #include <netinet/in.h> |
| 11935 | #ifdef IPV6_INRIA_VERSION |
| 11936 | yes |
| 11937 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11940 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11941 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11942 | fi |
| 11943 | rm -f conftest* |
| 11944 | |
| 11945 | ;; |
| 11946 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11947 | cat >conftest.$ac_ext <<_ACEOF |
| 11948 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11949 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11950 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11951 | #include <netinet/in.h> |
| 11952 | #ifdef __KAME__ |
| 11953 | yes |
| 11954 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11955 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11956 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11957 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11958 | ipv6type=$i; |
| 11959 | ipv6lib=inet6 |
| 11960 | ipv6libdir=/usr/local/v6/lib |
| 11961 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11962 | fi |
| 11963 | rm -f conftest* |
| 11964 | |
| 11965 | ;; |
| 11966 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11967 | cat >conftest.$ac_ext <<_ACEOF |
| 11968 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11969 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11970 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11971 | #include <features.h> |
| 11972 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11973 | yes |
| 11974 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11975 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11977 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11978 | ipv6type=$i; |
| 11979 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11980 | fi |
| 11981 | rm -f conftest* |
| 11982 | |
| 11983 | ;; |
| 11984 | linux-inet6) |
| 11985 | if test -d /usr/inet6; then |
| 11986 | ipv6type=$i |
| 11987 | ipv6lib=inet6 |
| 11988 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11989 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11990 | fi |
| 11991 | ;; |
| 11992 | solaris) |
| 11993 | if test -f /etc/netconfig; then |
| 11994 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11995 | ipv6type=$i |
| 11996 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11997 | fi |
| 11998 | fi |
| 11999 | ;; |
| 12000 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12001 | cat >conftest.$ac_ext <<_ACEOF |
| 12002 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12003 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12004 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12005 | #include <sys/param.h> |
| 12006 | #ifdef _TOSHIBA_INET6 |
| 12007 | yes |
| 12008 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12009 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12010 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12011 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12012 | ipv6type=$i; |
| 12013 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12014 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12015 | fi |
| 12016 | rm -f conftest* |
| 12017 | |
| 12018 | ;; |
| 12019 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | cat >conftest.$ac_ext <<_ACEOF |
| 12021 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12022 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12023 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12024 | #include </usr/local/v6/include/sys/v6config.h> |
| 12025 | #ifdef __V6D__ |
| 12026 | yes |
| 12027 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12028 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12030 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12031 | ipv6type=$i; |
| 12032 | ipv6lib=v6; |
| 12033 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 12034 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12035 | fi |
| 12036 | rm -f conftest* |
| 12037 | |
| 12038 | ;; |
| 12039 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | cat >conftest.$ac_ext <<_ACEOF |
| 12041 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12042 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12043 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12044 | #include <sys/param.h> |
| 12045 | #ifdef _ZETA_MINAMI_INET6 |
| 12046 | yes |
| 12047 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12050 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12051 | ipv6type=$i; |
| 12052 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12053 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12054 | fi |
| 12055 | rm -f conftest* |
| 12056 | |
| 12057 | ;; |
| 12058 | esac |
| 12059 | if test "$ipv6type" != "unknown"; then |
| 12060 | break |
| 12061 | fi |
| 12062 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12063 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 12064 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12065 | fi |
| 12066 | |
| 12067 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 12068 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 12069 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 12070 | echo "using lib$ipv6lib" |
| 12071 | else |
| 12072 | if test $ipv6trylibc = "yes"; then |
| 12073 | echo "using libc" |
| 12074 | else |
| 12075 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 12076 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 12077 | echo 'ipv6 kit and compile beforehand.' |
| 12078 | exit 1 |
| 12079 | fi |
| 12080 | fi |
| 12081 | fi |
| 12082 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12083 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 12084 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 12085 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12086 | |
| 12087 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 12088 | if test "${with_universal_newlines+set}" = set; then |
| 12089 | withval="$with_universal_newlines" |
| 12090 | |
| 12091 | fi; |
| 12092 | |
| 12093 | if test -z "$with_universal_newlines" |
| 12094 | then with_universal_newlines="yes" |
| 12095 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12096 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12097 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 12098 | echo --without-universal-newlines is unsupported, see README |
| 12099 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 12100 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 12101 | |
| 12102 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 12103 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 12104 | _ACEOF |
| 12105 | |
| 12106 | fi |
| 12107 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 12108 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 12109 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 12110 | # Check for --with-doc-strings |
| 12111 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 12112 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 12113 | |
| 12114 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 12115 | if test "${with_doc_strings+set}" = set; then |
| 12116 | withval="$with_doc_strings" |
| 12117 | |
| 12118 | fi; |
| 12119 | |
| 12120 | if test -z "$with_doc_strings" |
| 12121 | then with_doc_strings="yes" |
| 12122 | fi |
| 12123 | if test "$with_doc_strings" != "no" |
| 12124 | then |
| 12125 | |
| 12126 | cat >>confdefs.h <<\_ACEOF |
| 12127 | #define WITH_DOC_STRINGS 1 |
| 12128 | _ACEOF |
| 12129 | |
| 12130 | fi |
| 12131 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 12132 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 12133 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12134 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 12136 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 12137 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12138 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 12139 | if test "${with_pymalloc+set}" = set; then |
| 12140 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 12143 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12144 | if test -z "$with_pymalloc" |
| 12145 | then with_pymalloc="yes" |
| 12146 | fi |
| 12147 | if test "$with_pymalloc" != "no" |
| 12148 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12149 | |
| 12150 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12151 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12152 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12153 | |
| 12154 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 12156 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 12157 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12158 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12159 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 12160 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 12161 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12162 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 12163 | if test "${with_wctype_functions+set}" = set; then |
| 12164 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12166 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12167 | then |
| 12168 | |
| 12169 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12170 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12171 | _ACEOF |
| 12172 | |
| 12173 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12174 | echo "${ECHO_T}yes" >&6 |
| 12175 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12176 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12177 | fi |
| 12178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | echo "$as_me:$LINENO: result: no" >&5 |
| 12180 | echo "${ECHO_T}no" >&6 |
| 12181 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12182 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12183 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12184 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12185 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 12188 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 12189 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12190 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12191 | if test "${with_sgi_dl+set}" = set; then |
| 12192 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12193 | |
| 12194 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12195 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12196 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12197 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 | |
| 12199 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12200 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12201 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12202 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12203 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12204 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 12205 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 12206 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12207 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 12208 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 12209 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12210 | fi |
| 12211 | DLINCLDIR=${dldir} |
| 12212 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12214 | echo "$as_me:$LINENO: result: no" >&5 |
| 12215 | echo "${ECHO_T}no" >&6 |
| 12216 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12217 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12218 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 12219 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12220 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12221 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12222 | if test "${with_dl_dld+set}" = set; then |
| 12223 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12224 | |
| 12225 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12226 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12227 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12228 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12229 | |
| 12230 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12231 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12232 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12233 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12234 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12235 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 12236 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 12237 | 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] | 12238 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12239 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 12240 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 12241 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12242 | fi |
| 12243 | DLINCLDIR=${dldir} |
| 12244 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12246 | echo "$as_me:$LINENO: result: no" >&5 |
| 12247 | echo "${ECHO_T}no" >&6 |
| 12248 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12249 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12250 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 12251 | # 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] | 12252 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12253 | for ac_func in dlopen |
| 12254 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12255 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12256 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12257 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12258 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | cat >conftest.$ac_ext <<_ACEOF |
| 12262 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12263 | #include "confdefs.h" |
| 12264 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12265 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12266 | #include <assert.h> |
| 12267 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12268 | #ifdef __cplusplus |
| 12269 | extern "C" |
| 12270 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12271 | /* 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] | 12272 | builtin and then its argument prototype would still apply. */ |
| 12273 | char $ac_func (); |
| 12274 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12275 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12276 | #ifdef F77_DUMMY_MAIN |
| 12277 | # ifdef __cplusplus |
| 12278 | extern "C" |
| 12279 | # endif |
| 12280 | int F77_DUMMY_MAIN() { return 1; } |
| 12281 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | int |
| 12283 | main () |
| 12284 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12285 | /* The GNU C library defines this for functions which it implements |
| 12286 | to always fail with ENOSYS. Some functions are actually named |
| 12287 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12288 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12289 | choke me |
| 12290 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12291 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12292 | #endif |
| 12293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12294 | ; |
| 12295 | return 0; |
| 12296 | } |
| 12297 | _ACEOF |
| 12298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12300 | (eval $ac_link) 2>&5 |
| 12301 | ac_status=$? |
| 12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12303 | (exit $ac_status); } && |
| 12304 | { ac_try='test -s conftest$ac_exeext' |
| 12305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12306 | (eval $ac_try) 2>&5 |
| 12307 | ac_status=$? |
| 12308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12309 | (exit $ac_status); }; }; then |
| 12310 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12311 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | echo "$as_me: failed program was:" >&5 |
| 12313 | cat conftest.$ac_ext >&5 |
| 12314 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12315 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12317 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12318 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12319 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12320 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12321 | cat >>confdefs.h <<_ACEOF |
| 12322 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12323 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12324 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12325 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12326 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12327 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12328 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12329 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12330 | # loading of modules. |
| 12331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12333 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12334 | if test -z "$DYNLOADFILE" |
| 12335 | then |
| 12336 | case $ac_sys_system/$ac_sys_release in |
| 12337 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 12338 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 12339 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12340 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12341 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12342 | *) |
| 12343 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12344 | # out any dynamic loading |
| 12345 | if test "$ac_cv_func_dlopen" = yes |
| 12346 | then DYNLOADFILE="dynload_shlib.o" |
| 12347 | else DYNLOADFILE="dynload_stub.o" |
| 12348 | fi |
| 12349 | ;; |
| 12350 | esac |
| 12351 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 12353 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12354 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12355 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | |
| 12357 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12358 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12359 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12360 | |
| 12361 | fi |
| 12362 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12363 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12364 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 12367 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12368 | if test -z "$MACHDEP_OBJS" |
| 12369 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12370 | MACHDEP_OBJS=$extra_machdep_objs |
| 12371 | else |
| 12372 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12373 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12374 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 12375 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12376 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12377 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 | |
| 12379 | |
| 12380 | |
| 12381 | |
| 12382 | |
| 12383 | |
| 12384 | |
| 12385 | |
| 12386 | |
| 12387 | |
| 12388 | |
| 12389 | |
| 12390 | |
| 12391 | |
| 12392 | |
| 12393 | |
| 12394 | |
| 12395 | |
| 12396 | |
| 12397 | |
| 12398 | |
| 12399 | |
| 12400 | |
| 12401 | |
| 12402 | |
| 12403 | |
| 12404 | |
| 12405 | |
| 12406 | |
| 12407 | |
| 12408 | |
| 12409 | |
| 12410 | |
| 12411 | |
| 12412 | |
| 12413 | |
| 12414 | |
| 12415 | |
| 12416 | |
| 12417 | |
| 12418 | |
| 12419 | |
| 12420 | |
| 12421 | |
| 12422 | |
| 12423 | |
| 12424 | |
| 12425 | |
| 12426 | |
| 12427 | |
| 12428 | |
| 12429 | |
| 12430 | |
| 12431 | |
| 12432 | |
| 12433 | |
| 12434 | |
| 12435 | |
| 12436 | |
| 12437 | |
| 12438 | |
| 12439 | |
| 12440 | |
| 12441 | |
| 12442 | |
| 12443 | |
| 12444 | |
| 12445 | |
| 12446 | |
| 12447 | |
| 12448 | |
| 12449 | |
| 12450 | |
Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 12451 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12452 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12453 | fchdir fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12454 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 12455 | getpriority getpwent getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12456 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 12457 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 12458 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12459 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 12460 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12461 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12462 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12463 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12464 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12465 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12466 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12467 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12468 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12471 | cat >conftest.$ac_ext <<_ACEOF |
| 12472 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12473 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12474 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12475 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12476 | #include <assert.h> |
| 12477 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12478 | #ifdef __cplusplus |
| 12479 | extern "C" |
| 12480 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12481 | /* 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] | 12482 | builtin and then its argument prototype would still apply. */ |
| 12483 | char $ac_func (); |
| 12484 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12485 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12486 | #ifdef F77_DUMMY_MAIN |
| 12487 | # ifdef __cplusplus |
| 12488 | extern "C" |
| 12489 | # endif |
| 12490 | int F77_DUMMY_MAIN() { return 1; } |
| 12491 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12492 | int |
| 12493 | main () |
| 12494 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12495 | /* The GNU C library defines this for functions which it implements |
| 12496 | to always fail with ENOSYS. Some functions are actually named |
| 12497 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12498 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12499 | choke me |
| 12500 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12501 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12502 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12504 | ; |
| 12505 | return 0; |
| 12506 | } |
| 12507 | _ACEOF |
| 12508 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12510 | (eval $ac_link) 2>&5 |
| 12511 | ac_status=$? |
| 12512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12513 | (exit $ac_status); } && |
| 12514 | { ac_try='test -s conftest$ac_exeext' |
| 12515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12516 | (eval $ac_try) 2>&5 |
| 12517 | ac_status=$? |
| 12518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12519 | (exit $ac_status); }; }; then |
| 12520 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 | echo "$as_me: failed program was:" >&5 |
| 12523 | cat conftest.$ac_ext >&5 |
| 12524 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12525 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12527 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12529 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12530 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12531 | cat >>confdefs.h <<_ACEOF |
| 12532 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12533 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12534 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12535 | fi |
| 12536 | done |
| 12537 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12538 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12539 | # For some functions, having a definition is not sufficient, since |
| 12540 | # we want to take their address. |
| 12541 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12542 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12543 | cat >conftest.$ac_ext <<_ACEOF |
| 12544 | #line $LINENO "configure" |
| 12545 | #include "confdefs.h" |
| 12546 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12547 | #ifdef F77_DUMMY_MAIN |
| 12548 | # ifdef __cplusplus |
| 12549 | extern "C" |
| 12550 | # endif |
| 12551 | int F77_DUMMY_MAIN() { return 1; } |
| 12552 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12553 | int |
| 12554 | main () |
| 12555 | { |
| 12556 | void *x=chroot |
| 12557 | ; |
| 12558 | return 0; |
| 12559 | } |
| 12560 | _ACEOF |
| 12561 | rm -f conftest.$ac_objext |
| 12562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12563 | (eval $ac_compile) 2>&5 |
| 12564 | ac_status=$? |
| 12565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12566 | (exit $ac_status); } && |
| 12567 | { ac_try='test -s conftest.$ac_objext' |
| 12568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12569 | (eval $ac_try) 2>&5 |
| 12570 | ac_status=$? |
| 12571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12572 | (exit $ac_status); }; }; then |
| 12573 | |
| 12574 | cat >>confdefs.h <<\_ACEOF |
| 12575 | #define HAVE_CHROOT 1 |
| 12576 | _ACEOF |
| 12577 | |
| 12578 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12579 | echo "${ECHO_T}yes" >&6 |
| 12580 | else |
| 12581 | echo "$as_me: failed program was:" >&5 |
| 12582 | cat conftest.$ac_ext >&5 |
| 12583 | echo "$as_me:$LINENO: result: no" >&5 |
| 12584 | echo "${ECHO_T}no" >&6 |
| 12585 | |
| 12586 | fi |
| 12587 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12588 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12589 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12590 | cat >conftest.$ac_ext <<_ACEOF |
| 12591 | #line $LINENO "configure" |
| 12592 | #include "confdefs.h" |
| 12593 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12594 | #ifdef F77_DUMMY_MAIN |
| 12595 | # ifdef __cplusplus |
| 12596 | extern "C" |
| 12597 | # endif |
| 12598 | int F77_DUMMY_MAIN() { return 1; } |
| 12599 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12600 | int |
| 12601 | main () |
| 12602 | { |
| 12603 | void *x=link |
| 12604 | ; |
| 12605 | return 0; |
| 12606 | } |
| 12607 | _ACEOF |
| 12608 | rm -f conftest.$ac_objext |
| 12609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12610 | (eval $ac_compile) 2>&5 |
| 12611 | ac_status=$? |
| 12612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12613 | (exit $ac_status); } && |
| 12614 | { ac_try='test -s conftest.$ac_objext' |
| 12615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12616 | (eval $ac_try) 2>&5 |
| 12617 | ac_status=$? |
| 12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12619 | (exit $ac_status); }; }; then |
| 12620 | |
| 12621 | cat >>confdefs.h <<\_ACEOF |
| 12622 | #define HAVE_LINK 1 |
| 12623 | _ACEOF |
| 12624 | |
| 12625 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12626 | echo "${ECHO_T}yes" >&6 |
| 12627 | else |
| 12628 | echo "$as_me: failed program was:" >&5 |
| 12629 | cat conftest.$ac_ext >&5 |
| 12630 | echo "$as_me:$LINENO: result: no" >&5 |
| 12631 | echo "${ECHO_T}no" >&6 |
| 12632 | |
| 12633 | fi |
| 12634 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12635 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12636 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12637 | cat >conftest.$ac_ext <<_ACEOF |
| 12638 | #line $LINENO "configure" |
| 12639 | #include "confdefs.h" |
| 12640 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12641 | #ifdef F77_DUMMY_MAIN |
| 12642 | # ifdef __cplusplus |
| 12643 | extern "C" |
| 12644 | # endif |
| 12645 | int F77_DUMMY_MAIN() { return 1; } |
| 12646 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12647 | int |
| 12648 | main () |
| 12649 | { |
| 12650 | void *x=symlink |
| 12651 | ; |
| 12652 | return 0; |
| 12653 | } |
| 12654 | _ACEOF |
| 12655 | rm -f conftest.$ac_objext |
| 12656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12657 | (eval $ac_compile) 2>&5 |
| 12658 | ac_status=$? |
| 12659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12660 | (exit $ac_status); } && |
| 12661 | { ac_try='test -s conftest.$ac_objext' |
| 12662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12663 | (eval $ac_try) 2>&5 |
| 12664 | ac_status=$? |
| 12665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12666 | (exit $ac_status); }; }; then |
| 12667 | |
| 12668 | cat >>confdefs.h <<\_ACEOF |
| 12669 | #define HAVE_SYMLINK 1 |
| 12670 | _ACEOF |
| 12671 | |
| 12672 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12673 | echo "${ECHO_T}yes" >&6 |
| 12674 | else |
| 12675 | echo "$as_me: failed program was:" >&5 |
| 12676 | cat conftest.$ac_ext >&5 |
| 12677 | echo "$as_me:$LINENO: result: no" >&5 |
| 12678 | echo "${ECHO_T}no" >&6 |
| 12679 | |
| 12680 | fi |
| 12681 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12682 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12683 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 12684 | # functions ctermid_r, setgroups in the library, but no prototype |
| 12685 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 12686 | # address to avoid compiler warnings and potential miscompilations |
| 12687 | # because of the missing prototypes. |
| 12688 | |
| 12689 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 12690 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 12691 | cat >conftest.$ac_ext <<_ACEOF |
| 12692 | #line $LINENO "configure" |
| 12693 | #include "confdefs.h" |
| 12694 | |
| 12695 | #include "confdefs.h" |
| 12696 | #include <stdio.h> |
| 12697 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12698 | #ifdef F77_DUMMY_MAIN |
| 12699 | # ifdef __cplusplus |
| 12700 | extern "C" |
| 12701 | # endif |
| 12702 | int F77_DUMMY_MAIN() { return 1; } |
| 12703 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12704 | int |
| 12705 | main () |
| 12706 | { |
| 12707 | void* p = ctermid_r |
| 12708 | ; |
| 12709 | return 0; |
| 12710 | } |
| 12711 | _ACEOF |
| 12712 | rm -f conftest.$ac_objext |
| 12713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12714 | (eval $ac_compile) 2>&5 |
| 12715 | ac_status=$? |
| 12716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12717 | (exit $ac_status); } && |
| 12718 | { ac_try='test -s conftest.$ac_objext' |
| 12719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12720 | (eval $ac_try) 2>&5 |
| 12721 | ac_status=$? |
| 12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12723 | (exit $ac_status); }; }; then |
| 12724 | |
| 12725 | cat >>confdefs.h <<\_ACEOF |
| 12726 | #define HAVE_CTERMID_R 1 |
| 12727 | _ACEOF |
| 12728 | |
| 12729 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12730 | echo "${ECHO_T}yes" >&6 |
| 12731 | else |
| 12732 | echo "$as_me: failed program was:" >&5 |
| 12733 | cat conftest.$ac_ext >&5 |
| 12734 | echo "$as_me:$LINENO: result: no" >&5 |
| 12735 | echo "${ECHO_T}no" >&6 |
| 12736 | |
| 12737 | fi |
| 12738 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12739 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12740 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 12741 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 12742 | cat >conftest.$ac_ext <<_ACEOF |
| 12743 | #line $LINENO "configure" |
| 12744 | #include "confdefs.h" |
| 12745 | |
| 12746 | #include "confdefs.h" |
| 12747 | #include <sys/file.h> |
| 12748 | |
| 12749 | #ifdef F77_DUMMY_MAIN |
| 12750 | # ifdef __cplusplus |
| 12751 | extern "C" |
| 12752 | # endif |
| 12753 | int F77_DUMMY_MAIN() { return 1; } |
| 12754 | #endif |
| 12755 | int |
| 12756 | main () |
| 12757 | { |
| 12758 | void* p = flock |
| 12759 | ; |
| 12760 | return 0; |
| 12761 | } |
| 12762 | _ACEOF |
| 12763 | rm -f conftest.$ac_objext |
| 12764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12765 | (eval $ac_compile) 2>&5 |
| 12766 | ac_status=$? |
| 12767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12768 | (exit $ac_status); } && |
| 12769 | { ac_try='test -s conftest.$ac_objext' |
| 12770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12771 | (eval $ac_try) 2>&5 |
| 12772 | ac_status=$? |
| 12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12774 | (exit $ac_status); }; }; then |
| 12775 | |
| 12776 | cat >>confdefs.h <<\_ACEOF |
| 12777 | #define HAVE_FLOCK 1 |
| 12778 | _ACEOF |
| 12779 | |
| 12780 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12781 | echo "${ECHO_T}yes" >&6 |
| 12782 | else |
| 12783 | echo "$as_me: failed program was:" >&5 |
| 12784 | cat conftest.$ac_ext >&5 |
| 12785 | echo "$as_me:$LINENO: result: no" >&5 |
| 12786 | echo "${ECHO_T}no" >&6 |
| 12787 | |
| 12788 | fi |
| 12789 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12790 | |
| 12791 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 12792 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 12793 | cat >conftest.$ac_ext <<_ACEOF |
| 12794 | #line $LINENO "configure" |
| 12795 | #include "confdefs.h" |
| 12796 | |
| 12797 | #include "confdefs.h" |
| 12798 | #include <unistd.h> |
| 12799 | |
| 12800 | #ifdef F77_DUMMY_MAIN |
| 12801 | # ifdef __cplusplus |
| 12802 | extern "C" |
| 12803 | # endif |
| 12804 | int F77_DUMMY_MAIN() { return 1; } |
| 12805 | #endif |
| 12806 | int |
| 12807 | main () |
| 12808 | { |
| 12809 | void* p = getpagesize |
| 12810 | ; |
| 12811 | return 0; |
| 12812 | } |
| 12813 | _ACEOF |
| 12814 | rm -f conftest.$ac_objext |
| 12815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12816 | (eval $ac_compile) 2>&5 |
| 12817 | ac_status=$? |
| 12818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12819 | (exit $ac_status); } && |
| 12820 | { ac_try='test -s conftest.$ac_objext' |
| 12821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12822 | (eval $ac_try) 2>&5 |
| 12823 | ac_status=$? |
| 12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12825 | (exit $ac_status); }; }; then |
| 12826 | |
| 12827 | cat >>confdefs.h <<\_ACEOF |
| 12828 | #define HAVE_GETPAGESIZE 1 |
| 12829 | _ACEOF |
| 12830 | |
| 12831 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12832 | echo "${ECHO_T}yes" >&6 |
| 12833 | else |
| 12834 | echo "$as_me: failed program was:" >&5 |
| 12835 | cat conftest.$ac_ext >&5 |
| 12836 | echo "$as_me:$LINENO: result: no" >&5 |
| 12837 | echo "${ECHO_T}no" >&6 |
| 12838 | |
| 12839 | fi |
| 12840 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12841 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12842 | for ac_prog in true |
| 12843 | do |
| 12844 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12845 | set dummy $ac_prog; ac_word=$2 |
| 12846 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12848 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 12849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12850 | else |
| 12851 | if test -n "$TRUE"; then |
| 12852 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 12853 | else |
| 12854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12855 | for as_dir in $PATH |
| 12856 | do |
| 12857 | IFS=$as_save_IFS |
| 12858 | test -z "$as_dir" && as_dir=. |
| 12859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12861 | ac_cv_prog_TRUE="$ac_prog" |
| 12862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12863 | break 2 |
| 12864 | fi |
| 12865 | done |
| 12866 | done |
| 12867 | |
| 12868 | fi |
| 12869 | fi |
| 12870 | TRUE=$ac_cv_prog_TRUE |
| 12871 | if test -n "$TRUE"; then |
| 12872 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 12873 | echo "${ECHO_T}$TRUE" >&6 |
| 12874 | else |
| 12875 | echo "$as_me:$LINENO: result: no" >&5 |
| 12876 | echo "${ECHO_T}no" >&6 |
| 12877 | fi |
| 12878 | |
| 12879 | test -n "$TRUE" && break |
| 12880 | done |
| 12881 | test -n "$TRUE" || TRUE="/bin/true" |
| 12882 | |
| 12883 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12884 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 12885 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 12886 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 12887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12888 | else |
| 12889 | ac_check_lib_save_LIBS=$LIBS |
| 12890 | LIBS="-lc $LIBS" |
| 12891 | cat >conftest.$ac_ext <<_ACEOF |
| 12892 | #line $LINENO "configure" |
| 12893 | #include "confdefs.h" |
| 12894 | |
| 12895 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12896 | #ifdef __cplusplus |
| 12897 | extern "C" |
| 12898 | #endif |
| 12899 | /* We use char because int might match the return type of a gcc2 |
| 12900 | builtin and then its argument prototype would still apply. */ |
| 12901 | char inet_aton (); |
| 12902 | #ifdef F77_DUMMY_MAIN |
| 12903 | # ifdef __cplusplus |
| 12904 | extern "C" |
| 12905 | # endif |
| 12906 | int F77_DUMMY_MAIN() { return 1; } |
| 12907 | #endif |
| 12908 | int |
| 12909 | main () |
| 12910 | { |
| 12911 | inet_aton (); |
| 12912 | ; |
| 12913 | return 0; |
| 12914 | } |
| 12915 | _ACEOF |
| 12916 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12918 | (eval $ac_link) 2>&5 |
| 12919 | ac_status=$? |
| 12920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12921 | (exit $ac_status); } && |
| 12922 | { ac_try='test -s conftest$ac_exeext' |
| 12923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12924 | (eval $ac_try) 2>&5 |
| 12925 | ac_status=$? |
| 12926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12927 | (exit $ac_status); }; }; then |
| 12928 | ac_cv_lib_c_inet_aton=yes |
| 12929 | else |
| 12930 | echo "$as_me: failed program was:" >&5 |
| 12931 | cat conftest.$ac_ext >&5 |
| 12932 | ac_cv_lib_c_inet_aton=no |
| 12933 | fi |
| 12934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12935 | LIBS=$ac_check_lib_save_LIBS |
| 12936 | fi |
| 12937 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 12938 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 12939 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12940 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12941 | else |
| 12942 | |
| 12943 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 12944 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 12945 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 12946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12947 | else |
| 12948 | ac_check_lib_save_LIBS=$LIBS |
| 12949 | LIBS="-lresolv $LIBS" |
| 12950 | cat >conftest.$ac_ext <<_ACEOF |
| 12951 | #line $LINENO "configure" |
| 12952 | #include "confdefs.h" |
| 12953 | |
| 12954 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12955 | #ifdef __cplusplus |
| 12956 | extern "C" |
| 12957 | #endif |
| 12958 | /* We use char because int might match the return type of a gcc2 |
| 12959 | builtin and then its argument prototype would still apply. */ |
| 12960 | char inet_aton (); |
| 12961 | #ifdef F77_DUMMY_MAIN |
| 12962 | # ifdef __cplusplus |
| 12963 | extern "C" |
| 12964 | # endif |
| 12965 | int F77_DUMMY_MAIN() { return 1; } |
| 12966 | #endif |
| 12967 | int |
| 12968 | main () |
| 12969 | { |
| 12970 | inet_aton (); |
| 12971 | ; |
| 12972 | return 0; |
| 12973 | } |
| 12974 | _ACEOF |
| 12975 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12977 | (eval $ac_link) 2>&5 |
| 12978 | ac_status=$? |
| 12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12980 | (exit $ac_status); } && |
| 12981 | { ac_try='test -s conftest$ac_exeext' |
| 12982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12983 | (eval $ac_try) 2>&5 |
| 12984 | ac_status=$? |
| 12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12986 | (exit $ac_status); }; }; then |
| 12987 | ac_cv_lib_resolv_inet_aton=yes |
| 12988 | else |
| 12989 | echo "$as_me: failed program was:" >&5 |
| 12990 | cat conftest.$ac_ext >&5 |
| 12991 | ac_cv_lib_resolv_inet_aton=no |
| 12992 | fi |
| 12993 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12994 | LIBS=$ac_check_lib_save_LIBS |
| 12995 | fi |
| 12996 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 12997 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 12998 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 12999 | cat >>confdefs.h <<_ACEOF |
| 13000 | #define HAVE_LIBRESOLV 1 |
| 13001 | _ACEOF |
| 13002 | |
| 13003 | LIBS="-lresolv $LIBS" |
| 13004 | |
| 13005 | fi |
| 13006 | |
| 13007 | |
| 13008 | fi |
| 13009 | |
| 13010 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13011 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 13012 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 13013 | cat >conftest.$ac_ext <<_ACEOF |
| 13014 | #line $LINENO "configure" |
| 13015 | #include "confdefs.h" |
| 13016 | |
| 13017 | #include "confdefs.h" |
| 13018 | #include <netdb.h> |
| 13019 | |
| 13020 | #ifdef F77_DUMMY_MAIN |
| 13021 | # ifdef __cplusplus |
| 13022 | extern "C" |
| 13023 | # endif |
| 13024 | int F77_DUMMY_MAIN() { return 1; } |
| 13025 | #endif |
| 13026 | int |
| 13027 | main () |
| 13028 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13029 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13030 | ; |
| 13031 | return 0; |
| 13032 | } |
| 13033 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13036 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13037 | ac_status=$? |
| 13038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13039 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13040 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13042 | (eval $ac_try) 2>&5 |
| 13043 | ac_status=$? |
| 13044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13045 | (exit $ac_status); }; }; then |
| 13046 | |
| 13047 | cat >>confdefs.h <<\_ACEOF |
| 13048 | #define HAVE_HSTRERROR 1 |
| 13049 | _ACEOF |
| 13050 | |
| 13051 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13052 | echo "${ECHO_T}yes" >&6 |
| 13053 | else |
| 13054 | echo "$as_me: failed program was:" >&5 |
| 13055 | cat conftest.$ac_ext >&5 |
| 13056 | echo "$as_me:$LINENO: result: no" >&5 |
| 13057 | echo "${ECHO_T}no" >&6 |
| 13058 | |
| 13059 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13061 | |
| 13062 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 13063 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 13064 | cat >conftest.$ac_ext <<_ACEOF |
| 13065 | #line $LINENO "configure" |
| 13066 | #include "confdefs.h" |
| 13067 | |
| 13068 | #include "confdefs.h" |
| 13069 | #include <sys/socket.h> |
| 13070 | #include <netinet/in.h> |
| 13071 | #include <arpa/inet.h> |
| 13072 | |
| 13073 | #ifdef F77_DUMMY_MAIN |
| 13074 | # ifdef __cplusplus |
| 13075 | extern "C" |
| 13076 | # endif |
| 13077 | int F77_DUMMY_MAIN() { return 1; } |
| 13078 | #endif |
| 13079 | int |
| 13080 | main () |
| 13081 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13082 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13083 | ; |
| 13084 | return 0; |
| 13085 | } |
| 13086 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13087 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13089 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13090 | ac_status=$? |
| 13091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13092 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13093 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13095 | (eval $ac_try) 2>&5 |
| 13096 | ac_status=$? |
| 13097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13098 | (exit $ac_status); }; }; then |
| 13099 | |
| 13100 | cat >>confdefs.h <<\_ACEOF |
| 13101 | #define HAVE_INET_ATON 1 |
| 13102 | _ACEOF |
| 13103 | |
| 13104 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13105 | echo "${ECHO_T}yes" >&6 |
| 13106 | else |
| 13107 | echo "$as_me: failed program was:" >&5 |
| 13108 | cat conftest.$ac_ext >&5 |
| 13109 | echo "$as_me:$LINENO: result: no" >&5 |
| 13110 | echo "${ECHO_T}no" >&6 |
| 13111 | |
| 13112 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 13113 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13114 | |
| 13115 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 13116 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 13117 | cat >conftest.$ac_ext <<_ACEOF |
| 13118 | #line $LINENO "configure" |
| 13119 | #include "confdefs.h" |
| 13120 | |
| 13121 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13122 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13123 | #include <sys/socket.h> |
| 13124 | #include <netinet/in.h> |
| 13125 | #include <arpa/inet.h> |
| 13126 | |
| 13127 | #ifdef F77_DUMMY_MAIN |
| 13128 | # ifdef __cplusplus |
| 13129 | extern "C" |
| 13130 | # endif |
| 13131 | int F77_DUMMY_MAIN() { return 1; } |
| 13132 | #endif |
| 13133 | int |
| 13134 | main () |
| 13135 | { |
| 13136 | void* p = inet_pton |
| 13137 | ; |
| 13138 | return 0; |
| 13139 | } |
| 13140 | _ACEOF |
| 13141 | rm -f conftest.$ac_objext |
| 13142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13143 | (eval $ac_compile) 2>&5 |
| 13144 | ac_status=$? |
| 13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); } && |
| 13147 | { ac_try='test -s conftest.$ac_objext' |
| 13148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13149 | (eval $ac_try) 2>&5 |
| 13150 | ac_status=$? |
| 13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13152 | (exit $ac_status); }; }; then |
| 13153 | |
| 13154 | cat >>confdefs.h <<\_ACEOF |
| 13155 | #define HAVE_INET_PTON 1 |
| 13156 | _ACEOF |
| 13157 | |
| 13158 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13159 | echo "${ECHO_T}yes" >&6 |
| 13160 | else |
| 13161 | echo "$as_me: failed program was:" >&5 |
| 13162 | cat conftest.$ac_ext >&5 |
| 13163 | echo "$as_me:$LINENO: result: no" >&5 |
| 13164 | echo "${ECHO_T}no" >&6 |
| 13165 | |
| 13166 | fi |
| 13167 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13168 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13169 | # On some systems, setgroups is in unistd.h, on others, in grp.h |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13170 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 13171 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 13172 | cat >conftest.$ac_ext <<_ACEOF |
| 13173 | #line $LINENO "configure" |
| 13174 | #include "confdefs.h" |
| 13175 | |
| 13176 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13177 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 13178 | #ifdef HAVE_GRP_H |
| 13179 | #include <grp.h> |
| 13180 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13181 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13182 | #ifdef F77_DUMMY_MAIN |
| 13183 | # ifdef __cplusplus |
| 13184 | extern "C" |
| 13185 | # endif |
| 13186 | int F77_DUMMY_MAIN() { return 1; } |
| 13187 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13188 | int |
| 13189 | main () |
| 13190 | { |
| 13191 | void* p = setgroups |
| 13192 | ; |
| 13193 | return 0; |
| 13194 | } |
| 13195 | _ACEOF |
| 13196 | rm -f conftest.$ac_objext |
| 13197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13198 | (eval $ac_compile) 2>&5 |
| 13199 | ac_status=$? |
| 13200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13201 | (exit $ac_status); } && |
| 13202 | { ac_try='test -s conftest.$ac_objext' |
| 13203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13204 | (eval $ac_try) 2>&5 |
| 13205 | ac_status=$? |
| 13206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13207 | (exit $ac_status); }; }; then |
| 13208 | |
| 13209 | cat >>confdefs.h <<\_ACEOF |
| 13210 | #define HAVE_SETGROUPS 1 |
| 13211 | _ACEOF |
| 13212 | |
| 13213 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13214 | echo "${ECHO_T}yes" >&6 |
| 13215 | else |
| 13216 | echo "$as_me: failed program was:" >&5 |
| 13217 | cat conftest.$ac_ext >&5 |
| 13218 | echo "$as_me:$LINENO: result: no" >&5 |
| 13219 | echo "${ECHO_T}no" >&6 |
| 13220 | |
| 13221 | fi |
| 13222 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13223 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13224 | # check for openpty and forkpty |
| 13225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13226 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13227 | for ac_func in openpty |
| 13228 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13229 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13230 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13231 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13232 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13235 | cat >conftest.$ac_ext <<_ACEOF |
| 13236 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13237 | #include "confdefs.h" |
| 13238 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13240 | #include <assert.h> |
| 13241 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13242 | #ifdef __cplusplus |
| 13243 | extern "C" |
| 13244 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13245 | /* 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] | 13246 | builtin and then its argument prototype would still apply. */ |
| 13247 | char $ac_func (); |
| 13248 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13249 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13250 | #ifdef F77_DUMMY_MAIN |
| 13251 | # ifdef __cplusplus |
| 13252 | extern "C" |
| 13253 | # endif |
| 13254 | int F77_DUMMY_MAIN() { return 1; } |
| 13255 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13256 | int |
| 13257 | main () |
| 13258 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13259 | /* The GNU C library defines this for functions which it implements |
| 13260 | to always fail with ENOSYS. Some functions are actually named |
| 13261 | something starting with __ and the normal name is an alias. */ |
| 13262 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13263 | choke me |
| 13264 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13265 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13266 | #endif |
| 13267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13268 | ; |
| 13269 | return 0; |
| 13270 | } |
| 13271 | _ACEOF |
| 13272 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13274 | (eval $ac_link) 2>&5 |
| 13275 | ac_status=$? |
| 13276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13277 | (exit $ac_status); } && |
| 13278 | { ac_try='test -s conftest$ac_exeext' |
| 13279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13280 | (eval $ac_try) 2>&5 |
| 13281 | ac_status=$? |
| 13282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13283 | (exit $ac_status); }; }; then |
| 13284 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13286 | echo "$as_me: failed program was:" >&5 |
| 13287 | cat conftest.$ac_ext >&5 |
| 13288 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13289 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13290 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13291 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13293 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13294 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13295 | cat >>confdefs.h <<_ACEOF |
| 13296 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13297 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13298 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 13301 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 13302 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 13303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13305 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13306 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13307 | cat >conftest.$ac_ext <<_ACEOF |
| 13308 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13309 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13310 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13311 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13312 | #ifdef __cplusplus |
| 13313 | extern "C" |
| 13314 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13315 | /* 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] | 13316 | builtin and then its argument prototype would still apply. */ |
| 13317 | char openpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13318 | #ifdef F77_DUMMY_MAIN |
| 13319 | # ifdef __cplusplus |
| 13320 | extern "C" |
| 13321 | # endif |
| 13322 | int F77_DUMMY_MAIN() { return 1; } |
| 13323 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | int |
| 13325 | main () |
| 13326 | { |
| 13327 | openpty (); |
| 13328 | ; |
| 13329 | return 0; |
| 13330 | } |
| 13331 | _ACEOF |
| 13332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13334 | (eval $ac_link) 2>&5 |
| 13335 | ac_status=$? |
| 13336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13337 | (exit $ac_status); } && |
| 13338 | { ac_try='test -s conftest$ac_exeext' |
| 13339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13340 | (eval $ac_try) 2>&5 |
| 13341 | ac_status=$? |
| 13342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13343 | (exit $ac_status); }; }; then |
| 13344 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | echo "$as_me: failed program was:" >&5 |
| 13347 | cat conftest.$ac_ext >&5 |
| 13348 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13349 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13350 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13351 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13353 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 13354 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 13355 | if test $ac_cv_lib_util_openpty = yes; then |
| 13356 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13357 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13358 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13359 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13360 | fi |
| 13361 | |
| 13362 | fi |
| 13363 | done |
| 13364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13365 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13366 | for ac_func in forkpty |
| 13367 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13369 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13370 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13371 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13374 | cat >conftest.$ac_ext <<_ACEOF |
| 13375 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13376 | #include "confdefs.h" |
| 13377 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13378 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13379 | #include <assert.h> |
| 13380 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 | #ifdef __cplusplus |
| 13382 | extern "C" |
| 13383 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13384 | /* 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] | 13385 | builtin and then its argument prototype would still apply. */ |
| 13386 | char $ac_func (); |
| 13387 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13388 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13389 | #ifdef F77_DUMMY_MAIN |
| 13390 | # ifdef __cplusplus |
| 13391 | extern "C" |
| 13392 | # endif |
| 13393 | int F77_DUMMY_MAIN() { return 1; } |
| 13394 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13395 | int |
| 13396 | main () |
| 13397 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13398 | /* The GNU C library defines this for functions which it implements |
| 13399 | to always fail with ENOSYS. Some functions are actually named |
| 13400 | something starting with __ and the normal name is an alias. */ |
| 13401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13402 | choke me |
| 13403 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13405 | #endif |
| 13406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | ; |
| 13408 | return 0; |
| 13409 | } |
| 13410 | _ACEOF |
| 13411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13413 | (eval $ac_link) 2>&5 |
| 13414 | ac_status=$? |
| 13415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13416 | (exit $ac_status); } && |
| 13417 | { ac_try='test -s conftest$ac_exeext' |
| 13418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13419 | (eval $ac_try) 2>&5 |
| 13420 | ac_status=$? |
| 13421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13422 | (exit $ac_status); }; }; then |
| 13423 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | echo "$as_me: failed program was:" >&5 |
| 13426 | cat conftest.$ac_ext >&5 |
| 13427 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13432 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13433 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13434 | cat >>confdefs.h <<_ACEOF |
| 13435 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13436 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13437 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13439 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 13440 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 13441 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 13442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13445 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | cat >conftest.$ac_ext <<_ACEOF |
| 13447 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13448 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13449 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13450 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13451 | #ifdef __cplusplus |
| 13452 | extern "C" |
| 13453 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13454 | /* 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] | 13455 | builtin and then its argument prototype would still apply. */ |
| 13456 | char forkpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13457 | #ifdef F77_DUMMY_MAIN |
| 13458 | # ifdef __cplusplus |
| 13459 | extern "C" |
| 13460 | # endif |
| 13461 | int F77_DUMMY_MAIN() { return 1; } |
| 13462 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | int |
| 13464 | main () |
| 13465 | { |
| 13466 | forkpty (); |
| 13467 | ; |
| 13468 | return 0; |
| 13469 | } |
| 13470 | _ACEOF |
| 13471 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13473 | (eval $ac_link) 2>&5 |
| 13474 | ac_status=$? |
| 13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13476 | (exit $ac_status); } && |
| 13477 | { ac_try='test -s conftest$ac_exeext' |
| 13478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13479 | (eval $ac_try) 2>&5 |
| 13480 | ac_status=$? |
| 13481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13482 | (exit $ac_status); }; }; then |
| 13483 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13485 | echo "$as_me: failed program was:" >&5 |
| 13486 | cat conftest.$ac_ext >&5 |
| 13487 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13488 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13490 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13491 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13492 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 13493 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 13494 | if test $ac_cv_lib_util_forkpty = yes; then |
| 13495 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13496 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13497 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13498 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13499 | fi |
| 13500 | |
| 13501 | fi |
| 13502 | done |
| 13503 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13504 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13505 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | |
| 13507 | |
| 13508 | |
| 13509 | |
| 13510 | |
| 13511 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13512 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 13513 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13515 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13517 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | cat >conftest.$ac_ext <<_ACEOF |
| 13521 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13522 | #include "confdefs.h" |
| 13523 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13525 | #include <assert.h> |
| 13526 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | #ifdef __cplusplus |
| 13528 | extern "C" |
| 13529 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13530 | /* 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] | 13531 | builtin and then its argument prototype would still apply. */ |
| 13532 | char $ac_func (); |
| 13533 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13534 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13535 | #ifdef F77_DUMMY_MAIN |
| 13536 | # ifdef __cplusplus |
| 13537 | extern "C" |
| 13538 | # endif |
| 13539 | int F77_DUMMY_MAIN() { return 1; } |
| 13540 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13541 | int |
| 13542 | main () |
| 13543 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13544 | /* The GNU C library defines this for functions which it implements |
| 13545 | to always fail with ENOSYS. Some functions are actually named |
| 13546 | something starting with __ and the normal name is an alias. */ |
| 13547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13548 | choke me |
| 13549 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13550 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13551 | #endif |
| 13552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13553 | ; |
| 13554 | return 0; |
| 13555 | } |
| 13556 | _ACEOF |
| 13557 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13559 | (eval $ac_link) 2>&5 |
| 13560 | ac_status=$? |
| 13561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13562 | (exit $ac_status); } && |
| 13563 | { ac_try='test -s conftest$ac_exeext' |
| 13564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13565 | (eval $ac_try) 2>&5 |
| 13566 | ac_status=$? |
| 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13568 | (exit $ac_status); }; }; then |
| 13569 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13571 | echo "$as_me: failed program was:" >&5 |
| 13572 | cat conftest.$ac_ext >&5 |
| 13573 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13575 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13576 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13578 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13579 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13580 | cat >>confdefs.h <<_ACEOF |
| 13581 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13582 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13583 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13584 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13585 | done |
| 13586 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13588 | |
| 13589 | |
| 13590 | |
| 13591 | |
| 13592 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13593 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13594 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13595 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13596 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13597 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13598 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13600 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | cat >conftest.$ac_ext <<_ACEOF |
| 13602 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13603 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13604 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13606 | #include <assert.h> |
| 13607 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13608 | #ifdef __cplusplus |
| 13609 | extern "C" |
| 13610 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13611 | /* 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] | 13612 | builtin and then its argument prototype would still apply. */ |
| 13613 | char $ac_func (); |
| 13614 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13615 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13616 | #ifdef F77_DUMMY_MAIN |
| 13617 | # ifdef __cplusplus |
| 13618 | extern "C" |
| 13619 | # endif |
| 13620 | int F77_DUMMY_MAIN() { return 1; } |
| 13621 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 | int |
| 13623 | main () |
| 13624 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13625 | /* The GNU C library defines this for functions which it implements |
| 13626 | to always fail with ENOSYS. Some functions are actually named |
| 13627 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13629 | choke me |
| 13630 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13631 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13632 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | ; |
| 13635 | return 0; |
| 13636 | } |
| 13637 | _ACEOF |
| 13638 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13640 | (eval $ac_link) 2>&5 |
| 13641 | ac_status=$? |
| 13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13643 | (exit $ac_status); } && |
| 13644 | { ac_try='test -s conftest$ac_exeext' |
| 13645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13646 | (eval $ac_try) 2>&5 |
| 13647 | ac_status=$? |
| 13648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13649 | (exit $ac_status); }; }; then |
| 13650 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 | echo "$as_me: failed program was:" >&5 |
| 13653 | cat conftest.$ac_ext >&5 |
| 13654 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13655 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13656 | 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] | 13657 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13659 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13660 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13661 | cat >>confdefs.h <<_ACEOF |
| 13662 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13663 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13664 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13665 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13666 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13667 | fi |
| 13668 | done |
| 13669 | |
| 13670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13672 | for ac_func in getpgrp |
| 13673 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13675 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13677 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | cat >conftest.$ac_ext <<_ACEOF |
| 13681 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13682 | #include "confdefs.h" |
| 13683 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13685 | #include <assert.h> |
| 13686 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | #ifdef __cplusplus |
| 13688 | extern "C" |
| 13689 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13690 | /* 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] | 13691 | builtin and then its argument prototype would still apply. */ |
| 13692 | char $ac_func (); |
| 13693 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13694 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13695 | #ifdef F77_DUMMY_MAIN |
| 13696 | # ifdef __cplusplus |
| 13697 | extern "C" |
| 13698 | # endif |
| 13699 | int F77_DUMMY_MAIN() { return 1; } |
| 13700 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13701 | int |
| 13702 | main () |
| 13703 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13704 | /* The GNU C library defines this for functions which it implements |
| 13705 | to always fail with ENOSYS. Some functions are actually named |
| 13706 | something starting with __ and the normal name is an alias. */ |
| 13707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13708 | choke me |
| 13709 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13710 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13711 | #endif |
| 13712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13713 | ; |
| 13714 | return 0; |
| 13715 | } |
| 13716 | _ACEOF |
| 13717 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13719 | (eval $ac_link) 2>&5 |
| 13720 | ac_status=$? |
| 13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13722 | (exit $ac_status); } && |
| 13723 | { ac_try='test -s conftest$ac_exeext' |
| 13724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13725 | (eval $ac_try) 2>&5 |
| 13726 | ac_status=$? |
| 13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13728 | (exit $ac_status); }; }; then |
| 13729 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13731 | echo "$as_me: failed program was:" >&5 |
| 13732 | cat conftest.$ac_ext >&5 |
| 13733 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13734 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13738 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13739 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13740 | cat >>confdefs.h <<_ACEOF |
| 13741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13742 | _ACEOF |
| 13743 | cat >conftest.$ac_ext <<_ACEOF |
| 13744 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13745 | #include "confdefs.h" |
| 13746 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13747 | #ifdef F77_DUMMY_MAIN |
| 13748 | # ifdef __cplusplus |
| 13749 | extern "C" |
| 13750 | # endif |
| 13751 | int F77_DUMMY_MAIN() { return 1; } |
| 13752 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13753 | int |
| 13754 | main () |
| 13755 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13756 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13757 | ; |
| 13758 | return 0; |
| 13759 | } |
| 13760 | _ACEOF |
| 13761 | rm -f conftest.$ac_objext |
| 13762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13763 | (eval $ac_compile) 2>&5 |
| 13764 | ac_status=$? |
| 13765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13766 | (exit $ac_status); } && |
| 13767 | { ac_try='test -s conftest.$ac_objext' |
| 13768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13769 | (eval $ac_try) 2>&5 |
| 13770 | ac_status=$? |
| 13771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13772 | (exit $ac_status); }; }; then |
| 13773 | |
| 13774 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13775 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13776 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13778 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13780 | echo "$as_me: failed program was:" >&5 |
| 13781 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13782 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13783 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13784 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13785 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13786 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13787 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13788 | |
| 13789 | for ac_func in setpgrp |
| 13790 | do |
| 13791 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13792 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13793 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13794 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13797 | cat >conftest.$ac_ext <<_ACEOF |
| 13798 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13799 | #include "confdefs.h" |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13800 | /* System header to define __stub macros and hopefully few prototypes, |
| 13801 | which can conflict with char $ac_func (); below. */ |
| 13802 | #include <assert.h> |
| 13803 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13804 | #ifdef __cplusplus |
| 13805 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13806 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13807 | /* We use char because int might match the return type of a gcc2 |
| 13808 | builtin and then its argument prototype would still apply. */ |
| 13809 | char $ac_func (); |
| 13810 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13811 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13812 | #ifdef F77_DUMMY_MAIN |
| 13813 | # ifdef __cplusplus |
| 13814 | extern "C" |
| 13815 | # endif |
| 13816 | int F77_DUMMY_MAIN() { return 1; } |
| 13817 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13818 | int |
| 13819 | main () |
| 13820 | { |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13821 | /* The GNU C library defines this for functions which it implements |
| 13822 | to always fail with ENOSYS. Some functions are actually named |
| 13823 | something starting with __ and the normal name is an alias. */ |
| 13824 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13825 | choke me |
| 13826 | #else |
| 13827 | f = $ac_func; |
| 13828 | #endif |
| 13829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13830 | ; |
| 13831 | return 0; |
| 13832 | } |
| 13833 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13834 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13836 | (eval $ac_link) 2>&5 |
| 13837 | ac_status=$? |
| 13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13839 | (exit $ac_status); } && |
| 13840 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13842 | (eval $ac_try) 2>&5 |
| 13843 | ac_status=$? |
| 13844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13845 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13846 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13847 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13848 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13849 | cat conftest.$ac_ext >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13850 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13851 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13852 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13853 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13855 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13856 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13857 | cat >>confdefs.h <<_ACEOF |
| 13858 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13859 | _ACEOF |
| 13860 | cat >conftest.$ac_ext <<_ACEOF |
| 13861 | #line $LINENO "configure" |
| 13862 | #include "confdefs.h" |
| 13863 | #include <unistd.h> |
| 13864 | #ifdef F77_DUMMY_MAIN |
| 13865 | # ifdef __cplusplus |
| 13866 | extern "C" |
| 13867 | # endif |
| 13868 | int F77_DUMMY_MAIN() { return 1; } |
| 13869 | #endif |
| 13870 | int |
| 13871 | main () |
| 13872 | { |
| 13873 | setpgrp(0,0); |
| 13874 | ; |
| 13875 | return 0; |
| 13876 | } |
| 13877 | _ACEOF |
| 13878 | rm -f conftest.$ac_objext |
| 13879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13880 | (eval $ac_compile) 2>&5 |
| 13881 | ac_status=$? |
| 13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13883 | (exit $ac_status); } && |
| 13884 | { ac_try='test -s conftest.$ac_objext' |
| 13885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13886 | (eval $ac_try) 2>&5 |
| 13887 | ac_status=$? |
| 13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13889 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13890 | |
| 13891 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13892 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13893 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13894 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13895 | |
| 13896 | else |
| 13897 | echo "$as_me: failed program was:" >&5 |
| 13898 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13899 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13900 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13901 | |
| 13902 | fi |
| 13903 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13905 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13906 | for ac_func in gettimeofday |
| 13907 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13909 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13910 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13911 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13914 | cat >conftest.$ac_ext <<_ACEOF |
| 13915 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13916 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13917 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13918 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13919 | #include <assert.h> |
| 13920 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13921 | #ifdef __cplusplus |
| 13922 | extern "C" |
| 13923 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13924 | /* 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] | 13925 | builtin and then its argument prototype would still apply. */ |
| 13926 | char $ac_func (); |
| 13927 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13928 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13929 | #ifdef F77_DUMMY_MAIN |
| 13930 | # ifdef __cplusplus |
| 13931 | extern "C" |
| 13932 | # endif |
| 13933 | int F77_DUMMY_MAIN() { return 1; } |
| 13934 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13935 | int |
| 13936 | main () |
| 13937 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13938 | /* The GNU C library defines this for functions which it implements |
| 13939 | to always fail with ENOSYS. Some functions are actually named |
| 13940 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13941 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13942 | choke me |
| 13943 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13945 | #endif |
| 13946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13947 | ; |
| 13948 | return 0; |
| 13949 | } |
| 13950 | _ACEOF |
| 13951 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13953 | (eval $ac_link) 2>&5 |
| 13954 | ac_status=$? |
| 13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13956 | (exit $ac_status); } && |
| 13957 | { ac_try='test -s conftest$ac_exeext' |
| 13958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13959 | (eval $ac_try) 2>&5 |
| 13960 | ac_status=$? |
| 13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13962 | (exit $ac_status); }; }; then |
| 13963 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13964 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13965 | echo "$as_me: failed program was:" >&5 |
| 13966 | cat conftest.$ac_ext >&5 |
| 13967 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13970 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13971 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13972 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13973 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13974 | cat >>confdefs.h <<_ACEOF |
| 13975 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13976 | _ACEOF |
| 13977 | cat >conftest.$ac_ext <<_ACEOF |
| 13978 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13979 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13980 | #include <sys/time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13981 | #ifdef F77_DUMMY_MAIN |
| 13982 | # ifdef __cplusplus |
| 13983 | extern "C" |
| 13984 | # endif |
| 13985 | int F77_DUMMY_MAIN() { return 1; } |
| 13986 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13987 | int |
| 13988 | main () |
| 13989 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13990 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13991 | ; |
| 13992 | return 0; |
| 13993 | } |
| 13994 | _ACEOF |
| 13995 | rm -f conftest.$ac_objext |
| 13996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13997 | (eval $ac_compile) 2>&5 |
| 13998 | ac_status=$? |
| 13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14000 | (exit $ac_status); } && |
| 14001 | { ac_try='test -s conftest.$ac_objext' |
| 14002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14003 | (eval $ac_try) 2>&5 |
| 14004 | ac_status=$? |
| 14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14006 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14007 | : |
| 14008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14009 | echo "$as_me: failed program was:" >&5 |
| 14010 | cat conftest.$ac_ext >&5 |
| 14011 | |
| 14012 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14013 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14016 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14017 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14019 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14020 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14021 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14022 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14023 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14024 | echo "$as_me:$LINENO: checking for major" >&5 |
| 14025 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 14026 | cat >conftest.$ac_ext <<_ACEOF |
| 14027 | #line $LINENO "configure" |
| 14028 | #include "confdefs.h" |
| 14029 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 14030 | #if defined(MAJOR_IN_MKDEV) |
| 14031 | #include <sys/mkdev.h> |
| 14032 | #elif defined(MAJOR_IN_SYSMACROS) |
| 14033 | #include <sys/sysmacros.h> |
| 14034 | #else |
| 14035 | #include <sys/types.h> |
| 14036 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14037 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14038 | #ifdef F77_DUMMY_MAIN |
| 14039 | # ifdef __cplusplus |
| 14040 | extern "C" |
| 14041 | # endif |
| 14042 | int F77_DUMMY_MAIN() { return 1; } |
| 14043 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14044 | int |
| 14045 | main () |
| 14046 | { |
| 14047 | |
| 14048 | makedev(major(0),minor(0)); |
| 14049 | |
| 14050 | ; |
| 14051 | return 0; |
| 14052 | } |
| 14053 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14054 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14056 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14057 | ac_status=$? |
| 14058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14059 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14060 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 14061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14062 | (eval $ac_try) 2>&5 |
| 14063 | ac_status=$? |
| 14064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14065 | (exit $ac_status); }; }; then |
| 14066 | |
| 14067 | |
| 14068 | cat >>confdefs.h <<\_ACEOF |
| 14069 | #define HAVE_DEVICE_MACROS 1 |
| 14070 | _ACEOF |
| 14071 | |
| 14072 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14073 | echo "${ECHO_T}yes" >&6 |
| 14074 | |
| 14075 | else |
| 14076 | echo "$as_me: failed program was:" >&5 |
| 14077 | cat conftest.$ac_ext >&5 |
| 14078 | |
| 14079 | echo "$as_me:$LINENO: result: no" >&5 |
| 14080 | echo "${ECHO_T}no" >&6 |
| 14081 | |
| 14082 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 14083 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14084 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14085 | # 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] | 14086 | # for [no]getaddrinfo in netdb.h. |
| 14087 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 14088 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 14089 | cat >conftest.$ac_ext <<_ACEOF |
| 14090 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14091 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14092 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14093 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14094 | #include <sys/socket.h> |
| 14095 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 14096 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14097 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14098 | #ifdef F77_DUMMY_MAIN |
| 14099 | # ifdef __cplusplus |
| 14100 | extern "C" |
| 14101 | # endif |
| 14102 | int F77_DUMMY_MAIN() { return 1; } |
| 14103 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14104 | int |
| 14105 | main () |
| 14106 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14107 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14108 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | ; |
| 14111 | return 0; |
| 14112 | } |
| 14113 | _ACEOF |
| 14114 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14116 | (eval $ac_link) 2>&5 |
| 14117 | ac_status=$? |
| 14118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14119 | (exit $ac_status); } && |
| 14120 | { ac_try='test -s conftest$ac_exeext' |
| 14121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14122 | (eval $ac_try) 2>&5 |
| 14123 | ac_status=$? |
| 14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14125 | (exit $ac_status); }; }; then |
| 14126 | |
| 14127 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14128 | echo "${ECHO_T}yes" >&6 |
| 14129 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 14130 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14131 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14132 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14133 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14134 | buggygetaddrinfo=yes |
| 14135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14136 | cat >conftest.$ac_ext <<_ACEOF |
| 14137 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14138 | #include "confdefs.h" |
| 14139 | |
| 14140 | #include <sys/types.h> |
| 14141 | #include <netdb.h> |
| 14142 | #include <string.h> |
| 14143 | #include <sys/socket.h> |
| 14144 | #include <netinet/in.h> |
| 14145 | |
| 14146 | main() |
| 14147 | { |
| 14148 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 14149 | struct addrinfo hints, *ai, *aitop; |
| 14150 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 14151 | |
| 14152 | for (passive = 0; passive <= 1; passive++) { |
| 14153 | memset(&hints, 0, sizeof(hints)); |
| 14154 | hints.ai_family = AF_UNSPEC; |
| 14155 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 14156 | hints.ai_socktype = SOCK_STREAM; |
| 14157 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 14158 | (void)gai_strerror(gaierr); |
| 14159 | goto bad; |
| 14160 | } |
| 14161 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 14162 | if (ai->ai_addr == NULL || |
| 14163 | ai->ai_addrlen == 0 || |
| 14164 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 14165 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 14166 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 14167 | goto bad; |
| 14168 | } |
| 14169 | switch (ai->ai_family) { |
| 14170 | case AF_INET: |
| 14171 | if (strcmp(strport, "54321") != 0) { |
| 14172 | goto bad; |
| 14173 | } |
| 14174 | if (passive) { |
| 14175 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 14176 | goto bad; |
| 14177 | } |
| 14178 | } else { |
| 14179 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 14180 | goto bad; |
| 14181 | } |
| 14182 | } |
| 14183 | inet4++; |
| 14184 | break; |
| 14185 | case AF_INET6: |
| 14186 | if (strcmp(strport, "54321") != 0) { |
| 14187 | goto bad; |
| 14188 | } |
| 14189 | if (passive) { |
| 14190 | if (strcmp(straddr, "::") != 0) { |
| 14191 | goto bad; |
| 14192 | } |
| 14193 | } else { |
| 14194 | if (strcmp(straddr, "::1") != 0) { |
| 14195 | goto bad; |
| 14196 | } |
| 14197 | } |
| 14198 | inet6++; |
| 14199 | break; |
| 14200 | case AF_UNSPEC: |
| 14201 | goto bad; |
| 14202 | break; |
| 14203 | default: |
| 14204 | /* another family support? */ |
| 14205 | break; |
| 14206 | } |
| 14207 | } |
| 14208 | } |
| 14209 | |
| 14210 | if (!(inet4 == 0 || inet4 == 2)) |
| 14211 | goto bad; |
| 14212 | if (!(inet6 == 0 || inet6 == 2)) |
| 14213 | goto bad; |
| 14214 | |
| 14215 | if (aitop) |
| 14216 | freeaddrinfo(aitop); |
| 14217 | exit(0); |
| 14218 | |
| 14219 | bad: |
| 14220 | if (aitop) |
| 14221 | freeaddrinfo(aitop); |
| 14222 | exit(1); |
| 14223 | } |
| 14224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14225 | _ACEOF |
| 14226 | rm -f conftest$ac_exeext |
| 14227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14228 | (eval $ac_link) 2>&5 |
| 14229 | ac_status=$? |
| 14230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14231 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14233 | (eval $ac_try) 2>&5 |
| 14234 | ac_status=$? |
| 14235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14236 | (exit $ac_status); }; }; then |
| 14237 | echo "$as_me:$LINENO: result: good" >&5 |
| 14238 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14239 | buggygetaddrinfo=no |
| 14240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14241 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14242 | echo "$as_me: failed program was:" >&5 |
| 14243 | cat conftest.$ac_ext >&5 |
| 14244 | ( exit $ac_status ) |
| 14245 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14246 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14247 | buggygetaddrinfo=yes |
| 14248 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14249 | 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] | 14250 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14252 | echo "$as_me: failed program was:" >&5 |
| 14253 | cat conftest.$ac_ext >&5 |
| 14254 | |
| 14255 | echo "$as_me:$LINENO: result: no" >&5 |
| 14256 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14257 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14258 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14259 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14260 | 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] | 14261 | |
| 14262 | if test "$buggygetaddrinfo" = "yes"; then |
| 14263 | if test "$ipv6" = "yes"; then |
| 14264 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 14265 | echo ' or you can specify "--disable-ipv6"'. |
| 14266 | exit 1 |
| 14267 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14269 | |
| 14270 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14271 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14272 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14273 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14275 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14276 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14277 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14279 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14280 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14281 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | cat >conftest.$ac_ext <<_ACEOF |
| 14285 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14286 | #include "confdefs.h" |
| 14287 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14288 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14289 | #include <assert.h> |
| 14290 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 | #ifdef __cplusplus |
| 14292 | extern "C" |
| 14293 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14294 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14295 | builtin and then its argument prototype would still apply. */ |
| 14296 | char $ac_func (); |
| 14297 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14298 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14299 | #ifdef F77_DUMMY_MAIN |
| 14300 | # ifdef __cplusplus |
| 14301 | extern "C" |
| 14302 | # endif |
| 14303 | int F77_DUMMY_MAIN() { return 1; } |
| 14304 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | int |
| 14306 | main () |
| 14307 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14308 | /* The GNU C library defines this for functions which it implements |
| 14309 | to always fail with ENOSYS. Some functions are actually named |
| 14310 | something starting with __ and the normal name is an alias. */ |
| 14311 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14312 | choke me |
| 14313 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14315 | #endif |
| 14316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14317 | ; |
| 14318 | return 0; |
| 14319 | } |
| 14320 | _ACEOF |
| 14321 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14323 | (eval $ac_link) 2>&5 |
| 14324 | ac_status=$? |
| 14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14326 | (exit $ac_status); } && |
| 14327 | { ac_try='test -s conftest$ac_exeext' |
| 14328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14329 | (eval $ac_try) 2>&5 |
| 14330 | ac_status=$? |
| 14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14332 | (exit $ac_status); }; }; then |
| 14333 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | echo "$as_me: failed program was:" >&5 |
| 14336 | cat conftest.$ac_ext >&5 |
| 14337 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14338 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14339 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14340 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14342 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14343 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14344 | cat >>confdefs.h <<_ACEOF |
| 14345 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14346 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14347 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14348 | fi |
| 14349 | done |
| 14350 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14352 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14353 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14354 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14355 | if test "${ac_cv_header_time+set}" = set; then |
| 14356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14358 | cat >conftest.$ac_ext <<_ACEOF |
| 14359 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14360 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14361 | #include <sys/types.h> |
| 14362 | #include <sys/time.h> |
| 14363 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14364 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14365 | #ifdef F77_DUMMY_MAIN |
| 14366 | # ifdef __cplusplus |
| 14367 | extern "C" |
| 14368 | # endif |
| 14369 | int F77_DUMMY_MAIN() { return 1; } |
| 14370 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14371 | int |
| 14372 | main () |
| 14373 | { |
| 14374 | if ((struct tm *) 0) |
| 14375 | return 0; |
| 14376 | ; |
| 14377 | return 0; |
| 14378 | } |
| 14379 | _ACEOF |
| 14380 | rm -f conftest.$ac_objext |
| 14381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14382 | (eval $ac_compile) 2>&5 |
| 14383 | ac_status=$? |
| 14384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14385 | (exit $ac_status); } && |
| 14386 | { ac_try='test -s conftest.$ac_objext' |
| 14387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14388 | (eval $ac_try) 2>&5 |
| 14389 | ac_status=$? |
| 14390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14391 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14392 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14393 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14394 | echo "$as_me: failed program was:" >&5 |
| 14395 | cat conftest.$ac_ext >&5 |
| 14396 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14397 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14401 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14402 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | |
| 14404 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14405 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14406 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14407 | |
| 14408 | fi |
| 14409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14410 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 14411 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 14412 | if test "${ac_cv_struct_tm+set}" = set; then |
| 14413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | cat >conftest.$ac_ext <<_ACEOF |
| 14416 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14417 | #include "confdefs.h" |
| 14418 | #include <sys/types.h> |
| 14419 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14421 | #ifdef F77_DUMMY_MAIN |
| 14422 | # ifdef __cplusplus |
| 14423 | extern "C" |
| 14424 | # endif |
| 14425 | int F77_DUMMY_MAIN() { return 1; } |
| 14426 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14427 | int |
| 14428 | main () |
| 14429 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14430 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | ; |
| 14432 | return 0; |
| 14433 | } |
| 14434 | _ACEOF |
| 14435 | rm -f conftest.$ac_objext |
| 14436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14437 | (eval $ac_compile) 2>&5 |
| 14438 | ac_status=$? |
| 14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14440 | (exit $ac_status); } && |
| 14441 | { ac_try='test -s conftest.$ac_objext' |
| 14442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14443 | (eval $ac_try) 2>&5 |
| 14444 | ac_status=$? |
| 14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14446 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14447 | ac_cv_struct_tm=time.h |
| 14448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14449 | echo "$as_me: failed program was:" >&5 |
| 14450 | cat conftest.$ac_ext >&5 |
| 14451 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14452 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14453 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14455 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 14456 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14457 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14458 | |
| 14459 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14460 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14461 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14462 | |
| 14463 | fi |
| 14464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 14466 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 14467 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 14468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14470 | cat >conftest.$ac_ext <<_ACEOF |
| 14471 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14472 | #include "confdefs.h" |
| 14473 | #include <sys/types.h> |
| 14474 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14475 | |
| 14476 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14477 | #ifdef F77_DUMMY_MAIN |
| 14478 | # ifdef __cplusplus |
| 14479 | extern "C" |
| 14480 | # endif |
| 14481 | int F77_DUMMY_MAIN() { return 1; } |
| 14482 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | int |
| 14484 | main () |
| 14485 | { |
| 14486 | static struct tm ac_aggr; |
| 14487 | if (ac_aggr.tm_zone) |
| 14488 | return 0; |
| 14489 | ; |
| 14490 | return 0; |
| 14491 | } |
| 14492 | _ACEOF |
| 14493 | rm -f conftest.$ac_objext |
| 14494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14495 | (eval $ac_compile) 2>&5 |
| 14496 | ac_status=$? |
| 14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14498 | (exit $ac_status); } && |
| 14499 | { ac_try='test -s conftest.$ac_objext' |
| 14500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14501 | (eval $ac_try) 2>&5 |
| 14502 | ac_status=$? |
| 14503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14504 | (exit $ac_status); }; }; then |
| 14505 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14507 | echo "$as_me: failed program was:" >&5 |
| 14508 | cat conftest.$ac_ext >&5 |
| 14509 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14510 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14511 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14512 | fi |
| 14513 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 14514 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 14515 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 14516 | |
| 14517 | cat >>confdefs.h <<_ACEOF |
| 14518 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 14519 | _ACEOF |
| 14520 | |
| 14521 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14522 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14524 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 14525 | |
| 14526 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14527 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | _ACEOF |
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:$LINENO: checking for tzname" >&5 |
| 14532 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 14533 | if test "${ac_cv_var_tzname+set}" = set; then |
| 14534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14536 | cat >conftest.$ac_ext <<_ACEOF |
| 14537 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14538 | #include "confdefs.h" |
| 14539 | #include <time.h> |
| 14540 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14541 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14542 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14543 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14544 | #ifdef F77_DUMMY_MAIN |
| 14545 | # ifdef __cplusplus |
| 14546 | extern "C" |
| 14547 | # endif |
| 14548 | int F77_DUMMY_MAIN() { return 1; } |
| 14549 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | int |
| 14551 | main () |
| 14552 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14553 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14554 | ; |
| 14555 | return 0; |
| 14556 | } |
| 14557 | _ACEOF |
| 14558 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14560 | (eval $ac_link) 2>&5 |
| 14561 | ac_status=$? |
| 14562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14563 | (exit $ac_status); } && |
| 14564 | { ac_try='test -s conftest$ac_exeext' |
| 14565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14566 | (eval $ac_try) 2>&5 |
| 14567 | ac_status=$? |
| 14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14569 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14570 | ac_cv_var_tzname=yes |
| 14571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | echo "$as_me: failed program was:" >&5 |
| 14573 | cat conftest.$ac_ext >&5 |
| 14574 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14575 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14576 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14578 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 14579 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14580 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | |
| 14582 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14583 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14584 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14585 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14586 | fi |
| 14587 | fi |
| 14588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14589 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 14590 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 14591 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 14592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14593 | else |
| 14594 | cat >conftest.$ac_ext <<_ACEOF |
| 14595 | #line $LINENO "configure" |
| 14596 | #include "confdefs.h" |
| 14597 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14598 | #ifdef F77_DUMMY_MAIN |
| 14599 | # ifdef __cplusplus |
| 14600 | extern "C" |
| 14601 | # endif |
| 14602 | int F77_DUMMY_MAIN() { return 1; } |
| 14603 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14604 | int |
| 14605 | main () |
| 14606 | { |
| 14607 | static struct stat ac_aggr; |
| 14608 | if (ac_aggr.st_rdev) |
| 14609 | return 0; |
| 14610 | ; |
| 14611 | return 0; |
| 14612 | } |
| 14613 | _ACEOF |
| 14614 | rm -f conftest.$ac_objext |
| 14615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14616 | (eval $ac_compile) 2>&5 |
| 14617 | ac_status=$? |
| 14618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14619 | (exit $ac_status); } && |
| 14620 | { ac_try='test -s conftest.$ac_objext' |
| 14621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14622 | (eval $ac_try) 2>&5 |
| 14623 | ac_status=$? |
| 14624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14625 | (exit $ac_status); }; }; then |
| 14626 | ac_cv_member_struct_stat_st_rdev=yes |
| 14627 | else |
| 14628 | echo "$as_me: failed program was:" >&5 |
| 14629 | cat conftest.$ac_ext >&5 |
| 14630 | ac_cv_member_struct_stat_st_rdev=no |
| 14631 | fi |
| 14632 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14633 | fi |
| 14634 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 14635 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 14636 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 14637 | |
| 14638 | cat >>confdefs.h <<_ACEOF |
| 14639 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 14640 | _ACEOF |
| 14641 | |
| 14642 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14643 | fi |
| 14644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14645 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 14646 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 14647 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 14648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 | cat >conftest.$ac_ext <<_ACEOF |
| 14651 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14652 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14653 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14654 | #ifdef F77_DUMMY_MAIN |
| 14655 | # ifdef __cplusplus |
| 14656 | extern "C" |
| 14657 | # endif |
| 14658 | int F77_DUMMY_MAIN() { return 1; } |
| 14659 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14660 | int |
| 14661 | main () |
| 14662 | { |
| 14663 | static struct stat ac_aggr; |
| 14664 | if (ac_aggr.st_blksize) |
| 14665 | return 0; |
| 14666 | ; |
| 14667 | return 0; |
| 14668 | } |
| 14669 | _ACEOF |
| 14670 | rm -f conftest.$ac_objext |
| 14671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14672 | (eval $ac_compile) 2>&5 |
| 14673 | ac_status=$? |
| 14674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14675 | (exit $ac_status); } && |
| 14676 | { ac_try='test -s conftest.$ac_objext' |
| 14677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14678 | (eval $ac_try) 2>&5 |
| 14679 | ac_status=$? |
| 14680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14681 | (exit $ac_status); }; }; then |
| 14682 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14684 | echo "$as_me: failed program was:" >&5 |
| 14685 | cat conftest.$ac_ext >&5 |
| 14686 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14687 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14689 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 14691 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 14692 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14694 | cat >>confdefs.h <<_ACEOF |
| 14695 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 14696 | _ACEOF |
| 14697 | |
| 14698 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14699 | fi |
| 14700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14701 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 14702 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 14703 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 14704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14706 | cat >conftest.$ac_ext <<_ACEOF |
| 14707 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14708 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14709 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14710 | #ifdef F77_DUMMY_MAIN |
| 14711 | # ifdef __cplusplus |
| 14712 | extern "C" |
| 14713 | # endif |
| 14714 | int F77_DUMMY_MAIN() { return 1; } |
| 14715 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14716 | int |
| 14717 | main () |
| 14718 | { |
| 14719 | static struct stat ac_aggr; |
| 14720 | if (ac_aggr.st_blocks) |
| 14721 | return 0; |
| 14722 | ; |
| 14723 | return 0; |
| 14724 | } |
| 14725 | _ACEOF |
| 14726 | rm -f conftest.$ac_objext |
| 14727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14728 | (eval $ac_compile) 2>&5 |
| 14729 | ac_status=$? |
| 14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14731 | (exit $ac_status); } && |
| 14732 | { ac_try='test -s conftest.$ac_objext' |
| 14733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14734 | (eval $ac_try) 2>&5 |
| 14735 | ac_status=$? |
| 14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14737 | (exit $ac_status); }; }; then |
| 14738 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | echo "$as_me: failed program was:" >&5 |
| 14741 | cat conftest.$ac_ext >&5 |
| 14742 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14743 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14744 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14746 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 14747 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 14748 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14750 | cat >>confdefs.h <<_ACEOF |
| 14751 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14752 | _ACEOF |
| 14753 | |
| 14754 | |
| 14755 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14756 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14757 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14758 | |
| 14759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14760 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14761 | fi |
| 14762 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14764 | |
| 14765 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 14766 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 14767 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 14768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14770 | cat >conftest.$ac_ext <<_ACEOF |
| 14771 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14772 | #include "confdefs.h" |
| 14773 | #include <time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14774 | #ifdef F77_DUMMY_MAIN |
| 14775 | # ifdef __cplusplus |
| 14776 | extern "C" |
| 14777 | # endif |
| 14778 | int F77_DUMMY_MAIN() { return 1; } |
| 14779 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14780 | int |
| 14781 | main () |
| 14782 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14783 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 | ; |
| 14785 | return 0; |
| 14786 | } |
| 14787 | _ACEOF |
| 14788 | rm -f conftest.$ac_objext |
| 14789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14790 | (eval $ac_compile) 2>&5 |
| 14791 | ac_status=$? |
| 14792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14793 | (exit $ac_status); } && |
| 14794 | { ac_try='test -s conftest.$ac_objext' |
| 14795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14796 | (eval $ac_try) 2>&5 |
| 14797 | ac_status=$? |
| 14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14799 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14800 | ac_cv_header_time_altzone=yes |
| 14801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14802 | echo "$as_me: failed program was:" >&5 |
| 14803 | cat conftest.$ac_ext >&5 |
| 14804 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14807 | fi |
| 14808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14809 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 14810 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14811 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14812 | |
| 14813 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14814 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14816 | |
| 14817 | fi |
| 14818 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14819 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 14821 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14822 | cat >conftest.$ac_ext <<_ACEOF |
| 14823 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14824 | #include "confdefs.h" |
| 14825 | |
| 14826 | #include <sys/types.h> |
| 14827 | #include <sys/select.h> |
| 14828 | #include <sys/time.h> |
| 14829 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14830 | #ifdef F77_DUMMY_MAIN |
| 14831 | # ifdef __cplusplus |
| 14832 | extern "C" |
| 14833 | # endif |
| 14834 | int F77_DUMMY_MAIN() { return 1; } |
| 14835 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | int |
| 14837 | main () |
| 14838 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14839 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 | ; |
| 14841 | return 0; |
| 14842 | } |
| 14843 | _ACEOF |
| 14844 | rm -f conftest.$ac_objext |
| 14845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14846 | (eval $ac_compile) 2>&5 |
| 14847 | ac_status=$? |
| 14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14849 | (exit $ac_status); } && |
| 14850 | { ac_try='test -s conftest.$ac_objext' |
| 14851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14852 | (eval $ac_try) 2>&5 |
| 14853 | ac_status=$? |
| 14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14855 | (exit $ac_status); }; }; then |
| 14856 | |
| 14857 | |
| 14858 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14859 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14860 | _ACEOF |
| 14861 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14862 | was_it_defined=yes |
| 14863 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14865 | echo "$as_me: failed program was:" >&5 |
| 14866 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14867 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14868 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14869 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 14870 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14872 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 14873 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 14874 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 14875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14877 | cat >conftest.$ac_ext <<_ACEOF |
| 14878 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14879 | #include "confdefs.h" |
| 14880 | |
| 14881 | # include <netdb.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14882 | #ifdef F77_DUMMY_MAIN |
| 14883 | # ifdef __cplusplus |
| 14884 | extern "C" |
| 14885 | # endif |
| 14886 | int F77_DUMMY_MAIN() { return 1; } |
| 14887 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14888 | int |
| 14889 | main () |
| 14890 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14891 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14892 | ; |
| 14893 | return 0; |
| 14894 | } |
| 14895 | _ACEOF |
| 14896 | rm -f conftest.$ac_objext |
| 14897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14898 | (eval $ac_compile) 2>&5 |
| 14899 | ac_status=$? |
| 14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14901 | (exit $ac_status); } && |
| 14902 | { ac_try='test -s conftest.$ac_objext' |
| 14903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14904 | (eval $ac_try) 2>&5 |
| 14905 | ac_status=$? |
| 14906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14907 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14908 | ac_cv_struct_addrinfo=yes |
| 14909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | echo "$as_me: failed program was:" >&5 |
| 14911 | cat conftest.$ac_ext >&5 |
| 14912 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14913 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14914 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14915 | fi |
| 14916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14917 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 14918 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14919 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14920 | |
| 14921 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14922 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14924 | |
| 14925 | fi |
| 14926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 14928 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 14929 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 14930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14931 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14932 | cat >conftest.$ac_ext <<_ACEOF |
| 14933 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14934 | #include "confdefs.h" |
| 14935 | |
| 14936 | # include <sys/types.h> |
| 14937 | # include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14938 | #ifdef F77_DUMMY_MAIN |
| 14939 | # ifdef __cplusplus |
| 14940 | extern "C" |
| 14941 | # endif |
| 14942 | int F77_DUMMY_MAIN() { return 1; } |
| 14943 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | int |
| 14945 | main () |
| 14946 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14947 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | ; |
| 14949 | return 0; |
| 14950 | } |
| 14951 | _ACEOF |
| 14952 | rm -f conftest.$ac_objext |
| 14953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14954 | (eval $ac_compile) 2>&5 |
| 14955 | ac_status=$? |
| 14956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14957 | (exit $ac_status); } && |
| 14958 | { ac_try='test -s conftest.$ac_objext' |
| 14959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14960 | (eval $ac_try) 2>&5 |
| 14961 | ac_status=$? |
| 14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14963 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14964 | ac_cv_struct_sockaddr_storage=yes |
| 14965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14966 | echo "$as_me: failed program was:" >&5 |
| 14967 | cat conftest.$ac_ext >&5 |
| 14968 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14969 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14971 | fi |
| 14972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 14974 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14975 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | |
| 14977 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14978 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14979 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14980 | |
| 14981 | fi |
| 14982 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14983 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14984 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14986 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 14987 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 14988 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 14989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14991 | cat >conftest.$ac_ext <<_ACEOF |
| 14992 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14993 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14995 | #ifdef F77_DUMMY_MAIN |
| 14996 | # ifdef __cplusplus |
| 14997 | extern "C" |
| 14998 | # endif |
| 14999 | int F77_DUMMY_MAIN() { return 1; } |
| 15000 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | int |
| 15002 | main () |
| 15003 | { |
| 15004 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 15005 | test_array [0] = 0 |
| 15006 | |
| 15007 | ; |
| 15008 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15009 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15010 | _ACEOF |
| 15011 | rm -f conftest.$ac_objext |
| 15012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15013 | (eval $ac_compile) 2>&5 |
| 15014 | ac_status=$? |
| 15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15016 | (exit $ac_status); } && |
| 15017 | { ac_try='test -s conftest.$ac_objext' |
| 15018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15019 | (eval $ac_try) 2>&5 |
| 15020 | ac_status=$? |
| 15021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15022 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15023 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | else |
| 15025 | echo "$as_me: failed program was:" >&5 |
| 15026 | cat conftest.$ac_ext >&5 |
| 15027 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15030 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15031 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 15032 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15033 | 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] | 15034 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15035 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15036 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15037 | |
| 15038 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15039 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15040 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 15041 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 15042 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 15043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15044 | else |
| 15045 | ac_cv_prog_cc_stdc=no |
| 15046 | ac_save_CC=$CC |
| 15047 | cat >conftest.$ac_ext <<_ACEOF |
| 15048 | #line $LINENO "configure" |
| 15049 | #include "confdefs.h" |
| 15050 | #include <stdarg.h> |
| 15051 | #include <stdio.h> |
| 15052 | #include <sys/types.h> |
| 15053 | #include <sys/stat.h> |
| 15054 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 15055 | struct buf { int x; }; |
| 15056 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 15057 | static char *e (p, i) |
| 15058 | char **p; |
| 15059 | int i; |
| 15060 | { |
| 15061 | return p[i]; |
| 15062 | } |
| 15063 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 15064 | { |
| 15065 | char *s; |
| 15066 | va_list v; |
| 15067 | va_start (v,p); |
| 15068 | s = g (p, va_arg (v,int)); |
| 15069 | va_end (v); |
| 15070 | return s; |
| 15071 | } |
| 15072 | int test (int i, double x); |
| 15073 | struct s1 {int (*f) (int a);}; |
| 15074 | struct s2 {int (*f) (double a);}; |
| 15075 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 15076 | int argc; |
| 15077 | char **argv; |
| 15078 | #ifdef F77_DUMMY_MAIN |
| 15079 | # ifdef __cplusplus |
| 15080 | extern "C" |
| 15081 | # endif |
| 15082 | int F77_DUMMY_MAIN() { return 1; } |
| 15083 | #endif |
| 15084 | int |
| 15085 | main () |
| 15086 | { |
| 15087 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 15088 | ; |
| 15089 | return 0; |
| 15090 | } |
| 15091 | _ACEOF |
| 15092 | # Don't try gcc -ansi; that turns off useful extensions and |
| 15093 | # breaks some systems' header files. |
| 15094 | # AIX -qlanglvl=ansi |
| 15095 | # Ultrix and OSF/1 -std1 |
| 15096 | # HP-UX 10.20 and later -Ae |
| 15097 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 15098 | # SVR4 -Xc -D__EXTENSIONS__ |
| 15099 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 15100 | do |
| 15101 | CC="$ac_save_CC $ac_arg" |
| 15102 | rm -f conftest.$ac_objext |
| 15103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15104 | (eval $ac_compile) 2>&5 |
| 15105 | ac_status=$? |
| 15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15107 | (exit $ac_status); } && |
| 15108 | { ac_try='test -s conftest.$ac_objext' |
| 15109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15110 | (eval $ac_try) 2>&5 |
| 15111 | ac_status=$? |
| 15112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15113 | (exit $ac_status); }; }; then |
| 15114 | ac_cv_prog_cc_stdc=$ac_arg |
| 15115 | break |
| 15116 | else |
| 15117 | echo "$as_me: failed program was:" >&5 |
| 15118 | cat conftest.$ac_ext >&5 |
| 15119 | fi |
| 15120 | rm -f conftest.$ac_objext |
| 15121 | done |
| 15122 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 15123 | CC=$ac_save_CC |
| 15124 | |
| 15125 | fi |
| 15126 | |
| 15127 | case "x$ac_cv_prog_cc_stdc" in |
| 15128 | x|xno) |
| 15129 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 15130 | echo "${ECHO_T}none needed" >&6 ;; |
| 15131 | *) |
| 15132 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 15133 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 15134 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 15135 | esac |
| 15136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15137 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 15138 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 15139 | if test "${ac_cv_c_const+set}" = set; then |
| 15140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15141 | else |
| 15142 | cat >conftest.$ac_ext <<_ACEOF |
| 15143 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15144 | #include "confdefs.h" |
| 15145 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15146 | #ifdef F77_DUMMY_MAIN |
| 15147 | # ifdef __cplusplus |
| 15148 | extern "C" |
| 15149 | # endif |
| 15150 | int F77_DUMMY_MAIN() { return 1; } |
| 15151 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15152 | int |
| 15153 | main () |
| 15154 | { |
| 15155 | /* FIXME: Include the comments suggested by Paul. */ |
| 15156 | #ifndef __cplusplus |
| 15157 | /* Ultrix mips cc rejects this. */ |
| 15158 | typedef int charset[2]; |
| 15159 | const charset x; |
| 15160 | /* SunOS 4.1.1 cc rejects this. */ |
| 15161 | char const *const *ccp; |
| 15162 | char **p; |
| 15163 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 15164 | struct point {int x, y;}; |
| 15165 | static struct point const zero = {0,0}; |
| 15166 | /* AIX XL C 1.02.0.0 rejects this. |
| 15167 | It does not let you subtract one const X* pointer from another in |
| 15168 | an arm of an if-expression whose if-part is not a constant |
| 15169 | expression */ |
| 15170 | const char *g = "string"; |
| 15171 | ccp = &g + (g ? g-g : 0); |
| 15172 | /* HPUX 7.0 cc rejects these. */ |
| 15173 | ++ccp; |
| 15174 | p = (char**) ccp; |
| 15175 | ccp = (char const *const *) p; |
| 15176 | { /* SCO 3.2v4 cc rejects this. */ |
| 15177 | char *t; |
| 15178 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | *t++ = 0; |
| 15181 | } |
| 15182 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 15183 | int x[] = {25, 17}; |
| 15184 | const int *foo = &x[0]; |
| 15185 | ++foo; |
| 15186 | } |
| 15187 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 15188 | typedef const int *iptr; |
| 15189 | iptr p = 0; |
| 15190 | ++p; |
| 15191 | } |
| 15192 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 15193 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 15194 | struct s { int j; const int *ap[3]; }; |
| 15195 | struct s *b; b->j = 5; |
| 15196 | } |
| 15197 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 15198 | const int foo = 10; |
| 15199 | } |
| 15200 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | ; |
| 15203 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15204 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | _ACEOF |
| 15206 | rm -f conftest.$ac_objext |
| 15207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15208 | (eval $ac_compile) 2>&5 |
| 15209 | ac_status=$? |
| 15210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15211 | (exit $ac_status); } && |
| 15212 | { ac_try='test -s conftest.$ac_objext' |
| 15213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15214 | (eval $ac_try) 2>&5 |
| 15215 | ac_status=$? |
| 15216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15217 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15218 | ac_cv_c_const=yes |
| 15219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15220 | echo "$as_me: failed program was:" >&5 |
| 15221 | cat conftest.$ac_ext >&5 |
| 15222 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 15227 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15228 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15229 | |
| 15230 | cat >>confdefs.h <<\_ACEOF |
| 15231 | #define const |
| 15232 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15233 | |
| 15234 | fi |
| 15235 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15236 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15237 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15238 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 15239 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 15240 | cat >conftest.$ac_ext <<_ACEOF |
| 15241 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15242 | #include "confdefs.h" |
| 15243 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15244 | #ifdef F77_DUMMY_MAIN |
| 15245 | # ifdef __cplusplus |
| 15246 | extern "C" |
| 15247 | # endif |
| 15248 | int F77_DUMMY_MAIN() { return 1; } |
| 15249 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15250 | int |
| 15251 | main () |
| 15252 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15253 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15254 | ; |
| 15255 | return 0; |
| 15256 | } |
| 15257 | _ACEOF |
| 15258 | rm -f conftest.$ac_objext |
| 15259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15260 | (eval $ac_compile) 2>&5 |
| 15261 | ac_status=$? |
| 15262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15263 | (exit $ac_status); } && |
| 15264 | { ac_try='test -s conftest.$ac_objext' |
| 15265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15266 | (eval $ac_try) 2>&5 |
| 15267 | ac_status=$? |
| 15268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15269 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15270 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | echo "$as_me: failed program was:" >&5 |
| 15273 | cat conftest.$ac_ext >&5 |
| 15274 | |
| 15275 | cat >>confdefs.h <<\_ACEOF |
| 15276 | #define volatile |
| 15277 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15278 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15279 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15280 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15282 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15283 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15284 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15285 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15286 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 15287 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 15288 | cat >conftest.$ac_ext <<_ACEOF |
| 15289 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15290 | #include "confdefs.h" |
| 15291 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15292 | #ifdef F77_DUMMY_MAIN |
| 15293 | # ifdef __cplusplus |
| 15294 | extern "C" |
| 15295 | # endif |
| 15296 | int F77_DUMMY_MAIN() { return 1; } |
| 15297 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15298 | int |
| 15299 | main () |
| 15300 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15301 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15302 | ; |
| 15303 | return 0; |
| 15304 | } |
| 15305 | _ACEOF |
| 15306 | rm -f conftest.$ac_objext |
| 15307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15308 | (eval $ac_compile) 2>&5 |
| 15309 | ac_status=$? |
| 15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15311 | (exit $ac_status); } && |
| 15312 | { ac_try='test -s conftest.$ac_objext' |
| 15313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15314 | (eval $ac_try) 2>&5 |
| 15315 | ac_status=$? |
| 15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15317 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15318 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15320 | echo "$as_me: failed program was:" >&5 |
| 15321 | cat conftest.$ac_ext >&5 |
| 15322 | |
| 15323 | cat >>confdefs.h <<\_ACEOF |
| 15324 | #define signed |
| 15325 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15326 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15327 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15330 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15331 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15332 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15333 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 15335 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 15336 | cat >conftest.$ac_ext <<_ACEOF |
| 15337 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15338 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15339 | int foo(int x) { return 0; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15340 | #ifdef F77_DUMMY_MAIN |
| 15341 | # ifdef __cplusplus |
| 15342 | extern "C" |
| 15343 | # endif |
| 15344 | int F77_DUMMY_MAIN() { return 1; } |
| 15345 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15346 | int |
| 15347 | main () |
| 15348 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15349 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | ; |
| 15351 | return 0; |
| 15352 | } |
| 15353 | _ACEOF |
| 15354 | rm -f conftest.$ac_objext |
| 15355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15356 | (eval $ac_compile) 2>&5 |
| 15357 | ac_status=$? |
| 15358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15359 | (exit $ac_status); } && |
| 15360 | { ac_try='test -s conftest.$ac_objext' |
| 15361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15362 | (eval $ac_try) 2>&5 |
| 15363 | ac_status=$? |
| 15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15365 | (exit $ac_status); }; }; then |
| 15366 | |
| 15367 | |
| 15368 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15369 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | _ACEOF |
| 15371 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15372 | have_prototypes=yes |
| 15373 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15375 | echo "$as_me: failed program was:" >&5 |
| 15376 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15379 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 15380 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15381 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15382 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 15384 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 15385 | cat >conftest.$ac_ext <<_ACEOF |
| 15386 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15387 | #include "confdefs.h" |
| 15388 | |
| 15389 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15390 | int foo(int x, ...) { |
| 15391 | va_list va; |
| 15392 | va_start(va, x); |
| 15393 | va_arg(va, int); |
| 15394 | va_arg(va, char *); |
| 15395 | va_arg(va, double); |
| 15396 | return 0; |
| 15397 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15398 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15399 | #ifdef F77_DUMMY_MAIN |
| 15400 | # ifdef __cplusplus |
| 15401 | extern "C" |
| 15402 | # endif |
| 15403 | int F77_DUMMY_MAIN() { return 1; } |
| 15404 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15405 | int |
| 15406 | main () |
| 15407 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15408 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15409 | ; |
| 15410 | return 0; |
| 15411 | } |
| 15412 | _ACEOF |
| 15413 | rm -f conftest.$ac_objext |
| 15414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15415 | (eval $ac_compile) 2>&5 |
| 15416 | ac_status=$? |
| 15417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15418 | (exit $ac_status); } && |
| 15419 | { ac_try='test -s conftest.$ac_objext' |
| 15420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15421 | (eval $ac_try) 2>&5 |
| 15422 | ac_status=$? |
| 15423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15424 | (exit $ac_status); }; }; then |
| 15425 | |
| 15426 | |
| 15427 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15428 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15429 | _ACEOF |
| 15430 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15431 | works=yes |
| 15432 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15434 | echo "$as_me: failed program was:" >&5 |
| 15435 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15436 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15437 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15438 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15439 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15440 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15441 | if test "$have_prototypes" = yes; then |
| 15442 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 15444 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 15445 | cat >conftest.$ac_ext <<_ACEOF |
| 15446 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15447 | #include "confdefs.h" |
| 15448 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15449 | #ifdef F77_DUMMY_MAIN |
| 15450 | # ifdef __cplusplus |
| 15451 | extern "C" |
| 15452 | # endif |
| 15453 | int F77_DUMMY_MAIN() { return 1; } |
| 15454 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | int |
| 15456 | main () |
| 15457 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15458 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15459 | ; |
| 15460 | return 0; |
| 15461 | } |
| 15462 | _ACEOF |
| 15463 | rm -f conftest.$ac_objext |
| 15464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15465 | (eval $ac_compile) 2>&5 |
| 15466 | ac_status=$? |
| 15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15468 | (exit $ac_status); } && |
| 15469 | { ac_try='test -s conftest.$ac_objext' |
| 15470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15471 | (eval $ac_try) 2>&5 |
| 15472 | ac_status=$? |
| 15473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15474 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15475 | : |
| 15476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15477 | echo "$as_me: failed program was:" >&5 |
| 15478 | cat conftest.$ac_ext >&5 |
| 15479 | |
| 15480 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15481 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | _ACEOF |
| 15483 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15484 | bad_prototypes=yes |
| 15485 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15486 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15487 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15488 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 15489 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15490 | fi |
| 15491 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15492 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15493 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 15494 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 15495 | cat >conftest.$ac_ext <<_ACEOF |
| 15496 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15497 | #include "confdefs.h" |
| 15498 | #include <sys/types.h> |
| 15499 | #include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15500 | #ifdef F77_DUMMY_MAIN |
| 15501 | # ifdef __cplusplus |
| 15502 | extern "C" |
| 15503 | # endif |
| 15504 | int F77_DUMMY_MAIN() { return 1; } |
| 15505 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15506 | int |
| 15507 | main () |
| 15508 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15509 | struct sockaddr x; |
| 15510 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15511 | ; |
| 15512 | return 0; |
| 15513 | } |
| 15514 | _ACEOF |
| 15515 | rm -f conftest.$ac_objext |
| 15516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15517 | (eval $ac_compile) 2>&5 |
| 15518 | ac_status=$? |
| 15519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15520 | (exit $ac_status); } && |
| 15521 | { ac_try='test -s conftest.$ac_objext' |
| 15522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15523 | (eval $ac_try) 2>&5 |
| 15524 | ac_status=$? |
| 15525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15526 | (exit $ac_status); }; }; then |
| 15527 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15528 | echo "${ECHO_T}yes" >&6 |
| 15529 | |
| 15530 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15531 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15532 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15533 | |
| 15534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | echo "$as_me: failed program was:" >&5 |
| 15536 | cat conftest.$ac_ext >&5 |
| 15537 | echo "$as_me:$LINENO: result: no" >&5 |
| 15538 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15539 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15541 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15542 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 15544 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 15545 | cat >conftest.$ac_ext <<_ACEOF |
| 15546 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15547 | #include "confdefs.h" |
| 15548 | |
| 15549 | #ifdef HAVE_STDARG_PROTOTYPES |
| 15550 | #include <stdarg.h> |
| 15551 | #else |
| 15552 | #include <varargs.h> |
| 15553 | #endif |
| 15554 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15555 | #ifdef F77_DUMMY_MAIN |
| 15556 | # ifdef __cplusplus |
| 15557 | extern "C" |
| 15558 | # endif |
| 15559 | int F77_DUMMY_MAIN() { return 1; } |
| 15560 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15561 | int |
| 15562 | main () |
| 15563 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15564 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15565 | ; |
| 15566 | return 0; |
| 15567 | } |
| 15568 | _ACEOF |
| 15569 | rm -f conftest.$ac_objext |
| 15570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15571 | (eval $ac_compile) 2>&5 |
| 15572 | ac_status=$? |
| 15573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15574 | (exit $ac_status); } && |
| 15575 | { ac_try='test -s conftest.$ac_objext' |
| 15576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15577 | (eval $ac_try) 2>&5 |
| 15578 | ac_status=$? |
| 15579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15580 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15581 | : |
| 15582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15583 | echo "$as_me: failed program was:" >&5 |
| 15584 | cat conftest.$ac_ext >&5 |
| 15585 | |
| 15586 | |
| 15587 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15588 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15589 | _ACEOF |
| 15590 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15591 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15592 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15593 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15594 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15595 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 15596 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15597 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15598 | # 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] | 15599 | |
| 15600 | |
| 15601 | |
| 15602 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 15603 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 15604 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 15605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 | cat >conftest.$ac_ext <<_ACEOF |
| 15608 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15609 | #include "confdefs.h" |
| 15610 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15611 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15612 | #include <assert.h> |
| 15613 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15614 | #ifdef __cplusplus |
| 15615 | extern "C" |
| 15616 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15617 | /* 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] | 15618 | builtin and then its argument prototype would still apply. */ |
| 15619 | char gethostbyname_r (); |
| 15620 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15621 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15622 | #ifdef F77_DUMMY_MAIN |
| 15623 | # ifdef __cplusplus |
| 15624 | extern "C" |
| 15625 | # endif |
| 15626 | int F77_DUMMY_MAIN() { return 1; } |
| 15627 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15628 | int |
| 15629 | main () |
| 15630 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15631 | /* The GNU C library defines this for functions which it implements |
| 15632 | to always fail with ENOSYS. Some functions are actually named |
| 15633 | something starting with __ and the normal name is an alias. */ |
| 15634 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 15635 | choke me |
| 15636 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15637 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15638 | #endif |
| 15639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15640 | ; |
| 15641 | return 0; |
| 15642 | } |
| 15643 | _ACEOF |
| 15644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15646 | (eval $ac_link) 2>&5 |
| 15647 | ac_status=$? |
| 15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15649 | (exit $ac_status); } && |
| 15650 | { ac_try='test -s conftest$ac_exeext' |
| 15651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15652 | (eval $ac_try) 2>&5 |
| 15653 | ac_status=$? |
| 15654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15655 | (exit $ac_status); }; }; then |
| 15656 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15658 | echo "$as_me: failed program was:" >&5 |
| 15659 | cat conftest.$ac_ext >&5 |
| 15660 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15661 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15663 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 15665 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 15666 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15668 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15669 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15670 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 15673 | 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] | 15674 | OLD_CFLAGS=$CFLAGS |
| 15675 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15676 | cat >conftest.$ac_ext <<_ACEOF |
| 15677 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15678 | #include "confdefs.h" |
| 15679 | |
| 15680 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15681 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15682 | #ifdef F77_DUMMY_MAIN |
| 15683 | # ifdef __cplusplus |
| 15684 | extern "C" |
| 15685 | # endif |
| 15686 | int F77_DUMMY_MAIN() { return 1; } |
| 15687 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15688 | int |
| 15689 | main () |
| 15690 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15691 | |
| 15692 | char *name; |
| 15693 | struct hostent *he, *res; |
| 15694 | char buffer[2048]; |
| 15695 | int buflen = 2048; |
| 15696 | int h_errnop; |
| 15697 | |
| 15698 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15699 | |
| 15700 | ; |
| 15701 | return 0; |
| 15702 | } |
| 15703 | _ACEOF |
| 15704 | rm -f conftest.$ac_objext |
| 15705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15706 | (eval $ac_compile) 2>&5 |
| 15707 | ac_status=$? |
| 15708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15709 | (exit $ac_status); } && |
| 15710 | { ac_try='test -s conftest.$ac_objext' |
| 15711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15712 | (eval $ac_try) 2>&5 |
| 15713 | ac_status=$? |
| 15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15715 | (exit $ac_status); }; }; then |
| 15716 | |
| 15717 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15718 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15719 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15721 | |
| 15722 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15723 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15724 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15726 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15727 | echo "${ECHO_T}yes" >&6 |
| 15728 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | echo "$as_me: failed program was:" >&5 |
| 15731 | cat conftest.$ac_ext >&5 |
| 15732 | |
| 15733 | echo "$as_me:$LINENO: result: no" >&5 |
| 15734 | echo "${ECHO_T}no" >&6 |
| 15735 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 15736 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 15737 | cat >conftest.$ac_ext <<_ACEOF |
| 15738 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15739 | #include "confdefs.h" |
| 15740 | |
| 15741 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15742 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15743 | #ifdef F77_DUMMY_MAIN |
| 15744 | # ifdef __cplusplus |
| 15745 | extern "C" |
| 15746 | # endif |
| 15747 | int F77_DUMMY_MAIN() { return 1; } |
| 15748 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | int |
| 15750 | main () |
| 15751 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15752 | |
| 15753 | char *name; |
| 15754 | struct hostent *he; |
| 15755 | char buffer[2048]; |
| 15756 | int buflen = 2048; |
| 15757 | int h_errnop; |
| 15758 | |
| 15759 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15760 | |
| 15761 | ; |
| 15762 | return 0; |
| 15763 | } |
| 15764 | _ACEOF |
| 15765 | rm -f conftest.$ac_objext |
| 15766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15767 | (eval $ac_compile) 2>&5 |
| 15768 | ac_status=$? |
| 15769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15770 | (exit $ac_status); } && |
| 15771 | { ac_try='test -s conftest.$ac_objext' |
| 15772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15773 | (eval $ac_try) 2>&5 |
| 15774 | ac_status=$? |
| 15775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15776 | (exit $ac_status); }; }; then |
| 15777 | |
| 15778 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15779 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15782 | |
| 15783 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15784 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15785 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15787 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15788 | echo "${ECHO_T}yes" >&6 |
| 15789 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15791 | echo "$as_me: failed program was:" >&5 |
| 15792 | cat conftest.$ac_ext >&5 |
| 15793 | |
| 15794 | echo "$as_me:$LINENO: result: no" >&5 |
| 15795 | echo "${ECHO_T}no" >&6 |
| 15796 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 15797 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 15798 | cat >conftest.$ac_ext <<_ACEOF |
| 15799 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15800 | #include "confdefs.h" |
| 15801 | |
| 15802 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15804 | #ifdef F77_DUMMY_MAIN |
| 15805 | # ifdef __cplusplus |
| 15806 | extern "C" |
| 15807 | # endif |
| 15808 | int F77_DUMMY_MAIN() { return 1; } |
| 15809 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15810 | int |
| 15811 | main () |
| 15812 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15813 | |
| 15814 | char *name; |
| 15815 | struct hostent *he; |
| 15816 | struct hostent_data data; |
| 15817 | |
| 15818 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15819 | |
| 15820 | ; |
| 15821 | return 0; |
| 15822 | } |
| 15823 | _ACEOF |
| 15824 | rm -f conftest.$ac_objext |
| 15825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15826 | (eval $ac_compile) 2>&5 |
| 15827 | ac_status=$? |
| 15828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15829 | (exit $ac_status); } && |
| 15830 | { ac_try='test -s conftest.$ac_objext' |
| 15831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15832 | (eval $ac_try) 2>&5 |
| 15833 | ac_status=$? |
| 15834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15835 | (exit $ac_status); }; }; then |
| 15836 | |
| 15837 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15838 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15839 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | |
| 15842 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15843 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15847 | echo "${ECHO_T}yes" >&6 |
| 15848 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | echo "$as_me: failed program was:" >&5 |
| 15851 | cat conftest.$ac_ext >&5 |
| 15852 | |
| 15853 | echo "$as_me:$LINENO: result: no" >&5 |
| 15854 | echo "${ECHO_T}no" >&6 |
| 15855 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15856 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15858 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15860 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15861 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15862 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15864 | CFLAGS=$OLD_CFLAGS |
| 15865 | |
| 15866 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15868 | |
| 15869 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15870 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15872 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15874 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15877 | cat >conftest.$ac_ext <<_ACEOF |
| 15878 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15879 | #include "confdefs.h" |
| 15880 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15882 | #include <assert.h> |
| 15883 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15884 | #ifdef __cplusplus |
| 15885 | extern "C" |
| 15886 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15887 | /* 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] | 15888 | builtin and then its argument prototype would still apply. */ |
| 15889 | char $ac_func (); |
| 15890 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15891 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15892 | #ifdef F77_DUMMY_MAIN |
| 15893 | # ifdef __cplusplus |
| 15894 | extern "C" |
| 15895 | # endif |
| 15896 | int F77_DUMMY_MAIN() { return 1; } |
| 15897 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15898 | int |
| 15899 | main () |
| 15900 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15901 | /* The GNU C library defines this for functions which it implements |
| 15902 | to always fail with ENOSYS. Some functions are actually named |
| 15903 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15904 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15905 | choke me |
| 15906 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15907 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15908 | #endif |
| 15909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15910 | ; |
| 15911 | return 0; |
| 15912 | } |
| 15913 | _ACEOF |
| 15914 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15916 | (eval $ac_link) 2>&5 |
| 15917 | ac_status=$? |
| 15918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15919 | (exit $ac_status); } && |
| 15920 | { ac_try='test -s conftest$ac_exeext' |
| 15921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15922 | (eval $ac_try) 2>&5 |
| 15923 | ac_status=$? |
| 15924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15925 | (exit $ac_status); }; }; then |
| 15926 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | echo "$as_me: failed program was:" >&5 |
| 15929 | cat conftest.$ac_ext >&5 |
| 15930 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15931 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15933 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15935 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15936 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15937 | cat >>confdefs.h <<_ACEOF |
| 15938 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15939 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15940 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15941 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15942 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15943 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15944 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15945 | fi |
| 15946 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15947 | |
| 15948 | |
| 15949 | |
| 15950 | |
| 15951 | |
| 15952 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15953 | # checks for system services |
| 15954 | # (none yet) |
| 15955 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15956 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15957 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 15958 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 15959 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 15960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15961 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15962 | cat >conftest.$ac_ext <<_ACEOF |
| 15963 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15964 | #include "confdefs.h" |
| 15965 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15966 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15967 | #include <assert.h> |
| 15968 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | #ifdef __cplusplus |
| 15970 | extern "C" |
| 15971 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15972 | /* 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] | 15973 | builtin and then its argument prototype would still apply. */ |
| 15974 | char __fpu_control (); |
| 15975 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15976 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15977 | #ifdef F77_DUMMY_MAIN |
| 15978 | # ifdef __cplusplus |
| 15979 | extern "C" |
| 15980 | # endif |
| 15981 | int F77_DUMMY_MAIN() { return 1; } |
| 15982 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15983 | int |
| 15984 | main () |
| 15985 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15986 | /* The GNU C library defines this for functions which it implements |
| 15987 | to always fail with ENOSYS. Some functions are actually named |
| 15988 | something starting with __ and the normal name is an alias. */ |
| 15989 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 15990 | choke me |
| 15991 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15993 | #endif |
| 15994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15995 | ; |
| 15996 | return 0; |
| 15997 | } |
| 15998 | _ACEOF |
| 15999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16001 | (eval $ac_link) 2>&5 |
| 16002 | ac_status=$? |
| 16003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16004 | (exit $ac_status); } && |
| 16005 | { ac_try='test -s conftest$ac_exeext' |
| 16006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16007 | (eval $ac_try) 2>&5 |
| 16008 | ac_status=$? |
| 16009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16010 | (exit $ac_status); }; }; then |
| 16011 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16013 | echo "$as_me: failed program was:" >&5 |
| 16014 | cat conftest.$ac_ext >&5 |
| 16015 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16016 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16017 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 16020 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 16021 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16022 | : |
| 16023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16024 | |
| 16025 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 16026 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 16027 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 16028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16031 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16032 | cat >conftest.$ac_ext <<_ACEOF |
| 16033 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16034 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16036 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16037 | #ifdef __cplusplus |
| 16038 | extern "C" |
| 16039 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16040 | /* 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] | 16041 | builtin and then its argument prototype would still apply. */ |
| 16042 | char __fpu_control (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16043 | #ifdef F77_DUMMY_MAIN |
| 16044 | # ifdef __cplusplus |
| 16045 | extern "C" |
| 16046 | # endif |
| 16047 | int F77_DUMMY_MAIN() { return 1; } |
| 16048 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16049 | int |
| 16050 | main () |
| 16051 | { |
| 16052 | __fpu_control (); |
| 16053 | ; |
| 16054 | return 0; |
| 16055 | } |
| 16056 | _ACEOF |
| 16057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16059 | (eval $ac_link) 2>&5 |
| 16060 | ac_status=$? |
| 16061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16062 | (exit $ac_status); } && |
| 16063 | { ac_try='test -s conftest$ac_exeext' |
| 16064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16065 | (eval $ac_try) 2>&5 |
| 16066 | ac_status=$? |
| 16067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16068 | (exit $ac_status); }; }; then |
| 16069 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16071 | echo "$as_me: failed program was:" >&5 |
| 16072 | cat conftest.$ac_ext >&5 |
| 16073 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16074 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16075 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16076 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16078 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 16079 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 16080 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 16081 | cat >>confdefs.h <<_ACEOF |
| 16082 | #define HAVE_LIBIEEE 1 |
| 16083 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16084 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16085 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16086 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16087 | fi |
| 16088 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16089 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 16090 | fi |
| 16091 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16092 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16093 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 16095 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 16096 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16097 | # Check whether --with-fpectl or --without-fpectl was given. |
| 16098 | if test "${with_fpectl+set}" = set; then |
| 16099 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16100 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16101 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16102 | then |
| 16103 | |
| 16104 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16105 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16106 | _ACEOF |
| 16107 | |
| 16108 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16109 | echo "${ECHO_T}yes" >&6 |
| 16110 | else echo "$as_me:$LINENO: result: no" >&5 |
| 16111 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16112 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | echo "$as_me:$LINENO: result: no" >&5 |
| 16115 | echo "${ECHO_T}no" >&6 |
| 16116 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16117 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16118 | # check for --with-libm=... |
| 16119 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16120 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 16121 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 16122 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 16123 | *) LIBM=-lm |
| 16124 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 16126 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 16127 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16128 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16129 | if test "${with_libm+set}" = set; then |
| 16130 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16131 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16132 | if test "$withval" = no |
| 16133 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 16135 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16136 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16137 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16138 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 16139 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 16140 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 16141 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 16142 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16143 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16144 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 16146 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 16147 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16148 | |
| 16149 | # check for --with-libc=... |
| 16150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 16152 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 16153 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16154 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16155 | if test "${with_libc+set}" = set; then |
| 16156 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16158 | if test "$withval" = no |
| 16159 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 16161 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16162 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16163 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16164 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 16165 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 16166 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 16167 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 16168 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16169 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 16170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 16172 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 16173 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16174 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16175 | # check for hypot() in math library |
| 16176 | LIBS_SAVE=$LIBS |
| 16177 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16178 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16179 | for ac_func in hypot |
| 16180 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16181 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16182 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16184 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16187 | cat >conftest.$ac_ext <<_ACEOF |
| 16188 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16189 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16190 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16191 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16192 | #include <assert.h> |
| 16193 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | #ifdef __cplusplus |
| 16195 | extern "C" |
| 16196 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16197 | /* 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] | 16198 | builtin and then its argument prototype would still apply. */ |
| 16199 | char $ac_func (); |
| 16200 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16201 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16202 | #ifdef F77_DUMMY_MAIN |
| 16203 | # ifdef __cplusplus |
| 16204 | extern "C" |
| 16205 | # endif |
| 16206 | int F77_DUMMY_MAIN() { return 1; } |
| 16207 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16208 | int |
| 16209 | main () |
| 16210 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16211 | /* The GNU C library defines this for functions which it implements |
| 16212 | to always fail with ENOSYS. Some functions are actually named |
| 16213 | something starting with __ and the normal name is an alias. */ |
| 16214 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16215 | choke me |
| 16216 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16217 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16218 | #endif |
| 16219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16220 | ; |
| 16221 | return 0; |
| 16222 | } |
| 16223 | _ACEOF |
| 16224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16226 | (eval $ac_link) 2>&5 |
| 16227 | ac_status=$? |
| 16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16229 | (exit $ac_status); } && |
| 16230 | { ac_try='test -s conftest$ac_exeext' |
| 16231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16232 | (eval $ac_try) 2>&5 |
| 16233 | ac_status=$? |
| 16234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16235 | (exit $ac_status); }; }; then |
| 16236 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | echo "$as_me: failed program was:" >&5 |
| 16239 | cat conftest.$ac_ext >&5 |
| 16240 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16243 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16245 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16246 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16247 | cat >>confdefs.h <<_ACEOF |
| 16248 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16249 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16250 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16252 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16253 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16254 | done |
| 16255 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16256 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16257 | LIBS=$LIBS_SAVE |
| 16258 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16259 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16260 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16261 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16262 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16263 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16265 | fi |
| 16266 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16267 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16269 | # Is the header compilable? |
| 16270 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 16271 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 16272 | cat >conftest.$ac_ext <<_ACEOF |
| 16273 | #line $LINENO "configure" |
| 16274 | #include "confdefs.h" |
| 16275 | $ac_includes_default |
| 16276 | #include <wchar.h> |
| 16277 | _ACEOF |
| 16278 | rm -f conftest.$ac_objext |
| 16279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16280 | (eval $ac_compile) 2>&5 |
| 16281 | ac_status=$? |
| 16282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16283 | (exit $ac_status); } && |
| 16284 | { ac_try='test -s conftest.$ac_objext' |
| 16285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16286 | (eval $ac_try) 2>&5 |
| 16287 | ac_status=$? |
| 16288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16289 | (exit $ac_status); }; }; then |
| 16290 | ac_header_compiler=yes |
| 16291 | else |
| 16292 | echo "$as_me: failed program was:" >&5 |
| 16293 | cat conftest.$ac_ext >&5 |
| 16294 | ac_header_compiler=no |
| 16295 | fi |
| 16296 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16297 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16298 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16299 | |
| 16300 | # Is the header present? |
| 16301 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 16302 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 16303 | cat >conftest.$ac_ext <<_ACEOF |
| 16304 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16305 | #include "confdefs.h" |
| 16306 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16307 | _ACEOF |
| 16308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16310 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16311 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16312 | rm -f conftest.er1 |
| 16313 | cat conftest.err >&5 |
| 16314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16315 | (exit $ac_status); } >/dev/null; then |
| 16316 | if test -s conftest.err; then |
| 16317 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16318 | else |
| 16319 | ac_cpp_err= |
| 16320 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16321 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16322 | ac_cpp_err=yes |
| 16323 | fi |
| 16324 | if test -z "$ac_cpp_err"; then |
| 16325 | ac_header_preproc=yes |
| 16326 | else |
| 16327 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16328 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16329 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16330 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16331 | rm -f conftest.err conftest.$ac_ext |
| 16332 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16333 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16334 | |
| 16335 | # So? What about this header? |
| 16336 | case $ac_header_compiler:$ac_header_preproc in |
| 16337 | yes:no ) |
| 16338 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16339 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16340 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 16341 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 16342 | no:yes ) |
| 16343 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 16344 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 16345 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 16346 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 16347 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 16348 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 16349 | esac |
| 16350 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16351 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16352 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16354 | else |
| 16355 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16356 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16357 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16358 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 16359 | |
| 16360 | fi |
| 16361 | if test $ac_cv_header_wchar_h = yes; then |
| 16362 | |
| 16363 | |
| 16364 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16365 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16366 | _ACEOF |
| 16367 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16368 | wchar_h="yes" |
| 16369 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16371 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16372 | |
| 16373 | fi |
| 16374 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16376 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16377 | # determine wchar_t size |
| 16378 | if test "$wchar_h" = yes |
| 16379 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 16381 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 16382 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 16383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16384 | else |
| 16385 | cat >conftest.$ac_ext <<_ACEOF |
| 16386 | #line $LINENO "configure" |
| 16387 | #include "confdefs.h" |
| 16388 | #include <wchar.h> |
| 16389 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16390 | #ifdef F77_DUMMY_MAIN |
| 16391 | # ifdef __cplusplus |
| 16392 | extern "C" |
| 16393 | # endif |
| 16394 | int F77_DUMMY_MAIN() { return 1; } |
| 16395 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16396 | int |
| 16397 | main () |
| 16398 | { |
| 16399 | if ((wchar_t *) 0) |
| 16400 | return 0; |
| 16401 | if (sizeof (wchar_t)) |
| 16402 | return 0; |
| 16403 | ; |
| 16404 | return 0; |
| 16405 | } |
| 16406 | _ACEOF |
| 16407 | rm -f conftest.$ac_objext |
| 16408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16409 | (eval $ac_compile) 2>&5 |
| 16410 | ac_status=$? |
| 16411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16412 | (exit $ac_status); } && |
| 16413 | { ac_try='test -s conftest.$ac_objext' |
| 16414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16415 | (eval $ac_try) 2>&5 |
| 16416 | ac_status=$? |
| 16417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16418 | (exit $ac_status); }; }; then |
| 16419 | ac_cv_type_wchar_t=yes |
| 16420 | else |
| 16421 | echo "$as_me: failed program was:" >&5 |
| 16422 | cat conftest.$ac_ext >&5 |
| 16423 | ac_cv_type_wchar_t=no |
| 16424 | fi |
| 16425 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16426 | fi |
| 16427 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 16428 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 16429 | |
| 16430 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 16431 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 16432 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 16433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16434 | else |
| 16435 | if test "$ac_cv_type_wchar_t" = yes; then |
| 16436 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 16437 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16438 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16439 | # This bug is HP SR number 8606223364. |
| 16440 | if test "$cross_compiling" = yes; then |
| 16441 | # Depending upon the size, compute the lo and hi bounds. |
| 16442 | cat >conftest.$ac_ext <<_ACEOF |
| 16443 | #line $LINENO "configure" |
| 16444 | #include "confdefs.h" |
| 16445 | #include <wchar.h> |
| 16446 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16447 | #ifdef F77_DUMMY_MAIN |
| 16448 | # ifdef __cplusplus |
| 16449 | extern "C" |
| 16450 | # endif |
| 16451 | int F77_DUMMY_MAIN() { return 1; } |
| 16452 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16453 | int |
| 16454 | main () |
| 16455 | { |
| 16456 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 16457 | test_array [0] = 0 |
| 16458 | |
| 16459 | ; |
| 16460 | return 0; |
| 16461 | } |
| 16462 | _ACEOF |
| 16463 | rm -f conftest.$ac_objext |
| 16464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16465 | (eval $ac_compile) 2>&5 |
| 16466 | ac_status=$? |
| 16467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16468 | (exit $ac_status); } && |
| 16469 | { ac_try='test -s conftest.$ac_objext' |
| 16470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16471 | (eval $ac_try) 2>&5 |
| 16472 | ac_status=$? |
| 16473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16474 | (exit $ac_status); }; }; then |
| 16475 | ac_lo=0 ac_mid=0 |
| 16476 | while :; do |
| 16477 | cat >conftest.$ac_ext <<_ACEOF |
| 16478 | #line $LINENO "configure" |
| 16479 | #include "confdefs.h" |
| 16480 | #include <wchar.h> |
| 16481 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16482 | #ifdef F77_DUMMY_MAIN |
| 16483 | # ifdef __cplusplus |
| 16484 | extern "C" |
| 16485 | # endif |
| 16486 | int F77_DUMMY_MAIN() { return 1; } |
| 16487 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16488 | int |
| 16489 | main () |
| 16490 | { |
| 16491 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16492 | test_array [0] = 0 |
| 16493 | |
| 16494 | ; |
| 16495 | return 0; |
| 16496 | } |
| 16497 | _ACEOF |
| 16498 | rm -f conftest.$ac_objext |
| 16499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16500 | (eval $ac_compile) 2>&5 |
| 16501 | ac_status=$? |
| 16502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16503 | (exit $ac_status); } && |
| 16504 | { ac_try='test -s conftest.$ac_objext' |
| 16505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16506 | (eval $ac_try) 2>&5 |
| 16507 | ac_status=$? |
| 16508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16509 | (exit $ac_status); }; }; then |
| 16510 | ac_hi=$ac_mid; break |
| 16511 | else |
| 16512 | echo "$as_me: failed program was:" >&5 |
| 16513 | cat conftest.$ac_ext >&5 |
| 16514 | ac_lo=`expr $ac_mid + 1` |
| 16515 | if test $ac_lo -le $ac_mid; then |
| 16516 | ac_lo= ac_hi= |
| 16517 | break |
| 16518 | fi |
| 16519 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 16520 | fi |
| 16521 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16522 | done |
| 16523 | else |
| 16524 | echo "$as_me: failed program was:" >&5 |
| 16525 | cat conftest.$ac_ext >&5 |
| 16526 | cat >conftest.$ac_ext <<_ACEOF |
| 16527 | #line $LINENO "configure" |
| 16528 | #include "confdefs.h" |
| 16529 | #include <wchar.h> |
| 16530 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16531 | #ifdef F77_DUMMY_MAIN |
| 16532 | # ifdef __cplusplus |
| 16533 | extern "C" |
| 16534 | # endif |
| 16535 | int F77_DUMMY_MAIN() { return 1; } |
| 16536 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16537 | int |
| 16538 | main () |
| 16539 | { |
| 16540 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 16541 | test_array [0] = 0 |
| 16542 | |
| 16543 | ; |
| 16544 | return 0; |
| 16545 | } |
| 16546 | _ACEOF |
| 16547 | rm -f conftest.$ac_objext |
| 16548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16549 | (eval $ac_compile) 2>&5 |
| 16550 | ac_status=$? |
| 16551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16552 | (exit $ac_status); } && |
| 16553 | { ac_try='test -s conftest.$ac_objext' |
| 16554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16555 | (eval $ac_try) 2>&5 |
| 16556 | ac_status=$? |
| 16557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16558 | (exit $ac_status); }; }; then |
| 16559 | ac_hi=-1 ac_mid=-1 |
| 16560 | while :; do |
| 16561 | cat >conftest.$ac_ext <<_ACEOF |
| 16562 | #line $LINENO "configure" |
| 16563 | #include "confdefs.h" |
| 16564 | #include <wchar.h> |
| 16565 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16566 | #ifdef F77_DUMMY_MAIN |
| 16567 | # ifdef __cplusplus |
| 16568 | extern "C" |
| 16569 | # endif |
| 16570 | int F77_DUMMY_MAIN() { return 1; } |
| 16571 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16572 | int |
| 16573 | main () |
| 16574 | { |
| 16575 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 16576 | test_array [0] = 0 |
| 16577 | |
| 16578 | ; |
| 16579 | return 0; |
| 16580 | } |
| 16581 | _ACEOF |
| 16582 | rm -f conftest.$ac_objext |
| 16583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16584 | (eval $ac_compile) 2>&5 |
| 16585 | ac_status=$? |
| 16586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16587 | (exit $ac_status); } && |
| 16588 | { ac_try='test -s conftest.$ac_objext' |
| 16589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16590 | (eval $ac_try) 2>&5 |
| 16591 | ac_status=$? |
| 16592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16593 | (exit $ac_status); }; }; then |
| 16594 | ac_lo=$ac_mid; break |
| 16595 | else |
| 16596 | echo "$as_me: failed program was:" >&5 |
| 16597 | cat conftest.$ac_ext >&5 |
| 16598 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 16599 | if test $ac_mid -le $ac_hi; then |
| 16600 | ac_lo= ac_hi= |
| 16601 | break |
| 16602 | fi |
| 16603 | ac_mid=`expr 2 '*' $ac_mid` |
| 16604 | fi |
| 16605 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16606 | done |
| 16607 | else |
| 16608 | echo "$as_me: failed program was:" >&5 |
| 16609 | cat conftest.$ac_ext >&5 |
| 16610 | ac_lo= ac_hi= |
| 16611 | fi |
| 16612 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16613 | fi |
| 16614 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16615 | # Binary search between lo and hi bounds. |
| 16616 | while test "x$ac_lo" != "x$ac_hi"; do |
| 16617 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 16618 | cat >conftest.$ac_ext <<_ACEOF |
| 16619 | #line $LINENO "configure" |
| 16620 | #include "confdefs.h" |
| 16621 | #include <wchar.h> |
| 16622 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16623 | #ifdef F77_DUMMY_MAIN |
| 16624 | # ifdef __cplusplus |
| 16625 | extern "C" |
| 16626 | # endif |
| 16627 | int F77_DUMMY_MAIN() { return 1; } |
| 16628 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | int |
| 16630 | main () |
| 16631 | { |
| 16632 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16633 | test_array [0] = 0 |
| 16634 | |
| 16635 | ; |
| 16636 | return 0; |
| 16637 | } |
| 16638 | _ACEOF |
| 16639 | rm -f conftest.$ac_objext |
| 16640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16641 | (eval $ac_compile) 2>&5 |
| 16642 | ac_status=$? |
| 16643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16644 | (exit $ac_status); } && |
| 16645 | { ac_try='test -s conftest.$ac_objext' |
| 16646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16647 | (eval $ac_try) 2>&5 |
| 16648 | ac_status=$? |
| 16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16650 | (exit $ac_status); }; }; then |
| 16651 | ac_hi=$ac_mid |
| 16652 | else |
| 16653 | echo "$as_me: failed program was:" >&5 |
| 16654 | cat conftest.$ac_ext >&5 |
| 16655 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 16656 | fi |
| 16657 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16658 | done |
| 16659 | case $ac_lo in |
| 16660 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 16661 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 16662 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 16663 | { (exit 1); exit 1; }; } ;; |
| 16664 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16665 | else |
| 16666 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16667 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 16668 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 16669 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16670 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16671 | cat >conftest.$ac_ext <<_ACEOF |
| 16672 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16673 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | #include <wchar.h> |
| 16675 | |
| 16676 | long longval () { return (long) (sizeof (wchar_t)); } |
| 16677 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16678 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16679 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16680 | #ifdef F77_DUMMY_MAIN |
| 16681 | # ifdef __cplusplus |
| 16682 | extern "C" |
| 16683 | # endif |
| 16684 | int F77_DUMMY_MAIN() { return 1; } |
| 16685 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16686 | int |
| 16687 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16688 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16689 | |
| 16690 | FILE *f = fopen ("conftest.val", "w"); |
| 16691 | if (! f) |
| 16692 | exit (1); |
| 16693 | if (((long) (sizeof (wchar_t))) < 0) |
| 16694 | { |
| 16695 | long i = longval (); |
| 16696 | if (i != ((long) (sizeof (wchar_t)))) |
| 16697 | exit (1); |
| 16698 | fprintf (f, "%ld\n", i); |
| 16699 | } |
| 16700 | else |
| 16701 | { |
| 16702 | unsigned long i = ulongval (); |
| 16703 | if (i != ((long) (sizeof (wchar_t)))) |
| 16704 | exit (1); |
| 16705 | fprintf (f, "%lu\n", i); |
| 16706 | } |
| 16707 | exit (ferror (f) || fclose (f) != 0); |
| 16708 | |
| 16709 | ; |
| 16710 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16711 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | _ACEOF |
| 16713 | rm -f conftest$ac_exeext |
| 16714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16715 | (eval $ac_link) 2>&5 |
| 16716 | ac_status=$? |
| 16717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16720 | (eval $ac_try) 2>&5 |
| 16721 | ac_status=$? |
| 16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16723 | (exit $ac_status); }; }; then |
| 16724 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16727 | echo "$as_me: failed program was:" >&5 |
| 16728 | cat conftest.$ac_ext >&5 |
| 16729 | ( exit $ac_status ) |
| 16730 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 16731 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 16732 | { (exit 1); exit 1; }; } |
| 16733 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16734 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16735 | fi |
| 16736 | fi |
| 16737 | rm -f conftest.val |
| 16738 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16739 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16740 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16741 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 16743 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 16744 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16745 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16747 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16748 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16749 | fi |
| 16750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16751 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 16752 | 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] | 16753 | # Check whether --enable-unicode or --disable-unicode was given. |
| 16754 | if test "${enable_unicode+set}" = set; then |
| 16755 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16757 | else |
| 16758 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16760 | |
| 16761 | if test $enable_unicode = yes |
| 16762 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 16763 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 16764 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16765 | fi |
| 16766 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16767 | |
| 16768 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16769 | case "$enable_unicode" in |
| 16770 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16771 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16772 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16773 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16774 | |
| 16775 | ;; |
| 16776 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16778 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16779 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16780 | |
| 16781 | ;; |
| 16782 | esac |
| 16783 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16785 | |
| 16786 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16787 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16788 | if test "$enable_unicode" = "no" |
| 16789 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16790 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16791 | echo "$as_me:$LINENO: result: not used" >&5 |
| 16792 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16793 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16794 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16795 | |
| 16796 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16797 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16798 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16799 | |
| 16800 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 16801 | then |
| 16802 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16804 | cat >>confdefs.h <<\_ACEOF |
| 16805 | #define HAVE_USABLE_WCHAR_T 1 |
| 16806 | _ACEOF |
| 16807 | |
| 16808 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16809 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16810 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16811 | |
| 16812 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 16813 | then |
| 16814 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16815 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16816 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16817 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16818 | |
| 16819 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 16820 | then |
| 16821 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16822 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16823 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16824 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16825 | |
| 16826 | else |
| 16827 | PY_UNICODE_TYPE="no type found" |
| 16828 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16829 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 16830 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16831 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16832 | |
| 16833 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 16835 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 16836 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 16837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16838 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16839 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16840 | cat >conftest.$ac_ext <<_ACEOF |
| 16841 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16842 | #include "confdefs.h" |
| 16843 | #include <sys/types.h> |
| 16844 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16845 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16846 | #ifdef F77_DUMMY_MAIN |
| 16847 | # ifdef __cplusplus |
| 16848 | extern "C" |
| 16849 | # endif |
| 16850 | int F77_DUMMY_MAIN() { return 1; } |
| 16851 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16852 | int |
| 16853 | main () |
| 16854 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16855 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 16856 | bogus endian macros |
| 16857 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16858 | |
| 16859 | ; |
| 16860 | return 0; |
| 16861 | } |
| 16862 | _ACEOF |
| 16863 | rm -f conftest.$ac_objext |
| 16864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16865 | (eval $ac_compile) 2>&5 |
| 16866 | ac_status=$? |
| 16867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16868 | (exit $ac_status); } && |
| 16869 | { ac_try='test -s conftest.$ac_objext' |
| 16870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16871 | (eval $ac_try) 2>&5 |
| 16872 | ac_status=$? |
| 16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16874 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16875 | # 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] | 16876 | cat >conftest.$ac_ext <<_ACEOF |
| 16877 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16878 | #include "confdefs.h" |
| 16879 | #include <sys/types.h> |
| 16880 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16881 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16882 | #ifdef F77_DUMMY_MAIN |
| 16883 | # ifdef __cplusplus |
| 16884 | extern "C" |
| 16885 | # endif |
| 16886 | int F77_DUMMY_MAIN() { return 1; } |
| 16887 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16888 | int |
| 16889 | main () |
| 16890 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16891 | #if BYTE_ORDER != BIG_ENDIAN |
| 16892 | not big endian |
| 16893 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16894 | |
| 16895 | ; |
| 16896 | return 0; |
| 16897 | } |
| 16898 | _ACEOF |
| 16899 | rm -f conftest.$ac_objext |
| 16900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16901 | (eval $ac_compile) 2>&5 |
| 16902 | ac_status=$? |
| 16903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16904 | (exit $ac_status); } && |
| 16905 | { ac_try='test -s conftest.$ac_objext' |
| 16906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16907 | (eval $ac_try) 2>&5 |
| 16908 | ac_status=$? |
| 16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16910 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16911 | ac_cv_c_bigendian=yes |
| 16912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16913 | echo "$as_me: failed program was:" >&5 |
| 16914 | cat conftest.$ac_ext >&5 |
| 16915 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16916 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16917 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16919 | echo "$as_me: failed program was:" >&5 |
| 16920 | cat conftest.$ac_ext >&5 |
| 16921 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16922 | if test "$cross_compiling" = yes; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16923 | # try to guess the endianess by grep'ing values into an object file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16924 | ac_cv_c_bigendian=unknown |
| 16925 | cat >conftest.$ac_ext <<_ACEOF |
| 16926 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16927 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16929 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16930 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 16931 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16932 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16933 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16934 | #ifdef F77_DUMMY_MAIN |
| 16935 | # ifdef __cplusplus |
| 16936 | extern "C" |
| 16937 | # endif |
| 16938 | int F77_DUMMY_MAIN() { return 1; } |
| 16939 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16940 | int |
| 16941 | main () |
| 16942 | { |
| 16943 | _ascii (); _ebcdic (); |
| 16944 | ; |
| 16945 | return 0; |
| 16946 | } |
| 16947 | _ACEOF |
| 16948 | rm -f conftest.$ac_objext |
| 16949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16950 | (eval $ac_compile) 2>&5 |
| 16951 | ac_status=$? |
| 16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16953 | (exit $ac_status); } && |
| 16954 | { ac_try='test -s conftest.$ac_objext' |
| 16955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16956 | (eval $ac_try) 2>&5 |
| 16957 | ac_status=$? |
| 16958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16959 | (exit $ac_status); }; }; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16960 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16961 | ac_cv_c_bigendian=yes |
| 16962 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16963 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16964 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16965 | ac_cv_c_bigendian=no |
| 16966 | else |
| 16967 | # finding both strings is unlikely to happen, but who knows? |
| 16968 | ac_cv_c_bigendian=unknown |
| 16969 | fi |
| 16970 | fi |
| 16971 | else |
| 16972 | echo "$as_me: failed program was:" >&5 |
| 16973 | cat conftest.$ac_ext >&5 |
| 16974 | fi |
| 16975 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16976 | else |
| 16977 | cat >conftest.$ac_ext <<_ACEOF |
| 16978 | #line $LINENO "configure" |
| 16979 | #include "confdefs.h" |
| 16980 | int |
| 16981 | main () |
| 16982 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16983 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16984 | union |
| 16985 | { |
| 16986 | long l; |
| 16987 | char c[sizeof (long)]; |
| 16988 | } u; |
| 16989 | u.l = 1; |
| 16990 | exit (u.c[sizeof (long) - 1] == 1); |
| 16991 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16992 | _ACEOF |
| 16993 | rm -f conftest$ac_exeext |
| 16994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16995 | (eval $ac_link) 2>&5 |
| 16996 | ac_status=$? |
| 16997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16998 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17000 | (eval $ac_try) 2>&5 |
| 17001 | ac_status=$? |
| 17002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17003 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17004 | ac_cv_c_bigendian=no |
| 17005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17006 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17007 | echo "$as_me: failed program was:" >&5 |
| 17008 | cat conftest.$ac_ext >&5 |
| 17009 | ( exit $ac_status ) |
| 17010 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17011 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17012 | 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] | 17013 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17014 | fi |
| 17015 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17016 | fi |
| 17017 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 17018 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 17019 | case $ac_cv_c_bigendian in |
| 17020 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17022 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17023 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17024 | _ACEOF |
| 17025 | ;; |
| 17026 | no) |
| 17027 | ;; |
| 17028 | *) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17029 | { { echo "$as_me:$LINENO: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17030 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17031 | echo "$as_me: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17032 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 17033 | { (exit 1); exit 1; }; } ;; |
| 17034 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 17035 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17036 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17037 | # Check whether right shifting a negative integer extends the sign bit |
| 17038 | # 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] | 17039 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 17040 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 17041 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 17042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17044 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17045 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17046 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 | cat >conftest.$ac_ext <<_ACEOF |
| 17049 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17050 | #include "confdefs.h" |
| 17051 | |
| 17052 | int main() |
| 17053 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17054 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17055 | } |
| 17056 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17057 | _ACEOF |
| 17058 | rm -f conftest$ac_exeext |
| 17059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17060 | (eval $ac_link) 2>&5 |
| 17061 | ac_status=$? |
| 17062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17065 | (eval $ac_try) 2>&5 |
| 17066 | ac_status=$? |
| 17067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17068 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17069 | ac_cv_rshift_extends_sign=yes |
| 17070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17071 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17072 | echo "$as_me: failed program was:" >&5 |
| 17073 | cat conftest.$ac_ext >&5 |
| 17074 | ( exit $ac_status ) |
| 17075 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17076 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17077 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17078 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17079 | fi |
| 17080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17081 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 17082 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 17083 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17084 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17085 | |
| 17086 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17087 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17088 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17089 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17090 | fi |
| 17091 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17092 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17093 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 17094 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 17095 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 17096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17098 | |
| 17099 | cat >conftest.$ac_ext <<_ACEOF |
| 17100 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17101 | #include "confdefs.h" |
| 17102 | #include <stdio.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17103 | #ifdef F77_DUMMY_MAIN |
| 17104 | # ifdef __cplusplus |
| 17105 | extern "C" |
| 17106 | # endif |
| 17107 | int F77_DUMMY_MAIN() { return 1; } |
| 17108 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17109 | int |
| 17110 | main () |
| 17111 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17112 | |
| 17113 | FILE *f = fopen("/dev/null", "r"); |
| 17114 | flockfile(f); |
| 17115 | getc_unlocked(f); |
| 17116 | funlockfile(f); |
| 17117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17118 | ; |
| 17119 | return 0; |
| 17120 | } |
| 17121 | _ACEOF |
| 17122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17124 | (eval $ac_link) 2>&5 |
| 17125 | ac_status=$? |
| 17126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17127 | (exit $ac_status); } && |
| 17128 | { ac_try='test -s conftest$ac_exeext' |
| 17129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17130 | (eval $ac_try) 2>&5 |
| 17131 | ac_status=$? |
| 17132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17133 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17134 | ac_cv_have_getc_unlocked=yes |
| 17135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17136 | echo "$as_me: failed program was:" >&5 |
| 17137 | cat conftest.$ac_ext >&5 |
| 17138 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17139 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17141 | fi |
| 17142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 17144 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17145 | if test "$ac_cv_have_getc_unlocked" = yes |
| 17146 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17147 | |
| 17148 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17149 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17150 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 17151 | |
| 17152 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 17153 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17154 | # check for readline 2.2 |
| 17155 | cat >conftest.$ac_ext <<_ACEOF |
| 17156 | #line $LINENO "configure" |
| 17157 | #include "confdefs.h" |
| 17158 | #include <readline/readline.h> |
| 17159 | _ACEOF |
| 17160 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 17161 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 17162 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17163 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17164 | rm -f conftest.er1 |
| 17165 | cat conftest.err >&5 |
| 17166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17167 | (exit $ac_status); } >/dev/null; then |
| 17168 | if test -s conftest.err; then |
| 17169 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17170 | else |
| 17171 | ac_cpp_err= |
| 17172 | fi |
| 17173 | else |
| 17174 | ac_cpp_err=yes |
| 17175 | fi |
| 17176 | if test -z "$ac_cpp_err"; then |
| 17177 | have_readline=yes |
| 17178 | else |
| 17179 | echo "$as_me: failed program was:" >&5 |
| 17180 | cat conftest.$ac_ext >&5 |
| 17181 | have_readline=no |
| 17182 | fi |
| 17183 | rm -f conftest.err conftest.$ac_ext |
| 17184 | if test $have_readline = yes |
| 17185 | then |
| 17186 | cat >conftest.$ac_ext <<_ACEOF |
| 17187 | #line $LINENO "configure" |
| 17188 | #include "confdefs.h" |
| 17189 | #include <readline/readline.h> |
| 17190 | |
| 17191 | _ACEOF |
| 17192 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17193 | egrep "extern int rl_completion_append_character;" >/dev/null 2>&1; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17194 | |
| 17195 | cat >>confdefs.h <<\_ACEOF |
| 17196 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 17197 | _ACEOF |
| 17198 | |
| 17199 | fi |
| 17200 | rm -f conftest* |
| 17201 | |
| 17202 | fi |
| 17203 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17204 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17205 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 17206 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 17207 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 17208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17210 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17211 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17212 | cat >conftest.$ac_ext <<_ACEOF |
| 17213 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17214 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17215 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17216 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17217 | #ifdef __cplusplus |
| 17218 | extern "C" |
| 17219 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17220 | /* 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] | 17221 | builtin and then its argument prototype would still apply. */ |
| 17222 | char rl_pre_input_hook (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17223 | #ifdef F77_DUMMY_MAIN |
| 17224 | # ifdef __cplusplus |
| 17225 | extern "C" |
| 17226 | # endif |
| 17227 | int F77_DUMMY_MAIN() { return 1; } |
| 17228 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17229 | int |
| 17230 | main () |
| 17231 | { |
| 17232 | rl_pre_input_hook (); |
| 17233 | ; |
| 17234 | return 0; |
| 17235 | } |
| 17236 | _ACEOF |
| 17237 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17239 | (eval $ac_link) 2>&5 |
| 17240 | ac_status=$? |
| 17241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17242 | (exit $ac_status); } && |
| 17243 | { ac_try='test -s conftest$ac_exeext' |
| 17244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17245 | (eval $ac_try) 2>&5 |
| 17246 | ac_status=$? |
| 17247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17248 | (exit $ac_status); }; }; then |
| 17249 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17251 | echo "$as_me: failed program was:" >&5 |
| 17252 | cat conftest.$ac_ext >&5 |
| 17253 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17255 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17256 | LIBS=$ac_check_lib_save_LIBS |
| 17257 | fi |
| 17258 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 17259 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 17260 | 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] | 17261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17262 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17263 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17264 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17265 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17266 | fi |
| 17267 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17268 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17269 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17270 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 17271 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 17272 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 17273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17275 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17276 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | cat >conftest.$ac_ext <<_ACEOF |
| 17278 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17279 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17280 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17281 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | #ifdef __cplusplus |
| 17283 | extern "C" |
| 17284 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17285 | /* 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] | 17286 | builtin and then its argument prototype would still apply. */ |
| 17287 | char rl_completion_matches (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17288 | #ifdef F77_DUMMY_MAIN |
| 17289 | # ifdef __cplusplus |
| 17290 | extern "C" |
| 17291 | # endif |
| 17292 | int F77_DUMMY_MAIN() { return 1; } |
| 17293 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17294 | int |
| 17295 | main () |
| 17296 | { |
| 17297 | rl_completion_matches (); |
| 17298 | ; |
| 17299 | return 0; |
| 17300 | } |
| 17301 | _ACEOF |
| 17302 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17304 | (eval $ac_link) 2>&5 |
| 17305 | ac_status=$? |
| 17306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17307 | (exit $ac_status); } && |
| 17308 | { ac_try='test -s conftest$ac_exeext' |
| 17309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17310 | (eval $ac_try) 2>&5 |
| 17311 | ac_status=$? |
| 17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17313 | (exit $ac_status); }; }; then |
| 17314 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17316 | echo "$as_me: failed program was:" >&5 |
| 17317 | cat conftest.$ac_ext >&5 |
| 17318 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17319 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17320 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17321 | LIBS=$ac_check_lib_save_LIBS |
| 17322 | fi |
| 17323 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 17324 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 17325 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17327 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17328 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17329 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17330 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17331 | fi |
| 17332 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17334 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 17335 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 17336 | if test "${ac_cv_broken_nice+set}" = set; then |
| 17337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17339 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17340 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17341 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17343 | cat >conftest.$ac_ext <<_ACEOF |
| 17344 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17345 | #include "confdefs.h" |
| 17346 | |
| 17347 | int main() |
| 17348 | { |
| 17349 | int val1 = nice(1); |
| 17350 | if (val1 != -1 && val1 == nice(2)) |
| 17351 | exit(0); |
| 17352 | exit(1); |
| 17353 | } |
| 17354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17355 | _ACEOF |
| 17356 | rm -f conftest$ac_exeext |
| 17357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17358 | (eval $ac_link) 2>&5 |
| 17359 | ac_status=$? |
| 17360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17361 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17363 | (eval $ac_try) 2>&5 |
| 17364 | ac_status=$? |
| 17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17366 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17367 | ac_cv_broken_nice=yes |
| 17368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17369 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17370 | echo "$as_me: failed program was:" >&5 |
| 17371 | cat conftest.$ac_ext >&5 |
| 17372 | ( exit $ac_status ) |
| 17373 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17374 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17375 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17376 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17377 | fi |
| 17378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17379 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 17380 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17381 | if test "$ac_cv_broken_nice" = yes |
| 17382 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17383 | |
| 17384 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17385 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17386 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17387 | |
| 17388 | fi |
| 17389 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17390 | # tzset(3) exists and works like we expect it to |
| 17391 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 17392 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 17393 | if test "${ac_cv_working_tzset+set}" = set; then |
| 17394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17395 | else |
| 17396 | |
| 17397 | if test "$cross_compiling" = yes; then |
| 17398 | ac_cv_working_tzset=no |
| 17399 | else |
| 17400 | cat >conftest.$ac_ext <<_ACEOF |
| 17401 | #line $LINENO "configure" |
| 17402 | #include "confdefs.h" |
| 17403 | |
| 17404 | #include <stdlib.h> |
| 17405 | #include <time.h> |
| 17406 | int main() |
| 17407 | { |
| 17408 | int gmt_hour; |
| 17409 | int eastern_hour; |
| 17410 | time_t now; |
| 17411 | now = time((time_t*)NULL); |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17412 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17413 | tzset(); |
| 17414 | gmt_hour = localtime(&now)->tm_hour; |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17415 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17416 | tzset(); |
| 17417 | eastern_hour = localtime(&now)->tm_hour; |
| 17418 | if (eastern_hour == gmt_hour) |
| 17419 | exit(1); |
| 17420 | exit(0); |
| 17421 | } |
| 17422 | |
| 17423 | _ACEOF |
| 17424 | rm -f conftest$ac_exeext |
| 17425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17426 | (eval $ac_link) 2>&5 |
| 17427 | ac_status=$? |
| 17428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17429 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17431 | (eval $ac_try) 2>&5 |
| 17432 | ac_status=$? |
| 17433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17434 | (exit $ac_status); }; }; then |
| 17435 | ac_cv_working_tzset=yes |
| 17436 | else |
| 17437 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17438 | echo "$as_me: failed program was:" >&5 |
| 17439 | cat conftest.$ac_ext >&5 |
| 17440 | ( exit $ac_status ) |
| 17441 | ac_cv_working_tzset=no |
| 17442 | fi |
| 17443 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17444 | fi |
| 17445 | fi |
| 17446 | |
| 17447 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 17448 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 17449 | if test "$ac_cv_working_tzset" = yes |
| 17450 | then |
| 17451 | |
| 17452 | cat >>confdefs.h <<\_ACEOF |
| 17453 | #define HAVE_WORKING_TZSET 1 |
| 17454 | _ACEOF |
| 17455 | |
| 17456 | fi |
| 17457 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17458 | # Look for subsecond timestamps in struct stat |
| 17459 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 17460 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 17461 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 17462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17463 | else |
| 17464 | cat >conftest.$ac_ext <<_ACEOF |
| 17465 | #line $LINENO "configure" |
| 17466 | #include "confdefs.h" |
| 17467 | #include <sys/stat.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17468 | #ifdef F77_DUMMY_MAIN |
| 17469 | # ifdef __cplusplus |
| 17470 | extern "C" |
| 17471 | # endif |
| 17472 | int F77_DUMMY_MAIN() { return 1; } |
| 17473 | #endif |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17474 | int |
| 17475 | main () |
| 17476 | { |
| 17477 | |
| 17478 | struct stat st; |
| 17479 | st.st_mtim.tv_nsec = 1; |
| 17480 | |
| 17481 | ; |
| 17482 | return 0; |
| 17483 | } |
| 17484 | _ACEOF |
| 17485 | rm -f conftest.$ac_objext |
| 17486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17487 | (eval $ac_compile) 2>&5 |
| 17488 | ac_status=$? |
| 17489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17490 | (exit $ac_status); } && |
| 17491 | { ac_try='test -s conftest.$ac_objext' |
| 17492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17493 | (eval $ac_try) 2>&5 |
| 17494 | ac_status=$? |
| 17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17496 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 17497 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17498 | else |
| 17499 | echo "$as_me: failed program was:" >&5 |
| 17500 | cat conftest.$ac_ext >&5 |
| 17501 | ac_cv_stat_tv_nsec=no |
| 17502 | fi |
| 17503 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17504 | fi |
| 17505 | |
| 17506 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 17507 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 17508 | if test "$ac_cv_stat_tv_nsec" = yes |
| 17509 | then |
| 17510 | |
| 17511 | cat >>confdefs.h <<\_ACEOF |
| 17512 | #define HAVE_STAT_TV_NSEC 1 |
| 17513 | _ACEOF |
| 17514 | |
| 17515 | fi |
| 17516 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17517 | # 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] | 17518 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 17519 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 17520 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 17521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17523 | cat >conftest.$ac_ext <<_ACEOF |
| 17524 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17525 | #include "confdefs.h" |
| 17526 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17527 | #ifdef F77_DUMMY_MAIN |
| 17528 | # ifdef __cplusplus |
| 17529 | extern "C" |
| 17530 | # endif |
| 17531 | int F77_DUMMY_MAIN() { return 1; } |
| 17532 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17533 | int |
| 17534 | main () |
| 17535 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17536 | |
| 17537 | int rtn; |
| 17538 | rtn = mvwdelch(0,0,0); |
| 17539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17540 | ; |
| 17541 | return 0; |
| 17542 | } |
| 17543 | _ACEOF |
| 17544 | rm -f conftest.$ac_objext |
| 17545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17546 | (eval $ac_compile) 2>&5 |
| 17547 | ac_status=$? |
| 17548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17549 | (exit $ac_status); } && |
| 17550 | { ac_try='test -s conftest.$ac_objext' |
| 17551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17552 | (eval $ac_try) 2>&5 |
| 17553 | ac_status=$? |
| 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17555 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17556 | ac_cv_mvwdelch_is_expression=yes |
| 17557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17558 | echo "$as_me: failed program was:" >&5 |
| 17559 | cat conftest.$ac_ext >&5 |
| 17560 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17561 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17562 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17563 | fi |
| 17564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17565 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 17566 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17567 | |
| 17568 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 17569 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17570 | |
| 17571 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17572 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17573 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17574 | |
| 17575 | fi |
| 17576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17577 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 17578 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 17579 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 17580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17582 | cat >conftest.$ac_ext <<_ACEOF |
| 17583 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17584 | #include "confdefs.h" |
| 17585 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17586 | #ifdef F77_DUMMY_MAIN |
| 17587 | # ifdef __cplusplus |
| 17588 | extern "C" |
| 17589 | # endif |
| 17590 | int F77_DUMMY_MAIN() { return 1; } |
| 17591 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17592 | int |
| 17593 | main () |
| 17594 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17595 | |
| 17596 | WINDOW *w; |
| 17597 | w->_flags = 0; |
| 17598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17599 | ; |
| 17600 | return 0; |
| 17601 | } |
| 17602 | _ACEOF |
| 17603 | rm -f conftest.$ac_objext |
| 17604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17605 | (eval $ac_compile) 2>&5 |
| 17606 | ac_status=$? |
| 17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17608 | (exit $ac_status); } && |
| 17609 | { ac_try='test -s conftest.$ac_objext' |
| 17610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17611 | (eval $ac_try) 2>&5 |
| 17612 | ac_status=$? |
| 17613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17614 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17615 | ac_cv_window_has_flags=yes |
| 17616 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17617 | echo "$as_me: failed program was:" >&5 |
| 17618 | cat conftest.$ac_ext >&5 |
| 17619 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17620 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17621 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17622 | fi |
| 17623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17624 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 17625 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17626 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17627 | |
| 17628 | if test "$ac_cv_window_has_flags" = yes |
| 17629 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17630 | |
| 17631 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17632 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17633 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17634 | |
| 17635 | fi |
| 17636 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 17637 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 17638 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 17639 | |
| 17640 | if test -e /dev/ptmx |
| 17641 | then |
| 17642 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17643 | echo "${ECHO_T}yes" >&6 |
| 17644 | |
| 17645 | cat >>confdefs.h <<\_ACEOF |
| 17646 | #define HAVE_DEV_PTMX 1 |
| 17647 | _ACEOF |
| 17648 | |
| 17649 | else |
| 17650 | echo "$as_me:$LINENO: result: no" >&5 |
| 17651 | echo "${ECHO_T}no" >&6 |
| 17652 | fi |
| 17653 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 17654 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 17655 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 17656 | |
| 17657 | if test -e /dev/ptc |
| 17658 | then |
| 17659 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17660 | echo "${ECHO_T}yes" >&6 |
| 17661 | |
| 17662 | cat >>confdefs.h <<\_ACEOF |
| 17663 | #define HAVE_DEV_PTC 1 |
| 17664 | _ACEOF |
| 17665 | |
| 17666 | else |
| 17667 | echo "$as_me:$LINENO: result: no" >&5 |
| 17668 | echo "${ECHO_T}no" >&6 |
| 17669 | fi |
| 17670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17671 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 17672 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 17673 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 17674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17676 | cat >conftest.$ac_ext <<_ACEOF |
| 17677 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17678 | #include "confdefs.h" |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17679 | |
| 17680 | #ifdef HAVE_SYS_TYPES_H |
| 17681 | #include <sys/types.h> |
| 17682 | #endif |
| 17683 | #ifdef HAVE_SYS_SOCKET_H |
| 17684 | #include <sys/socket.h> |
| 17685 | #endif |
| 17686 | |
| 17687 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17688 | #ifdef F77_DUMMY_MAIN |
| 17689 | # ifdef __cplusplus |
| 17690 | extern "C" |
| 17691 | # endif |
| 17692 | int F77_DUMMY_MAIN() { return 1; } |
| 17693 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17694 | int |
| 17695 | main () |
| 17696 | { |
| 17697 | if ((socklen_t *) 0) |
| 17698 | return 0; |
| 17699 | if (sizeof (socklen_t)) |
| 17700 | return 0; |
| 17701 | ; |
| 17702 | return 0; |
| 17703 | } |
| 17704 | _ACEOF |
| 17705 | rm -f conftest.$ac_objext |
| 17706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17707 | (eval $ac_compile) 2>&5 |
| 17708 | ac_status=$? |
| 17709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17710 | (exit $ac_status); } && |
| 17711 | { ac_try='test -s conftest.$ac_objext' |
| 17712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17713 | (eval $ac_try) 2>&5 |
| 17714 | ac_status=$? |
| 17715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17716 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 17717 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17719 | echo "$as_me: failed program was:" >&5 |
| 17720 | cat conftest.$ac_ext >&5 |
| 17721 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17722 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17723 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17724 | fi |
| 17725 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 17726 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 17727 | if test $ac_cv_type_socklen_t = yes; then |
| 17728 | : |
| 17729 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17730 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17731 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17732 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17733 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17734 | |
| 17735 | fi |
| 17736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17737 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17738 | |
| 17739 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 17740 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 17741 | do |
| 17742 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 17743 | done |
| 17744 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17745 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 17746 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17747 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 17748 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17749 | for dir in $SRCDIRS; do |
| 17750 | if test ! -d $dir; then |
| 17751 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 17752 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17753 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17754 | echo "$as_me:$LINENO: result: done" >&5 |
| 17755 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 17756 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17757 | # generate output files |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17758 | 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] | 17759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17760 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17761 | # This file is a shell script that caches the results of configure |
| 17762 | # 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] | 17763 | # scripts and configure runs, see configure's option --config-cache. |
| 17764 | # It is not useful on other systems. If it contains results you don't |
| 17765 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17766 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17767 | # config.status only pays attention to the cache file if you give it |
| 17768 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17769 | # |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17770 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17771 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17772 | # following values. |
| 17773 | |
| 17774 | _ACEOF |
| 17775 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17776 | # The following way of writing the cache mishandles newlines in values, |
| 17777 | # but we know of no workaround that is simple, portable, and efficient. |
| 17778 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17779 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17780 | # 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] | 17781 | { |
| 17782 | (set) 2>&1 | |
| 17783 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 17784 | *ac_space=\ *) |
| 17785 | # `set' does not quote correctly, so add quotes (double-quote |
| 17786 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 17787 | sed -n \ |
| 17788 | "s/'/'\\\\''/g; |
| 17789 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 17790 | ;; |
| 17791 | *) |
| 17792 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 17793 | sed -n \ |
| 17794 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 17795 | ;; |
| 17796 | esac; |
| 17797 | } | |
| 17798 | sed ' |
| 17799 | t clear |
| 17800 | : clear |
| 17801 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17802 | t end |
| 17803 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17804 | : end' >>confcache |
| 17805 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17806 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17807 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 17808 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17809 | else |
| 17810 | echo "not updating unwritable cache $cache_file" |
| 17811 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17812 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17813 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17814 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17815 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17816 | # Let make expand exec_prefix. |
| 17817 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17819 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17820 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17821 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17822 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17823 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17824 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17825 | s/:*\$(srcdir):*/:/; |
| 17826 | s/:*\${srcdir}:*/:/; |
| 17827 | s/:*@srcdir@:*/:/; |
| 17828 | s/^\([^=]*=[ ]*\):*/\1/; |
| 17829 | s/:*$//; |
| 17830 | s/^[^=]*=[ ]*$//; |
| 17831 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17832 | fi |
| 17833 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17834 | DEFS=-DHAVE_CONFIG_H |
| 17835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17836 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17837 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17838 | ac_clean_files_save=$ac_clean_files |
| 17839 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 17840 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 17841 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17842 | cat >$CONFIG_STATUS <<_ACEOF |
| 17843 | #! $SHELL |
| 17844 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17845 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17846 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17847 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17849 | debug=false |
| 17850 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17851 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17853 | cat >>$CONFIG_STATUS <<\_ACEOF |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17855 | ## --------------------- ## |
| 17856 | ## M4sh Initialization. ## |
| 17857 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | # Be Bourne compatible |
| 17860 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17861 | emulate sh |
| 17862 | NULLCMD=: |
| 17863 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 17864 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17865 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17866 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17867 | # NLS nuisances. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17868 | # Support unset when possible. |
| 17869 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 17870 | as_unset=unset |
| 17871 | else |
| 17872 | as_unset=false |
| 17873 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17874 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17875 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 17876 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 17877 | { LANG=C; export LANG; } |
| 17878 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 17879 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 17880 | { LC_ALL=C; export LC_ALL; } |
| 17881 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 17882 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 17883 | { LC_TIME=C; export LC_TIME; } |
| 17884 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 17885 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 17886 | { LC_CTYPE=C; export LC_CTYPE; } |
| 17887 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 17888 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 17889 | { LANGUAGE=C; export LANGUAGE; } |
| 17890 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 17891 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 17892 | { LC_COLLATE=C; export LC_COLLATE; } |
| 17893 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 17894 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 17895 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 17896 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 17897 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 17898 | { LC_MESSAGES=C; export LC_MESSAGES; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17899 | |
| 17900 | |
| 17901 | # Name of the executable. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17902 | as_me=`(basename "$0") 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17903 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17904 | X"$0" : 'X\(//\)$' \| \ |
| 17905 | X"$0" : 'X\(/\)$' \| \ |
| 17906 | . : '\(.\)' 2>/dev/null || |
| 17907 | echo X/"$0" | |
| 17908 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 17909 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 17910 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 17911 | s/.*/./; q'` |
| 17912 | |
| 17913 | # PATH needs CR, and LINENO needs CR and PATH. |
| 17914 | # Avoid depending upon Character Ranges. |
| 17915 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17916 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17917 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17918 | as_cr_digits='0123456789' |
| 17919 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17920 | |
| 17921 | # The user is always right. |
| 17922 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17923 | echo "#! /bin/sh" >conftest.sh |
| 17924 | echo "exit 0" >>conftest.sh |
| 17925 | chmod +x conftest.sh |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17926 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17927 | PATH_SEPARATOR=';' |
| 17928 | else |
| 17929 | PATH_SEPARATOR=: |
| 17930 | fi |
| 17931 | rm -f conftest.sh |
| 17932 | fi |
| 17933 | |
| 17934 | |
| 17935 | as_lineno_1=$LINENO |
| 17936 | as_lineno_2=$LINENO |
| 17937 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17938 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17939 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 17940 | # Find who we are. Look in the path if we contain no path at all |
| 17941 | # relative or not. |
| 17942 | case $0 in |
| 17943 | *[\\/]* ) as_myself=$0 ;; |
| 17944 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17945 | for as_dir in $PATH |
| 17946 | do |
| 17947 | IFS=$as_save_IFS |
| 17948 | test -z "$as_dir" && as_dir=. |
| 17949 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17950 | done |
| 17951 | |
| 17952 | ;; |
| 17953 | esac |
| 17954 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17955 | # in which case we are not to be found in the path. |
| 17956 | if test "x$as_myself" = x; then |
| 17957 | as_myself=$0 |
| 17958 | fi |
| 17959 | if test ! -f "$as_myself"; then |
| 17960 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 17961 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 17962 | { (exit 1); exit 1; }; } |
| 17963 | fi |
| 17964 | case $CONFIG_SHELL in |
| 17965 | '') |
| 17966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17967 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 17968 | do |
| 17969 | IFS=$as_save_IFS |
| 17970 | test -z "$as_dir" && as_dir=. |
| 17971 | for as_base in sh bash ksh sh5; do |
| 17972 | case $as_dir in |
| 17973 | /*) |
| 17974 | if ("$as_dir/$as_base" -c ' |
| 17975 | as_lineno_1=$LINENO |
| 17976 | as_lineno_2=$LINENO |
| 17977 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17978 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17979 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 17980 | CONFIG_SHELL=$as_dir/$as_base |
| 17981 | export CONFIG_SHELL |
| 17982 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 17983 | fi;; |
| 17984 | esac |
| 17985 | done |
| 17986 | done |
| 17987 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17988 | esac |
| 17989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17990 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17991 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 17992 | # line-number line before each line; the second 'sed' does the real |
| 17993 | # work. The second script uses 'N' to pair each line-number line |
| 17994 | # with the numbered line, and appends trailing '-' during |
| 17995 | # substitution so that $LINENO is not a special case at line end. |
| 17996 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 17997 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 17998 | sed '=' <$as_myself | |
| 17999 | sed ' |
| 18000 | N |
| 18001 | s,$,-, |
| 18002 | : loop |
| 18003 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 18004 | t loop |
| 18005 | s,-$,, |
| 18006 | s,^['$as_cr_digits']*\n,, |
| 18007 | ' >$as_me.lineno && |
| 18008 | chmod +x $as_me.lineno || |
| 18009 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 18010 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 18011 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18013 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 18014 | # (the dirname of $[0] is not the place where we might find the |
| 18015 | # original and so on. Autoconf is especially sensible to this). |
| 18016 | . ./$as_me.lineno |
| 18017 | # Exit status is that of the last command. |
| 18018 | exit |
| 18019 | } |
| 18020 | |
| 18021 | |
| 18022 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 18023 | *c*,-n*) ECHO_N= ECHO_C=' |
| 18024 | ' ECHO_T=' ' ;; |
| 18025 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 18026 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 18027 | esac |
| 18028 | |
| 18029 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 18030 | as_expr=expr |
| 18031 | else |
| 18032 | as_expr=false |
| 18033 | fi |
| 18034 | |
| 18035 | rm -f conf$$ conf$$.exe conf$$.file |
| 18036 | echo >conf$$.file |
| 18037 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18038 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 18039 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 18040 | if test -f conf$$.exe; then |
| 18041 | # Don't use ln at all; we don't have any links |
| 18042 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18044 | as_ln_s='ln -s' |
| 18045 | fi |
| 18046 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18047 | as_ln_s=ln |
| 18048 | else |
| 18049 | as_ln_s='cp -p' |
| 18050 | fi |
| 18051 | rm -f conf$$ conf$$.exe conf$$.file |
| 18052 | |
| 18053 | as_executable_p="test -f" |
| 18054 | |
| 18055 | # Sed expression to map a string onto a valid CPP name. |
| 18056 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 18057 | |
| 18058 | # Sed expression to map a string onto a valid variable name. |
| 18059 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 18060 | |
| 18061 | |
| 18062 | # IFS |
| 18063 | # We need space, tab and new line, in precisely that order. |
| 18064 | as_nl=' |
| 18065 | ' |
| 18066 | IFS=" $as_nl" |
| 18067 | |
| 18068 | # CDPATH. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18069 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18070 | |
| 18071 | exec 6>&1 |
| 18072 | |
| 18073 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 18074 | # report actual input values of CONFIG_FILES etc. instead of their |
| 18075 | # values after options handling. Logging --version etc. is OK. |
| 18076 | exec 5>>config.log |
| 18077 | { |
| 18078 | echo |
| 18079 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18080 | ## Running $as_me. ## |
| 18081 | _ASBOX |
| 18082 | } >&5 |
| 18083 | cat >&5 <<_CSEOF |
| 18084 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 18085 | This file was extended by python $as_me 2.3, which was |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18086 | generated by GNU Autoconf 2.53. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18087 | |
| 18088 | CONFIG_FILES = $CONFIG_FILES |
| 18089 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18090 | CONFIG_LINKS = $CONFIG_LINKS |
| 18091 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18092 | $ $0 $@ |
| 18093 | |
| 18094 | _CSEOF |
| 18095 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 18096 | echo >&5 |
| 18097 | _ACEOF |
| 18098 | |
| 18099 | # Files that config.status was made for. |
| 18100 | if test -n "$ac_config_files"; then |
| 18101 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 18102 | fi |
| 18103 | |
| 18104 | if test -n "$ac_config_headers"; then |
| 18105 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 18106 | fi |
| 18107 | |
| 18108 | if test -n "$ac_config_links"; then |
| 18109 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 18110 | fi |
| 18111 | |
| 18112 | if test -n "$ac_config_commands"; then |
| 18113 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 18114 | fi |
| 18115 | |
| 18116 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18117 | |
| 18118 | ac_cs_usage="\ |
| 18119 | \`$as_me' instantiates files from templates according to the |
| 18120 | current configuration. |
| 18121 | |
| 18122 | Usage: $0 [OPTIONS] [FILE]... |
| 18123 | |
| 18124 | -h, --help print this help, then exit |
| 18125 | -V, --version print version number, then exit |
| 18126 | -d, --debug don't remove temporary files |
| 18127 | --recheck update $as_me by reconfiguring in the same conditions |
| 18128 | --file=FILE[:TEMPLATE] |
| 18129 | instantiate the configuration file FILE |
| 18130 | --header=FILE[:TEMPLATE] |
| 18131 | instantiate the configuration header FILE |
| 18132 | |
| 18133 | Configuration files: |
| 18134 | $config_files |
| 18135 | |
| 18136 | Configuration headers: |
| 18137 | $config_headers |
| 18138 | |
| 18139 | Report bugs to <bug-autoconf@gnu.org>." |
| 18140 | _ACEOF |
| 18141 | |
| 18142 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18143 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 18144 | python config.status 2.3 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18145 | configured by $0, generated by GNU Autoconf 2.53, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18146 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 18147 | |
| 18148 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 18149 | Free Software Foundation, Inc. |
| 18150 | This config.status script is free software; the Free Software Foundation |
| 18151 | gives unlimited permission to copy, distribute and modify it." |
| 18152 | srcdir=$srcdir |
| 18153 | INSTALL="$INSTALL" |
| 18154 | _ACEOF |
| 18155 | |
| 18156 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18157 | # If no file are specified by the user, then we need to provide default |
| 18158 | # value. By we need to know if files were specified by the user. |
| 18159 | ac_need_defaults=: |
| 18160 | while test $# != 0 |
| 18161 | do |
| 18162 | case $1 in |
| 18163 | --*=*) |
| 18164 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 18165 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18166 | shift |
| 18167 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 18168 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18169 | ;; |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18170 | -*);; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18171 | *) # This is not an option, so the user has probably given explicit |
| 18172 | # arguments. |
| 18173 | ac_need_defaults=false;; |
| 18174 | esac |
| 18175 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18176 | case $1 in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18177 | # Handling of the options. |
| 18178 | _ACEOF |
| 18179 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18180 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18181 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 18182 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 18183 | _ACEOF |
| 18184 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18185 | --version | --vers* | -V ) |
| 18186 | echo "$ac_cs_version"; exit 0 ;; |
| 18187 | --he | --h) |
| 18188 | # Conflict between --help and --header |
| 18189 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 18190 | Try \`$0 --help' for more information." >&5 |
| 18191 | echo "$as_me: error: ambiguous option: $1 |
| 18192 | Try \`$0 --help' for more information." >&2;} |
| 18193 | { (exit 1); exit 1; }; };; |
| 18194 | --help | --hel | -h ) |
| 18195 | echo "$ac_cs_usage"; exit 0 ;; |
| 18196 | --debug | --d* | -d ) |
| 18197 | debug=: ;; |
| 18198 | --file | --fil | --fi | --f ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18199 | shift |
| 18200 | CONFIG_FILES="$CONFIG_FILES $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18201 | ac_need_defaults=false;; |
| 18202 | --header | --heade | --head | --hea ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18203 | shift |
| 18204 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18205 | ac_need_defaults=false;; |
| 18206 | |
| 18207 | # This is an error. |
| 18208 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 18209 | Try \`$0 --help' for more information." >&5 |
| 18210 | echo "$as_me: error: unrecognized option: $1 |
| 18211 | Try \`$0 --help' for more information." >&2;} |
| 18212 | { (exit 1); exit 1; }; } ;; |
| 18213 | |
| 18214 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 18215 | |
| 18216 | esac |
| 18217 | shift |
| 18218 | done |
| 18219 | |
| 18220 | _ACEOF |
| 18221 | |
| 18222 | |
| 18223 | |
| 18224 | |
| 18225 | |
| 18226 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18227 | for ac_config_target in $ac_config_targets |
| 18228 | do |
| 18229 | case "$ac_config_target" in |
| 18230 | # Handling of arguments. |
| 18231 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 18232 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 18233 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 18234 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 18235 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 18236 | { (exit 1); exit 1; }; };; |
| 18237 | esac |
| 18238 | done |
| 18239 | |
| 18240 | # If the user did not use the arguments to specify the items to instantiate, |
| 18241 | # then the envvar interface is used. Set only those that are not. |
| 18242 | # We use the long form for the default assignment because of an extremely |
| 18243 | # bizarre bug on SunOS 4.1.3. |
| 18244 | if $ac_need_defaults; then |
| 18245 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18246 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 18247 | fi |
| 18248 | |
| 18249 | # Create a temporary directory, and hook for its removal unless debugging. |
| 18250 | $debug || |
| 18251 | { |
| 18252 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 18253 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 18254 | } |
| 18255 | |
| 18256 | # Create a (secure) tmp directory for tmp files. |
| 18257 | : ${TMPDIR=/tmp} |
| 18258 | { |
| 18259 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 18260 | test -n "$tmp" && test -d "$tmp" |
| 18261 | } || |
| 18262 | { |
| 18263 | tmp=$TMPDIR/cs$$-$RANDOM |
| 18264 | (umask 077 && mkdir $tmp) |
| 18265 | } || |
| 18266 | { |
| 18267 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 18268 | { (exit 1); exit 1; } |
| 18269 | } |
| 18270 | |
| 18271 | _ACEOF |
| 18272 | |
| 18273 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18274 | |
| 18275 | # |
| 18276 | # CONFIG_FILES section. |
| 18277 | # |
| 18278 | |
| 18279 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 18280 | # This happens for instance when ./config.status config.h |
| 18281 | if test -n "\$CONFIG_FILES"; then |
| 18282 | # Protect against being on the right side of a sed subst in config.status. |
| 18283 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 18284 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 18285 | s,@SHELL@,$SHELL,;t t |
| 18286 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 18287 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 18288 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 18289 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 18290 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 18291 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 18292 | s,@exec_prefix@,$exec_prefix,;t t |
| 18293 | s,@prefix@,$prefix,;t t |
| 18294 | s,@program_transform_name@,$program_transform_name,;t t |
| 18295 | s,@bindir@,$bindir,;t t |
| 18296 | s,@sbindir@,$sbindir,;t t |
| 18297 | s,@libexecdir@,$libexecdir,;t t |
| 18298 | s,@datadir@,$datadir,;t t |
| 18299 | s,@sysconfdir@,$sysconfdir,;t t |
| 18300 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 18301 | s,@localstatedir@,$localstatedir,;t t |
| 18302 | s,@libdir@,$libdir,;t t |
| 18303 | s,@includedir@,$includedir,;t t |
| 18304 | s,@oldincludedir@,$oldincludedir,;t t |
| 18305 | s,@infodir@,$infodir,;t t |
| 18306 | s,@mandir@,$mandir,;t t |
| 18307 | s,@build_alias@,$build_alias,;t t |
| 18308 | s,@host_alias@,$host_alias,;t t |
| 18309 | s,@target_alias@,$target_alias,;t t |
| 18310 | s,@DEFS@,$DEFS,;t t |
| 18311 | s,@ECHO_C@,$ECHO_C,;t t |
| 18312 | s,@ECHO_N@,$ECHO_N,;t t |
| 18313 | s,@ECHO_T@,$ECHO_T,;t t |
| 18314 | s,@LIBS@,$LIBS,;t t |
| 18315 | s,@VERSION@,$VERSION,;t t |
| 18316 | s,@SOVERSION@,$SOVERSION,;t t |
| 18317 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 18318 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 18319 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 18320 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 18321 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 18322 | s,@MACHDEP@,$MACHDEP,;t t |
| 18323 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 18324 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 18325 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18326 | s,@CXX@,$CXX,;t t |
| 18327 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 18328 | s,@EXEEXT@,$EXEEXT,;t t |
| 18329 | s,@CC@,$CC,;t t |
| 18330 | s,@CFLAGS@,$CFLAGS,;t t |
| 18331 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 18332 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 18333 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 18334 | s,@OBJEXT@,$OBJEXT,;t t |
| 18335 | s,@CPP@,$CPP,;t t |
| 18336 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 18337 | s,@LIBRARY@,$LIBRARY,;t t |
| 18338 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 18339 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 18340 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 18341 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 18342 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 18343 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 18344 | s,@LINKCC@,$LINKCC,;t t |
| 18345 | s,@RANLIB@,$RANLIB,;t t |
| 18346 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 18347 | s,@AR@,$AR,;t t |
| 18348 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 18349 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 18350 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 18351 | s,@LN@,$LN,;t t |
| 18352 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 18353 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18354 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 18355 | s,@SO@,$SO,;t t |
| 18356 | s,@LDSHARED@,$LDSHARED,;t t |
| 18357 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 18358 | s,@CCSHARED@,$CCSHARED,;t t |
| 18359 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 18360 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18361 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18362 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 18363 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 18364 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 18365 | s,@LDLAST@,$LDLAST,;t t |
| 18366 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 18367 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 18368 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 18369 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18370 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18371 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 18372 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 18373 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 18374 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 18375 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 18376 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 18377 | s,@LIBM@,$LIBM,;t t |
| 18378 | s,@LIBC@,$LIBC,;t t |
| 18379 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 18380 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 18381 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 18382 | CEOF |
| 18383 | |
| 18384 | _ACEOF |
| 18385 | |
| 18386 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18387 | # Split the substitutions into bite-sized pieces for seds with |
| 18388 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 18389 | ac_max_sed_lines=48 |
| 18390 | ac_sed_frag=1 # Number of current file. |
| 18391 | ac_beg=1 # First line for current file. |
| 18392 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 18393 | ac_more_lines=: |
| 18394 | ac_sed_cmds= |
| 18395 | while $ac_more_lines; do |
| 18396 | if test $ac_beg -gt 1; then |
| 18397 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18398 | else |
| 18399 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18400 | fi |
| 18401 | if test ! -s $tmp/subs.frag; then |
| 18402 | ac_more_lines=false |
| 18403 | else |
| 18404 | # The purpose of the label and of the branching condition is to |
| 18405 | # speed up the sed processing (if there are no `@' at all, there |
| 18406 | # is no need to browse any of the substitutions). |
| 18407 | # These are the two extra sed commands mentioned above. |
| 18408 | (echo ':t |
| 18409 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 18410 | if test -z "$ac_sed_cmds"; then |
| 18411 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18412 | else |
| 18413 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18414 | fi |
| 18415 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 18416 | ac_beg=$ac_end |
| 18417 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 18418 | fi |
| 18419 | done |
| 18420 | if test -z "$ac_sed_cmds"; then |
| 18421 | ac_sed_cmds=cat |
| 18422 | fi |
| 18423 | fi # test -n "$CONFIG_FILES" |
| 18424 | |
| 18425 | _ACEOF |
| 18426 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18427 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 18428 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 18429 | case $ac_file in |
| 18430 | - | *:- | *:-:* ) # input from stdin |
| 18431 | cat >$tmp/stdin |
| 18432 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18433 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18434 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18435 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18436 | * ) ac_file_in=$ac_file.in ;; |
| 18437 | esac |
| 18438 | |
| 18439 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 18440 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18441 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18442 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18443 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18444 | X"$ac_file" : 'X\(/\)' \| \ |
| 18445 | . : '\(.\)' 2>/dev/null || |
| 18446 | echo X"$ac_file" | |
| 18447 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18448 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18449 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18450 | /^X\(\/\).*/{ s//\1/; q; } |
| 18451 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18452 | { case "$ac_dir" in |
| 18453 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 18454 | *) as_incr_dir=.;; |
| 18455 | esac |
| 18456 | as_dummy="$ac_dir" |
| 18457 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 18458 | case $as_mkdir_dir in |
| 18459 | # Skip DOS drivespec |
| 18460 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 18461 | *) |
| 18462 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 18463 | test -d "$as_incr_dir" || |
| 18464 | mkdir "$as_incr_dir" || |
| 18465 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 18466 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 18467 | { (exit 1); exit 1; }; } |
| 18468 | ;; |
| 18469 | esac |
| 18470 | done; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18471 | |
| 18472 | ac_builddir=. |
| 18473 | |
| 18474 | if test "$ac_dir" != .; then |
| 18475 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 18476 | # A "../" for each directory in $ac_dir_suffix. |
| 18477 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 18478 | else |
| 18479 | ac_dir_suffix= ac_top_builddir= |
| 18480 | fi |
| 18481 | |
| 18482 | case $srcdir in |
| 18483 | .) # No --srcdir option. We are building in place. |
| 18484 | ac_srcdir=. |
| 18485 | if test -z "$ac_top_builddir"; then |
| 18486 | ac_top_srcdir=. |
| 18487 | else |
| 18488 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 18489 | fi ;; |
| 18490 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 18491 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18492 | ac_top_srcdir=$srcdir ;; |
| 18493 | *) # Relative path. |
| 18494 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 18495 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 18496 | esac |
| 18497 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 18498 | # absolute. |
| 18499 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 18500 | 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] | 18501 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 18502 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 18503 | |
| 18504 | |
| 18505 | case $INSTALL in |
| 18506 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 18507 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 18508 | esac |
| 18509 | |
| 18510 | if test x"$ac_file" != x-; then |
| 18511 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18512 | echo "$as_me: creating $ac_file" >&6;} |
| 18513 | rm -f "$ac_file" |
| 18514 | fi |
| 18515 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18516 | # use $as_me), people would be surprised to read: |
| 18517 | # /* config.h. Generated by config.status. */ |
| 18518 | if test x"$ac_file" = x-; then |
| 18519 | configure_input= |
| 18520 | else |
| 18521 | configure_input="$ac_file. " |
| 18522 | fi |
| 18523 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 18524 | sed 's,.*/,,'` by configure." |
| 18525 | |
| 18526 | # First look for the input files in the build tree, otherwise in the |
| 18527 | # src tree. |
| 18528 | ac_file_inputs=`IFS=: |
| 18529 | for f in $ac_file_in; do |
| 18530 | case $f in |
| 18531 | -) echo $tmp/stdin ;; |
| 18532 | [\\/$]*) |
| 18533 | # Absolute (can't be DOS-style, as IFS=:) |
| 18534 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18535 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18536 | { (exit 1); exit 1; }; } |
| 18537 | echo $f;; |
| 18538 | *) # Relative |
| 18539 | if test -f "$f"; then |
| 18540 | # Build tree |
| 18541 | echo $f |
| 18542 | elif test -f "$srcdir/$f"; then |
| 18543 | # Source tree |
| 18544 | echo $srcdir/$f |
| 18545 | else |
| 18546 | # /dev/null tree |
| 18547 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18548 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18549 | { (exit 1); exit 1; }; } |
| 18550 | fi;; |
| 18551 | esac |
| 18552 | done` || { (exit 1); exit 1; } |
| 18553 | _ACEOF |
| 18554 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18555 | sed "$ac_vpsub |
| 18556 | $extrasub |
| 18557 | _ACEOF |
| 18558 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18559 | :t |
| 18560 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18561 | s,@configure_input@,$configure_input,;t t |
| 18562 | s,@srcdir@,$ac_srcdir,;t t |
| 18563 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 18564 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 18565 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 18566 | s,@builddir@,$ac_builddir,;t t |
| 18567 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 18568 | s,@top_builddir@,$ac_top_builddir,;t t |
| 18569 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 18570 | s,@INSTALL@,$ac_INSTALL,;t t |
| 18571 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 18572 | rm -f $tmp/stdin |
| 18573 | if test x"$ac_file" != x-; then |
| 18574 | mv $tmp/out $ac_file |
| 18575 | else |
| 18576 | cat $tmp/out |
| 18577 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18578 | fi |
| 18579 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18580 | done |
| 18581 | _ACEOF |
| 18582 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18584 | # |
| 18585 | # CONFIG_HEADER section. |
| 18586 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18587 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18588 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 18589 | # 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] | 18590 | # |
| 18591 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18592 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 18593 | ac_dB='[ ].*$,\1#\2' |
| 18594 | ac_dC=' ' |
| 18595 | ac_dD=',;t' |
| 18596 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 18597 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 18598 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18599 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18600 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18602 | 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] | 18603 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18604 | case $ac_file in |
| 18605 | - | *:- | *:-:* ) # input from stdin |
| 18606 | cat >$tmp/stdin |
| 18607 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18608 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18609 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18610 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18611 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18612 | esac |
| 18613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18614 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18615 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18617 | # First look for the input files in the build tree, otherwise in the |
| 18618 | # src tree. |
| 18619 | ac_file_inputs=`IFS=: |
| 18620 | for f in $ac_file_in; do |
| 18621 | case $f in |
| 18622 | -) echo $tmp/stdin ;; |
| 18623 | [\\/$]*) |
| 18624 | # Absolute (can't be DOS-style, as IFS=:) |
| 18625 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18626 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18627 | { (exit 1); exit 1; }; } |
| 18628 | echo $f;; |
| 18629 | *) # Relative |
| 18630 | if test -f "$f"; then |
| 18631 | # Build tree |
| 18632 | echo $f |
| 18633 | elif test -f "$srcdir/$f"; then |
| 18634 | # Source tree |
| 18635 | echo $srcdir/$f |
| 18636 | else |
| 18637 | # /dev/null tree |
| 18638 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18639 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18640 | { (exit 1); exit 1; }; } |
| 18641 | fi;; |
| 18642 | esac |
| 18643 | done` || { (exit 1); exit 1; } |
| 18644 | # Remove the trailing spaces. |
| 18645 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18647 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18649 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 18650 | # `conftest.undefs', that substitutes the proper values into |
| 18651 | # config.h.in to produce config.h. The first handles `#define' |
| 18652 | # templates, and the second `#undef' templates. |
| 18653 | # And first: Protect against being on the right side of a sed subst in |
| 18654 | # config.status. Protect against being in an unquoted here document |
| 18655 | # in config.status. |
| 18656 | rm -f conftest.defines conftest.undefs |
| 18657 | # Using a here document instead of a string reduces the quoting nightmare. |
| 18658 | # Putting comments in sed scripts is not portable. |
| 18659 | # |
| 18660 | # `end' is used to avoid that the second main sed command (meant for |
| 18661 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 18662 | # See the Autoconf documentation for `clear'. |
| 18663 | cat >confdef2sed.sed <<\_ACEOF |
| 18664 | s/[\\&,]/\\&/g |
| 18665 | s,[\\$`],\\&,g |
| 18666 | t clear |
| 18667 | : clear |
| 18668 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 18669 | t end |
| 18670 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 18671 | : end |
| 18672 | _ACEOF |
| 18673 | # If some macros were called several times there might be several times |
| 18674 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 18675 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 18676 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 18677 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 18678 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18679 | |
| 18680 | # This sed command replaces #undef with comments. This is necessary, for |
| 18681 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 18682 | # 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] | 18683 | cat >>conftest.undefs <<\_ACEOF |
| 18684 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 18685 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18687 | # Break up conftest.defines because some shells have a limit on the size |
| 18688 | # of here documents, and old seds have small limits too (100 cmds). |
| 18689 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18690 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18691 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 18692 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18693 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18694 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18695 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18696 | # Write a limited-size here document to $tmp/defines.sed. |
| 18697 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 18698 | # Speed up: don't consider the non `#define' lines. |
| 18699 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 18700 | # Work around the forget-to-reset-the-flag bug. |
| 18701 | echo 't clr' >>$CONFIG_STATUS |
| 18702 | echo ': clr' >>$CONFIG_STATUS |
| 18703 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18704 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18705 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 18706 | rm -f $tmp/in |
| 18707 | mv $tmp/out $tmp/in |
| 18708 | ' >>$CONFIG_STATUS |
| 18709 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 18710 | rm -f conftest.defines |
| 18711 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18712 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18713 | rm -f conftest.defines |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18714 | echo ' fi # egrep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18715 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18717 | # Break up conftest.undefs because some shells have a limit on the size |
| 18718 | # of here documents, and old seds have small limits too (100 cmds). |
| 18719 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 18720 | rm -f conftest.tail |
| 18721 | while grep . conftest.undefs >/dev/null |
| 18722 | do |
| 18723 | # Write a limited-size here document to $tmp/undefs.sed. |
| 18724 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 18725 | # Speed up: don't consider the non `#undef' |
| 18726 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 18727 | # Work around the forget-to-reset-the-flag bug. |
| 18728 | echo 't clr' >>$CONFIG_STATUS |
| 18729 | echo ': clr' >>$CONFIG_STATUS |
| 18730 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 18731 | echo 'CEOF |
| 18732 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 18733 | rm -f $tmp/in |
| 18734 | mv $tmp/out $tmp/in |
| 18735 | ' >>$CONFIG_STATUS |
| 18736 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 18737 | rm -f conftest.undefs |
| 18738 | mv conftest.tail conftest.undefs |
| 18739 | done |
| 18740 | rm -f conftest.undefs |
| 18741 | |
| 18742 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18743 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18744 | # use $as_me), people would be surprised to read: |
| 18745 | # /* config.h. Generated by config.status. */ |
| 18746 | if test x"$ac_file" = x-; then |
| 18747 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18749 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18750 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18751 | cat $tmp/in >>$tmp/config.h |
| 18752 | rm -f $tmp/in |
| 18753 | if test x"$ac_file" != x-; then |
| 18754 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 18755 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 18756 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 18757 | else |
| 18758 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18759 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18760 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18761 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18762 | X"$ac_file" : 'X\(/\)' \| \ |
| 18763 | . : '\(.\)' 2>/dev/null || |
| 18764 | echo X"$ac_file" | |
| 18765 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18766 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18767 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18768 | /^X\(\/\).*/{ s//\1/; q; } |
| 18769 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18770 | { case "$ac_dir" in |
| 18771 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 18772 | *) as_incr_dir=.;; |
| 18773 | esac |
| 18774 | as_dummy="$ac_dir" |
| 18775 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 18776 | case $as_mkdir_dir in |
| 18777 | # Skip DOS drivespec |
| 18778 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 18779 | *) |
| 18780 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 18781 | test -d "$as_incr_dir" || |
| 18782 | mkdir "$as_incr_dir" || |
| 18783 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 18784 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 18785 | { (exit 1); exit 1; }; } |
| 18786 | ;; |
| 18787 | esac |
| 18788 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18790 | rm -f $ac_file |
| 18791 | mv $tmp/config.h $ac_file |
| 18792 | fi |
| 18793 | else |
| 18794 | cat $tmp/config.h |
| 18795 | rm -f $tmp/config.h |
| 18796 | fi |
| 18797 | done |
| 18798 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18800 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18802 | { (exit 0); exit 0; } |
| 18803 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18804 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18805 | ac_clean_files=$ac_clean_files_save |
| 18806 | |
| 18807 | |
| 18808 | # configure is writing to config.log, and then calls config.status. |
| 18809 | # config.status does its own redirection, appending to config.log. |
| 18810 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18811 | # by configure, so config.status won't be able to write to it; its |
| 18812 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18813 | # effectively closing config.log, so it can be properly (re)opened and |
| 18814 | # appended to by config.status. When coming back to configure, we |
| 18815 | # need to make the FD available again. |
| 18816 | if test "$no_create" != yes; then |
| 18817 | ac_cs_success=: |
| 18818 | exec 5>/dev/null |
| 18819 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 18820 | exec 5>>config.log |
| 18821 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18822 | # would make configure fail if this is the last instruction. |
| 18823 | $ac_cs_success || { (exit 1); exit 1; } |
| 18824 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18825 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18826 | |
| 18827 | echo "creating Setup" |
| 18828 | if test ! -f Modules/Setup |
| 18829 | then |
| 18830 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 18831 | fi |
| 18832 | |
| 18833 | echo "creating Setup.local" |
| 18834 | if test ! -f Modules/Setup.local |
| 18835 | then |
| 18836 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 18837 | fi |
| 18838 | |
| 18839 | echo "creating Makefile" |
| 18840 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 18841 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 18842 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 18843 | mv config.c Modules |