Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.401 . |
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 | e941617 | 2003-05-03 10:12:45 +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 | |
| 1234 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1235 | # Please use pyport.h instead, if possible. |
| 1236 | |
| 1237 | |
| 1238 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1239 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1240 | |
| 1241 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1242 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1243 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1244 | |
| 1245 | SOVERSION=1.0 |
| 1246 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1247 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1248 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1249 | |
| 1250 | cat >>confdefs.h <<\_ACEOF |
| 1251 | #define _GNU_SOURCE 1 |
| 1252 | _ACEOF |
| 1253 | |
| 1254 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1255 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1256 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1257 | # Arguments passed to configure. |
| 1258 | |
| 1259 | CONFIG_ARGS="$ac_configure_args" |
| 1260 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1261 | # Check whether --enable-framework or --disable-framework was given. |
| 1262 | if test "${enable_framework+set}" = set; then |
| 1263 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1264 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1265 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1266 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1267 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1268 | esac |
| 1269 | case $enableval in |
| 1270 | no) |
| 1271 | PYTHONFRAMEWORK= |
| 1272 | PYTHONFRAMEWORKDIR=no-framework |
| 1273 | PYTHONFRAMEWORKPREFIX= |
| 1274 | PYTHONFRAMEWORKINSTALLDIR= |
| 1275 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1276 | ;; |
| 1277 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1278 | PYTHONFRAMEWORK=Python |
| 1279 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1280 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1281 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1282 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1283 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1286 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1287 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1288 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1289 | PYTHONFRAMEWORKPREFIX= |
| 1290 | PYTHONFRAMEWORKINSTALLDIR= |
| 1291 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1293 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1298 | |
| 1299 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1300 | ## AC_HELP_STRING(--with-dyld, |
| 1301 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1302 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1303 | # Set name for machine-dependent library files |
| 1304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1306 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1307 | if test -z "$MACHDEP" |
| 1308 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1309 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1310 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1311 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1312 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1313 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1314 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1315 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1316 | ac_md_system=`echo $ac_sys_system | |
| 1317 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1318 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1319 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1320 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1321 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1322 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1323 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1324 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1325 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1326 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1327 | esac |
| 1328 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1329 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1330 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1331 | # disable features if it is defined, without any means to access these |
| 1332 | # features as extensions. For these systems, we skip the definition of |
| 1333 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1334 | # some feature, make sure there is no alternative way to access this |
| 1335 | # feature. Also, when using wildcards, make sure you have verified the |
| 1336 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1337 | # wildcard, and that the wildcard does not include future systems |
| 1338 | # (which may remove their limitations). |
| 1339 | case $ac_sys_system/$ac_sys_release in |
| 1340 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1341 | # even though select is a POSIX function. Reported by J. Ribbens. |
| 1342 | OpenBSD/2.* | OpenBSD/3.[012]) |
| 1343 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1344 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1345 | # of union __?sigval. Reported by Stuart Bishop. |
| 1346 | SunOS/5.6) |
| 1347 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1348 | esac |
| 1349 | |
| 1350 | if test $define_xopen_source = yes |
| 1351 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1352 | |
| 1353 | cat >>confdefs.h <<\_ACEOF |
| 1354 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1355 | _ACEOF |
| 1356 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1357 | |
| 1358 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1359 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1360 | # several APIs are not declared. Since this is also needed in some |
| 1361 | # cases for HP-UX, we define it globally. |
| 1362 | |
| 1363 | |
| 1364 | cat >>confdefs.h <<\_ACEOF |
| 1365 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1366 | _ACEOF |
| 1367 | |
| 1368 | |
| 1369 | cat >>confdefs.h <<\_ACEOF |
| 1370 | #define _POSIX_C_SOURCE 200112L |
| 1371 | _ACEOF |
| 1372 | |
| 1373 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1374 | fi |
| 1375 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1376 | # |
| 1377 | # SGI compilers allow the specification of the both the ABI and the |
| 1378 | # ISA on the command line. Depending on the values of these switches, |
| 1379 | # different and often incompatable code will be generated. |
| 1380 | # |
| 1381 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1382 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1383 | # variable is also adjusted. |
| 1384 | # |
| 1385 | |
| 1386 | if test ! -z "$SGI_ABI" |
| 1387 | then |
| 1388 | CC="cc $SGI_ABI" |
| 1389 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1390 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1393 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1394 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1395 | # And add extra plat-mac for darwin |
| 1396 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1397 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1398 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1399 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1400 | if test -z "$EXTRAPLATDIR" |
| 1401 | then |
| 1402 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1403 | darwin) |
| 1404 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1405 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1406 | ;; |
| 1407 | *) |
| 1408 | EXTRAPLATDIR="" |
| 1409 | EXTRAMACHDEPPATH="" |
| 1410 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1411 | esac |
| 1412 | fi |
| 1413 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1414 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1415 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1416 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1417 | |
| 1418 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1419 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1420 | # just to get things to compile and link. Users are free to override OPT |
| 1421 | # when running configure or make. The build should not break if they do. |
| 1422 | # BASECFLAGS should generally not be messed with, however. |
| 1423 | |
| 1424 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1425 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1426 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1427 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1428 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1429 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1430 | if test "${with_gcc+set}" = set; then |
| 1431 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1433 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1434 | no) CC=cc |
| 1435 | without_gcc=yes;; |
| 1436 | yes) CC=gcc |
| 1437 | without_gcc=no;; |
| 1438 | *) CC=$withval |
| 1439 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1440 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1442 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1443 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1444 | AIX*) CC=cc_r |
| 1445 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1446 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1447 | case $BE_HOST_CPU in |
| 1448 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1449 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1450 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1451 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1452 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1453 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1454 | ;; |
| 1455 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1456 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1457 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1458 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1459 | ;; |
| 1460 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1461 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1462 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1463 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1464 | ;; |
| 1465 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1466 | AR="\$(srcdir)/Modules/ar_beos" |
| 1467 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1468 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1469 | Monterey*) |
| 1470 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1471 | without_gcc=;; |
| 1472 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1473 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | fi; |
| 1475 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1476 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1477 | |
| 1478 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1479 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1480 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1481 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1482 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1483 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1484 | # Check whether --with-cxx or --without-cxx was given. |
| 1485 | if test "${with_cxx+set}" = set; then |
| 1486 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1487 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1488 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1489 | case $withval in |
| 1490 | no) CXX= |
| 1491 | with_cxx=no;; |
| 1492 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1493 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1494 | with_cxx=$withval;; |
| 1495 | esac |
| 1496 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1497 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1498 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1499 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1501 | fi; |
| 1502 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1503 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1504 | |
| 1505 | if test "$with_cxx" = "yes" |
| 1506 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1507 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1508 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1509 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1510 | fi |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1515 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1516 | then |
| 1517 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1518 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1519 | # 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] | 1520 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1523 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1525 | else |
| 1526 | if test -n "$CXX"; then |
| 1527 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1530 | for as_dir in $PATH |
| 1531 | do |
| 1532 | IFS=$as_save_IFS |
| 1533 | test -z "$as_dir" && as_dir=. |
| 1534 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1536 | ac_cv_prog_CXX="$ac_prog" |
| 1537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1538 | break 2 |
| 1539 | fi |
| 1540 | done |
| 1541 | done |
| 1542 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1543 | fi |
| 1544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1545 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1546 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1547 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1548 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1549 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | echo "$as_me:$LINENO: result: no" >&5 |
| 1551 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1552 | fi |
| 1553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1554 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1555 | done |
| 1556 | test -n "$CXX" || CXX="notfound" |
| 1557 | |
| 1558 | if test "$CXX" = "notfound" |
| 1559 | then |
| 1560 | CXX= |
| 1561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1562 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1563 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1567 | cat >conftest.$ac_ext <<_ACEOF |
| 1568 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1569 | #include "confdefs.h" |
| 1570 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1571 | #ifdef F77_DUMMY_MAIN |
| 1572 | # ifdef __cplusplus |
| 1573 | extern "C" |
| 1574 | # endif |
| 1575 | int F77_DUMMY_MAIN() { return 1; } |
| 1576 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1577 | int |
| 1578 | main () |
| 1579 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1581 | ; |
| 1582 | return 0; |
| 1583 | } |
| 1584 | _ACEOF |
| 1585 | ac_clean_files_save=$ac_clean_files |
| 1586 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1587 | # Try to create an executable without -o first, disregard a.out. |
| 1588 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1589 | # of exeext. |
| 1590 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1591 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1592 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1593 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1594 | (eval $ac_link_default) 2>&5 |
| 1595 | ac_status=$? |
| 1596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1597 | (exit $ac_status); }; then |
| 1598 | # Find the output, starting from the most likely. This scheme is |
| 1599 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1600 | # resort. |
| 1601 | |
| 1602 | # Be careful to initialize this variable, since it used to be cached. |
| 1603 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1604 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1605 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1606 | ls a.out conftest 2>/dev/null; |
| 1607 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1608 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1609 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1610 | a.out ) # We found the default executable, but exeext='' is most |
| 1611 | # certainly right. |
| 1612 | break;; |
| 1613 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1614 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1615 | export ac_cv_exeext |
| 1616 | break;; |
| 1617 | * ) break;; |
| 1618 | esac |
| 1619 | done |
| 1620 | else |
| 1621 | echo "$as_me: failed program was:" >&5 |
| 1622 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1623 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1624 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1625 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1626 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1627 | |
| 1628 | ac_exeext=$ac_cv_exeext |
| 1629 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1630 | echo "${ECHO_T}$ac_file" >&6 |
| 1631 | |
| 1632 | # Check the compiler produces executables we can run. If not, either |
| 1633 | # the compiler is broken, or we cross compile. |
| 1634 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1635 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1636 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1637 | # If not cross compiling, check that we can run a simple program. |
| 1638 | if test "$cross_compiling" != yes; then |
| 1639 | if { ac_try='./$ac_file' |
| 1640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1641 | (eval $ac_try) 2>&5 |
| 1642 | ac_status=$? |
| 1643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1644 | (exit $ac_status); }; }; then |
| 1645 | cross_compiling=no |
| 1646 | else |
| 1647 | if test "$cross_compiling" = maybe; then |
| 1648 | cross_compiling=yes |
| 1649 | else |
| 1650 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1651 | If you meant to cross compile, use \`--host'." >&5 |
| 1652 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1653 | If you meant to cross compile, use \`--host'." >&2;} |
| 1654 | { (exit 1); exit 1; }; } |
| 1655 | fi |
| 1656 | fi |
| 1657 | fi |
| 1658 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1659 | echo "${ECHO_T}yes" >&6 |
| 1660 | |
| 1661 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1662 | ac_clean_files=$ac_clean_files_save |
| 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 we are cross compiling" >&5 |
| 1666 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1667 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1668 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1669 | |
| 1670 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1671 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1673 | (eval $ac_link) 2>&5 |
| 1674 | ac_status=$? |
| 1675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1676 | (exit $ac_status); }; then |
| 1677 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1678 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1679 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1680 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1681 | 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] | 1682 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1683 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1684 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1685 | export ac_cv_exeext |
| 1686 | break;; |
| 1687 | * ) break;; |
| 1688 | esac |
| 1689 | done |
| 1690 | else |
| 1691 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1692 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1693 | { (exit 1); exit 1; }; } |
| 1694 | fi |
| 1695 | |
| 1696 | rm -f conftest$ac_cv_exeext |
| 1697 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1698 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1699 | |
| 1700 | rm -f conftest.$ac_ext |
| 1701 | EXEEXT=$ac_cv_exeext |
| 1702 | ac_exeext=$EXEEXT |
| 1703 | |
| 1704 | ac_ext=c |
| 1705 | ac_cpp='$CPP $CPPFLAGS' |
| 1706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1709 | |
| 1710 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1711 | |
| 1712 | fi |
| 1713 | fi |
| 1714 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1715 | # If the user switches compilers, we can't believe the cache |
| 1716 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1717 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1718 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1719 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1720 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1721 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1722 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1723 | fi |
| 1724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1725 | ac_ext=c |
| 1726 | ac_cpp='$CPP $CPPFLAGS' |
| 1727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1730 | if test -n "$ac_tool_prefix"; then |
| 1731 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1732 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1735 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1737 | else |
| 1738 | if test -n "$CC"; then |
| 1739 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1742 | for as_dir in $PATH |
| 1743 | do |
| 1744 | IFS=$as_save_IFS |
| 1745 | test -z "$as_dir" && as_dir=. |
| 1746 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1747 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1748 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1750 | break 2 |
| 1751 | fi |
| 1752 | done |
| 1753 | done |
| 1754 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1755 | fi |
| 1756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1757 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1758 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1759 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1760 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1762 | echo "$as_me:$LINENO: result: no" >&5 |
| 1763 | echo "${ECHO_T}no" >&6 |
| 1764 | fi |
| 1765 | |
| 1766 | fi |
| 1767 | if test -z "$ac_cv_prog_CC"; then |
| 1768 | ac_ct_CC=$CC |
| 1769 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1770 | set dummy gcc; ac_word=$2 |
| 1771 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1773 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1775 | else |
| 1776 | if test -n "$ac_ct_CC"; then |
| 1777 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1778 | else |
| 1779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1780 | for as_dir in $PATH |
| 1781 | do |
| 1782 | IFS=$as_save_IFS |
| 1783 | test -z "$as_dir" && as_dir=. |
| 1784 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1785 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1786 | ac_cv_prog_ac_ct_CC="gcc" |
| 1787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1788 | break 2 |
| 1789 | fi |
| 1790 | done |
| 1791 | done |
| 1792 | |
| 1793 | fi |
| 1794 | fi |
| 1795 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1796 | if test -n "$ac_ct_CC"; then |
| 1797 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1798 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1799 | else |
| 1800 | echo "$as_me:$LINENO: result: no" >&5 |
| 1801 | echo "${ECHO_T}no" >&6 |
| 1802 | fi |
| 1803 | |
| 1804 | CC=$ac_ct_CC |
| 1805 | else |
| 1806 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1807 | fi |
| 1808 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1809 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1810 | if test -n "$ac_tool_prefix"; then |
| 1811 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1812 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1815 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1817 | else |
| 1818 | if test -n "$CC"; then |
| 1819 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1822 | for as_dir in $PATH |
| 1823 | do |
| 1824 | IFS=$as_save_IFS |
| 1825 | test -z "$as_dir" && as_dir=. |
| 1826 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1828 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1830 | break 2 |
| 1831 | fi |
| 1832 | done |
| 1833 | done |
| 1834 | |
| 1835 | fi |
| 1836 | fi |
| 1837 | CC=$ac_cv_prog_CC |
| 1838 | if test -n "$CC"; then |
| 1839 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1840 | echo "${ECHO_T}$CC" >&6 |
| 1841 | else |
| 1842 | echo "$as_me:$LINENO: result: no" >&5 |
| 1843 | echo "${ECHO_T}no" >&6 |
| 1844 | fi |
| 1845 | |
| 1846 | fi |
| 1847 | if test -z "$ac_cv_prog_CC"; then |
| 1848 | ac_ct_CC=$CC |
| 1849 | # Extract the first word of "cc", so it can be a program name with args. |
| 1850 | set dummy cc; ac_word=$2 |
| 1851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1853 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1855 | else |
| 1856 | if test -n "$ac_ct_CC"; then |
| 1857 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1858 | else |
| 1859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1860 | for as_dir in $PATH |
| 1861 | do |
| 1862 | IFS=$as_save_IFS |
| 1863 | test -z "$as_dir" && as_dir=. |
| 1864 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1865 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1866 | ac_cv_prog_ac_ct_CC="cc" |
| 1867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1868 | break 2 |
| 1869 | fi |
| 1870 | done |
| 1871 | done |
| 1872 | |
| 1873 | fi |
| 1874 | fi |
| 1875 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1876 | if test -n "$ac_ct_CC"; then |
| 1877 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1878 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1879 | else |
| 1880 | echo "$as_me:$LINENO: result: no" >&5 |
| 1881 | echo "${ECHO_T}no" >&6 |
| 1882 | fi |
| 1883 | |
| 1884 | CC=$ac_ct_CC |
| 1885 | else |
| 1886 | CC="$ac_cv_prog_CC" |
| 1887 | fi |
| 1888 | |
| 1889 | fi |
| 1890 | if test -z "$CC"; then |
| 1891 | # Extract the first word of "cc", so it can be a program name with args. |
| 1892 | set dummy cc; ac_word=$2 |
| 1893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1895 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1897 | else |
| 1898 | if test -n "$CC"; then |
| 1899 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1900 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1901 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1903 | for as_dir in $PATH |
| 1904 | do |
| 1905 | IFS=$as_save_IFS |
| 1906 | test -z "$as_dir" && as_dir=. |
| 1907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1908 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1909 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1910 | ac_prog_rejected=yes |
| 1911 | continue |
| 1912 | fi |
| 1913 | ac_cv_prog_CC="cc" |
| 1914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1915 | break 2 |
| 1916 | fi |
| 1917 | done |
| 1918 | done |
| 1919 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1920 | if test $ac_prog_rejected = yes; then |
| 1921 | # We found a bogon in the path, so make sure we never use it. |
| 1922 | set dummy $ac_cv_prog_CC |
| 1923 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1924 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1925 | # We chose a different compiler from the bogus one. |
| 1926 | # However, it has the same basename, so the bogon will be chosen |
| 1927 | # first if we set CC to just the basename; use the full file name. |
| 1928 | shift |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1929 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
| 1930 | shift |
| 1931 | ac_cv_prog_CC="$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1932 | fi |
| 1933 | fi |
| 1934 | fi |
| 1935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1936 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1937 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1938 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1939 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1941 | echo "$as_me:$LINENO: result: no" >&5 |
| 1942 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1943 | fi |
| 1944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1945 | fi |
| 1946 | if test -z "$CC"; then |
| 1947 | if test -n "$ac_tool_prefix"; then |
| 1948 | for ac_prog in cl |
| 1949 | do |
| 1950 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1951 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1954 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1956 | else |
| 1957 | if test -n "$CC"; then |
| 1958 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1961 | for as_dir in $PATH |
| 1962 | do |
| 1963 | IFS=$as_save_IFS |
| 1964 | test -z "$as_dir" && as_dir=. |
| 1965 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1967 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1969 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1970 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1971 | done |
| 1972 | done |
| 1973 | |
| 1974 | fi |
| 1975 | fi |
| 1976 | CC=$ac_cv_prog_CC |
| 1977 | if test -n "$CC"; then |
| 1978 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1979 | echo "${ECHO_T}$CC" >&6 |
| 1980 | else |
| 1981 | echo "$as_me:$LINENO: result: no" >&5 |
| 1982 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1983 | fi |
| 1984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1985 | test -n "$CC" && break |
| 1986 | done |
| 1987 | fi |
| 1988 | if test -z "$CC"; then |
| 1989 | ac_ct_CC=$CC |
| 1990 | for ac_prog in cl |
| 1991 | do |
| 1992 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1993 | set dummy $ac_prog; ac_word=$2 |
| 1994 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1996 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1998 | else |
| 1999 | if test -n "$ac_ct_CC"; then |
| 2000 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2001 | else |
| 2002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2003 | for as_dir in $PATH |
| 2004 | do |
| 2005 | IFS=$as_save_IFS |
| 2006 | test -z "$as_dir" && as_dir=. |
| 2007 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2008 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2009 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2011 | break 2 |
| 2012 | fi |
| 2013 | done |
| 2014 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2016 | fi |
| 2017 | fi |
| 2018 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2019 | if test -n "$ac_ct_CC"; then |
| 2020 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2021 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2022 | else |
| 2023 | echo "$as_me:$LINENO: result: no" >&5 |
| 2024 | echo "${ECHO_T}no" >&6 |
| 2025 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2027 | test -n "$ac_ct_CC" && break |
| 2028 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2030 | CC=$ac_ct_CC |
| 2031 | fi |
| 2032 | |
| 2033 | fi |
| 2034 | |
| 2035 | |
| 2036 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2037 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2038 | { (exit 1); exit 1; }; } |
| 2039 | |
| 2040 | # Provide some information about the compiler. |
| 2041 | echo "$as_me:$LINENO:" \ |
| 2042 | "checking for C compiler version" >&5 |
| 2043 | ac_compiler=`set X $ac_compile; echo $2` |
| 2044 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2045 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2046 | ac_status=$? |
| 2047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2048 | (exit $ac_status); } |
| 2049 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2050 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2051 | ac_status=$? |
| 2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2053 | (exit $ac_status); } |
| 2054 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2055 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2056 | ac_status=$? |
| 2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2058 | (exit $ac_status); } |
| 2059 | |
| 2060 | cat >conftest.$ac_ext <<_ACEOF |
| 2061 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2062 | #include "confdefs.h" |
| 2063 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2064 | #ifdef F77_DUMMY_MAIN |
| 2065 | # ifdef __cplusplus |
| 2066 | extern "C" |
| 2067 | # endif |
| 2068 | int F77_DUMMY_MAIN() { return 1; } |
| 2069 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2070 | int |
| 2071 | main () |
| 2072 | { |
| 2073 | |
| 2074 | ; |
| 2075 | return 0; |
| 2076 | } |
| 2077 | _ACEOF |
| 2078 | ac_clean_files_save=$ac_clean_files |
| 2079 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2080 | # Try to create an executable without -o first, disregard a.out. |
| 2081 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2082 | # of exeext. |
| 2083 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2084 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2085 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2086 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2087 | (eval $ac_link_default) 2>&5 |
| 2088 | ac_status=$? |
| 2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2090 | (exit $ac_status); }; then |
| 2091 | # Find the output, starting from the most likely. This scheme is |
| 2092 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2093 | # resort. |
| 2094 | |
| 2095 | # Be careful to initialize this variable, since it used to be cached. |
| 2096 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2097 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2098 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2099 | ls a.out conftest 2>/dev/null; |
| 2100 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2101 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2102 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2103 | a.out ) # We found the default executable, but exeext='' is most |
| 2104 | # certainly right. |
| 2105 | break;; |
| 2106 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2107 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2108 | export ac_cv_exeext |
| 2109 | break;; |
| 2110 | * ) break;; |
| 2111 | esac |
| 2112 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2114 | echo "$as_me: failed program was:" >&5 |
| 2115 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2116 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2117 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2118 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2119 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2121 | ac_exeext=$ac_cv_exeext |
| 2122 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2123 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2125 | # Check the compiler produces executables we can run. If not, either |
| 2126 | # the compiler is broken, or we cross compile. |
| 2127 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2128 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2129 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2130 | # If not cross compiling, check that we can run a simple program. |
| 2131 | if test "$cross_compiling" != yes; then |
| 2132 | if { ac_try='./$ac_file' |
| 2133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2134 | (eval $ac_try) 2>&5 |
| 2135 | ac_status=$? |
| 2136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2137 | (exit $ac_status); }; }; then |
| 2138 | cross_compiling=no |
| 2139 | else |
| 2140 | if test "$cross_compiling" = maybe; then |
| 2141 | cross_compiling=yes |
| 2142 | else |
| 2143 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2144 | If you meant to cross compile, use \`--host'." >&5 |
| 2145 | echo "$as_me: error: cannot run C compiled programs. |
| 2146 | If you meant to cross compile, use \`--host'." >&2;} |
| 2147 | { (exit 1); exit 1; }; } |
| 2148 | fi |
| 2149 | fi |
| 2150 | fi |
| 2151 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2152 | echo "${ECHO_T}yes" >&6 |
| 2153 | |
| 2154 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2155 | ac_clean_files=$ac_clean_files_save |
| 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 we are cross compiling" >&5 |
| 2159 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2160 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2161 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2162 | |
| 2163 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2164 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2166 | (eval $ac_link) 2>&5 |
| 2167 | ac_status=$? |
| 2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2169 | (exit $ac_status); }; then |
| 2170 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2171 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2172 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2173 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2174 | 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] | 2175 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2176 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2177 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2178 | export ac_cv_exeext |
| 2179 | break;; |
| 2180 | * ) break;; |
| 2181 | esac |
| 2182 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2184 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2185 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2186 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2187 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2189 | rm -f conftest$ac_cv_exeext |
| 2190 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2191 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2192 | |
| 2193 | rm -f conftest.$ac_ext |
| 2194 | EXEEXT=$ac_cv_exeext |
| 2195 | ac_exeext=$EXEEXT |
| 2196 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2197 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2198 | if test "${ac_cv_objext+set}" = set; then |
| 2199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2200 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2201 | cat >conftest.$ac_ext <<_ACEOF |
| 2202 | #line $LINENO "configure" |
| 2203 | #include "confdefs.h" |
| 2204 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2205 | #ifdef F77_DUMMY_MAIN |
| 2206 | # ifdef __cplusplus |
| 2207 | extern "C" |
| 2208 | # endif |
| 2209 | int F77_DUMMY_MAIN() { return 1; } |
| 2210 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2211 | int |
| 2212 | main () |
| 2213 | { |
| 2214 | |
| 2215 | ; |
| 2216 | return 0; |
| 2217 | } |
| 2218 | _ACEOF |
| 2219 | rm -f conftest.o conftest.obj |
| 2220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2221 | (eval $ac_compile) 2>&5 |
| 2222 | ac_status=$? |
| 2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2224 | (exit $ac_status); }; then |
| 2225 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2226 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2227 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2228 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2229 | break;; |
| 2230 | esac |
| 2231 | done |
| 2232 | else |
| 2233 | echo "$as_me: failed program was:" >&5 |
| 2234 | cat conftest.$ac_ext >&5 |
| 2235 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2236 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2237 | { (exit 1); exit 1; }; } |
| 2238 | fi |
| 2239 | |
| 2240 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2241 | fi |
| 2242 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2243 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2244 | OBJEXT=$ac_cv_objext |
| 2245 | ac_objext=$OBJEXT |
| 2246 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2247 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2248 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2250 | else |
| 2251 | cat >conftest.$ac_ext <<_ACEOF |
| 2252 | #line $LINENO "configure" |
| 2253 | #include "confdefs.h" |
| 2254 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2255 | #ifdef F77_DUMMY_MAIN |
| 2256 | # ifdef __cplusplus |
| 2257 | extern "C" |
| 2258 | # endif |
| 2259 | int F77_DUMMY_MAIN() { return 1; } |
| 2260 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2261 | int |
| 2262 | main () |
| 2263 | { |
| 2264 | #ifndef __GNUC__ |
| 2265 | choke me |
| 2266 | #endif |
| 2267 | |
| 2268 | ; |
| 2269 | return 0; |
| 2270 | } |
| 2271 | _ACEOF |
| 2272 | rm -f conftest.$ac_objext |
| 2273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2274 | (eval $ac_compile) 2>&5 |
| 2275 | ac_status=$? |
| 2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2277 | (exit $ac_status); } && |
| 2278 | { ac_try='test -s conftest.$ac_objext' |
| 2279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2280 | (eval $ac_try) 2>&5 |
| 2281 | ac_status=$? |
| 2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2283 | (exit $ac_status); }; }; then |
| 2284 | ac_compiler_gnu=yes |
| 2285 | else |
| 2286 | echo "$as_me: failed program was:" >&5 |
| 2287 | cat conftest.$ac_ext >&5 |
| 2288 | ac_compiler_gnu=no |
| 2289 | fi |
| 2290 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2291 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2292 | |
| 2293 | fi |
| 2294 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2295 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2296 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2297 | ac_test_CFLAGS=${CFLAGS+set} |
| 2298 | ac_save_CFLAGS=$CFLAGS |
| 2299 | CFLAGS="-g" |
| 2300 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2301 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2302 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2304 | else |
| 2305 | cat >conftest.$ac_ext <<_ACEOF |
| 2306 | #line $LINENO "configure" |
| 2307 | #include "confdefs.h" |
| 2308 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2309 | #ifdef F77_DUMMY_MAIN |
| 2310 | # ifdef __cplusplus |
| 2311 | extern "C" |
| 2312 | # endif |
| 2313 | int F77_DUMMY_MAIN() { return 1; } |
| 2314 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2315 | int |
| 2316 | main () |
| 2317 | { |
| 2318 | |
| 2319 | ; |
| 2320 | return 0; |
| 2321 | } |
| 2322 | _ACEOF |
| 2323 | rm -f conftest.$ac_objext |
| 2324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2325 | (eval $ac_compile) 2>&5 |
| 2326 | ac_status=$? |
| 2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2328 | (exit $ac_status); } && |
| 2329 | { ac_try='test -s conftest.$ac_objext' |
| 2330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2331 | (eval $ac_try) 2>&5 |
| 2332 | ac_status=$? |
| 2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2334 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2335 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | echo "$as_me: failed program was:" >&5 |
| 2338 | cat conftest.$ac_ext >&5 |
| 2339 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2340 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2341 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2342 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2343 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2344 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2345 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2346 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2347 | elif test $ac_cv_prog_cc_g = yes; then |
| 2348 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2349 | CFLAGS="-g -O2" |
| 2350 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2351 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2352 | fi |
| 2353 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2354 | if test "$GCC" = yes; then |
| 2355 | CFLAGS="-O2" |
| 2356 | else |
| 2357 | CFLAGS= |
| 2358 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2359 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2360 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2361 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2362 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2363 | # the declaration of exit, since it's the most demanding environment. |
| 2364 | cat >conftest.$ac_ext <<_ACEOF |
| 2365 | #ifndef __cplusplus |
| 2366 | choke me |
| 2367 | #endif |
| 2368 | _ACEOF |
| 2369 | rm -f conftest.$ac_objext |
| 2370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2371 | (eval $ac_compile) 2>&5 |
| 2372 | ac_status=$? |
| 2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2374 | (exit $ac_status); } && |
| 2375 | { ac_try='test -s conftest.$ac_objext' |
| 2376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2377 | (eval $ac_try) 2>&5 |
| 2378 | ac_status=$? |
| 2379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2380 | (exit $ac_status); }; }; then |
| 2381 | for ac_declaration in \ |
| 2382 | ''\ |
| 2383 | '#include <stdlib.h>' \ |
| 2384 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2385 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2386 | 'extern "C" void exit (int) throw ();' \ |
| 2387 | 'extern "C" void exit (int);' \ |
| 2388 | 'void exit (int);' |
| 2389 | do |
| 2390 | cat >conftest.$ac_ext <<_ACEOF |
| 2391 | #line $LINENO "configure" |
| 2392 | #include "confdefs.h" |
| 2393 | #include <stdlib.h> |
| 2394 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2395 | #ifdef F77_DUMMY_MAIN |
| 2396 | # ifdef __cplusplus |
| 2397 | extern "C" |
| 2398 | # endif |
| 2399 | int F77_DUMMY_MAIN() { return 1; } |
| 2400 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2401 | int |
| 2402 | main () |
| 2403 | { |
| 2404 | exit (42); |
| 2405 | ; |
| 2406 | return 0; |
| 2407 | } |
| 2408 | _ACEOF |
| 2409 | rm -f conftest.$ac_objext |
| 2410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2411 | (eval $ac_compile) 2>&5 |
| 2412 | ac_status=$? |
| 2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2414 | (exit $ac_status); } && |
| 2415 | { ac_try='test -s conftest.$ac_objext' |
| 2416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2417 | (eval $ac_try) 2>&5 |
| 2418 | ac_status=$? |
| 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2420 | (exit $ac_status); }; }; then |
| 2421 | : |
| 2422 | else |
| 2423 | echo "$as_me: failed program was:" >&5 |
| 2424 | cat conftest.$ac_ext >&5 |
| 2425 | continue |
| 2426 | fi |
| 2427 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2428 | cat >conftest.$ac_ext <<_ACEOF |
| 2429 | #line $LINENO "configure" |
| 2430 | #include "confdefs.h" |
| 2431 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2432 | #ifdef F77_DUMMY_MAIN |
| 2433 | # ifdef __cplusplus |
| 2434 | extern "C" |
| 2435 | # endif |
| 2436 | int F77_DUMMY_MAIN() { return 1; } |
| 2437 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | int |
| 2439 | main () |
| 2440 | { |
| 2441 | exit (42); |
| 2442 | ; |
| 2443 | return 0; |
| 2444 | } |
| 2445 | _ACEOF |
| 2446 | rm -f conftest.$ac_objext |
| 2447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2448 | (eval $ac_compile) 2>&5 |
| 2449 | ac_status=$? |
| 2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2451 | (exit $ac_status); } && |
| 2452 | { ac_try='test -s conftest.$ac_objext' |
| 2453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2454 | (eval $ac_try) 2>&5 |
| 2455 | ac_status=$? |
| 2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2457 | (exit $ac_status); }; }; then |
| 2458 | break |
| 2459 | else |
| 2460 | echo "$as_me: failed program was:" >&5 |
| 2461 | cat conftest.$ac_ext >&5 |
| 2462 | fi |
| 2463 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2464 | done |
| 2465 | rm -f conftest* |
| 2466 | if test -n "$ac_declaration"; then |
| 2467 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2468 | echo $ac_declaration >>confdefs.h |
| 2469 | echo '#endif' >>confdefs.h |
| 2470 | fi |
| 2471 | |
| 2472 | else |
| 2473 | echo "$as_me: failed program was:" >&5 |
| 2474 | cat conftest.$ac_ext >&5 |
| 2475 | fi |
| 2476 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2477 | ac_ext=c |
| 2478 | ac_cpp='$CPP $CPPFLAGS' |
| 2479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2482 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2483 | |
| 2484 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2485 | |
| 2486 | ac_ext=c |
| 2487 | ac_cpp='$CPP $CPPFLAGS' |
| 2488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2491 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2492 | 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] | 2493 | # On Suns, sometimes $CPP names a directory. |
| 2494 | if test -n "$CPP" && test -d "$CPP"; then |
| 2495 | CPP= |
| 2496 | fi |
| 2497 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2498 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2501 | # Double quotes because CPP needs to be expanded |
| 2502 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2503 | do |
| 2504 | ac_preproc_ok=false |
| 2505 | for ac_c_preproc_warn_flag in '' yes |
| 2506 | do |
| 2507 | # Use a header file that comes with gcc, so configuring glibc |
| 2508 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2509 | # 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] | 2510 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2511 | cat >conftest.$ac_ext <<_ACEOF |
| 2512 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2513 | #include "confdefs.h" |
| 2514 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2515 | Syntax error |
| 2516 | _ACEOF |
| 2517 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2518 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2519 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2520 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | rm -f conftest.er1 |
| 2522 | cat conftest.err >&5 |
| 2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2524 | (exit $ac_status); } >/dev/null; then |
| 2525 | if test -s conftest.err; then |
| 2526 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2527 | else |
| 2528 | ac_cpp_err= |
| 2529 | fi |
| 2530 | else |
| 2531 | ac_cpp_err=yes |
| 2532 | fi |
| 2533 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2534 | : |
| 2535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2536 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2537 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2538 | # Broken: fails on valid input. |
| 2539 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2540 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2541 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2543 | # OK, works on sane cases. Now check whether non-existent headers |
| 2544 | # can be detected and how. |
| 2545 | cat >conftest.$ac_ext <<_ACEOF |
| 2546 | #line $LINENO "configure" |
| 2547 | #include "confdefs.h" |
| 2548 | #include <ac_nonexistent.h> |
| 2549 | _ACEOF |
| 2550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2552 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2553 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 | rm -f conftest.er1 |
| 2555 | cat conftest.err >&5 |
| 2556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2557 | (exit $ac_status); } >/dev/null; then |
| 2558 | if test -s conftest.err; then |
| 2559 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2560 | else |
| 2561 | ac_cpp_err= |
| 2562 | fi |
| 2563 | else |
| 2564 | ac_cpp_err=yes |
| 2565 | fi |
| 2566 | if test -z "$ac_cpp_err"; then |
| 2567 | # Broken: success on invalid input. |
| 2568 | continue |
| 2569 | else |
| 2570 | echo "$as_me: failed program was:" >&5 |
| 2571 | cat conftest.$ac_ext >&5 |
| 2572 | # Passes both tests. |
| 2573 | ac_preproc_ok=: |
| 2574 | break |
| 2575 | fi |
| 2576 | rm -f conftest.err conftest.$ac_ext |
| 2577 | |
| 2578 | done |
| 2579 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2580 | rm -f conftest.err conftest.$ac_ext |
| 2581 | if $ac_preproc_ok; then |
| 2582 | break |
| 2583 | fi |
| 2584 | |
| 2585 | done |
| 2586 | ac_cv_prog_CPP=$CPP |
| 2587 | |
| 2588 | fi |
| 2589 | CPP=$ac_cv_prog_CPP |
| 2590 | else |
| 2591 | ac_cv_prog_CPP=$CPP |
| 2592 | fi |
| 2593 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2594 | echo "${ECHO_T}$CPP" >&6 |
| 2595 | ac_preproc_ok=false |
| 2596 | for ac_c_preproc_warn_flag in '' yes |
| 2597 | do |
| 2598 | # Use a header file that comes with gcc, so configuring glibc |
| 2599 | # with a fresh cross-compiler works. |
| 2600 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2601 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2602 | cat >conftest.$ac_ext <<_ACEOF |
| 2603 | #line $LINENO "configure" |
| 2604 | #include "confdefs.h" |
| 2605 | #include <assert.h> |
| 2606 | Syntax error |
| 2607 | _ACEOF |
| 2608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2610 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2611 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2612 | rm -f conftest.er1 |
| 2613 | cat conftest.err >&5 |
| 2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2615 | (exit $ac_status); } >/dev/null; then |
| 2616 | if test -s conftest.err; then |
| 2617 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2618 | else |
| 2619 | ac_cpp_err= |
| 2620 | fi |
| 2621 | else |
| 2622 | ac_cpp_err=yes |
| 2623 | fi |
| 2624 | if test -z "$ac_cpp_err"; then |
| 2625 | : |
| 2626 | else |
| 2627 | echo "$as_me: failed program was:" >&5 |
| 2628 | cat conftest.$ac_ext >&5 |
| 2629 | # Broken: fails on valid input. |
| 2630 | continue |
| 2631 | fi |
| 2632 | rm -f conftest.err conftest.$ac_ext |
| 2633 | |
| 2634 | # OK, works on sane cases. Now check whether non-existent headers |
| 2635 | # can be detected and how. |
| 2636 | cat >conftest.$ac_ext <<_ACEOF |
| 2637 | #line $LINENO "configure" |
| 2638 | #include "confdefs.h" |
| 2639 | #include <ac_nonexistent.h> |
| 2640 | _ACEOF |
| 2641 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2642 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2643 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2644 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2645 | rm -f conftest.er1 |
| 2646 | cat conftest.err >&5 |
| 2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2648 | (exit $ac_status); } >/dev/null; then |
| 2649 | if test -s conftest.err; then |
| 2650 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2651 | else |
| 2652 | ac_cpp_err= |
| 2653 | fi |
| 2654 | else |
| 2655 | ac_cpp_err=yes |
| 2656 | fi |
| 2657 | if test -z "$ac_cpp_err"; then |
| 2658 | # Broken: success on invalid input. |
| 2659 | continue |
| 2660 | else |
| 2661 | echo "$as_me: failed program was:" >&5 |
| 2662 | cat conftest.$ac_ext >&5 |
| 2663 | # Passes both tests. |
| 2664 | ac_preproc_ok=: |
| 2665 | break |
| 2666 | fi |
| 2667 | rm -f conftest.err conftest.$ac_ext |
| 2668 | |
| 2669 | done |
| 2670 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2671 | rm -f conftest.err conftest.$ac_ext |
| 2672 | if $ac_preproc_ok; then |
| 2673 | : |
| 2674 | else |
| 2675 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2676 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2677 | { (exit 1); exit 1; }; } |
| 2678 | fi |
| 2679 | |
| 2680 | ac_ext=c |
| 2681 | ac_cpp='$CPP $CPPFLAGS' |
| 2682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2685 | |
| 2686 | |
| 2687 | |
| 2688 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2689 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2690 | cat >conftest.$ac_ext <<_ACEOF |
| 2691 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2692 | #include "confdefs.h" |
| 2693 | #ifdef _AIX |
| 2694 | yes |
| 2695 | #endif |
| 2696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2697 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2698 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2699 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2700 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2701 | echo "${ECHO_T}yes" >&6 |
| 2702 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2703 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2704 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2705 | |
| 2706 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2707 | echo "$as_me:$LINENO: result: no" >&5 |
| 2708 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2709 | fi |
| 2710 | rm -f conftest* |
| 2711 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2713 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2714 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2715 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2718 | cat >conftest.$ac_ext <<_ACEOF |
| 2719 | #line $LINENO "configure" |
| 2720 | #include "confdefs.h" |
| 2721 | #include <stdlib.h> |
| 2722 | #include <stdarg.h> |
| 2723 | #include <string.h> |
| 2724 | #include <float.h> |
| 2725 | |
| 2726 | _ACEOF |
| 2727 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2728 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2729 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2730 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | rm -f conftest.er1 |
| 2732 | cat conftest.err >&5 |
| 2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2734 | (exit $ac_status); } >/dev/null; then |
| 2735 | if test -s conftest.err; then |
| 2736 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2737 | else |
| 2738 | ac_cpp_err= |
| 2739 | fi |
| 2740 | else |
| 2741 | ac_cpp_err=yes |
| 2742 | fi |
| 2743 | if test -z "$ac_cpp_err"; then |
| 2744 | ac_cv_header_stdc=yes |
| 2745 | else |
| 2746 | echo "$as_me: failed program was:" >&5 |
| 2747 | cat conftest.$ac_ext >&5 |
| 2748 | ac_cv_header_stdc=no |
| 2749 | fi |
| 2750 | rm -f conftest.err conftest.$ac_ext |
| 2751 | |
| 2752 | if test $ac_cv_header_stdc = yes; then |
| 2753 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2754 | cat >conftest.$ac_ext <<_ACEOF |
| 2755 | #line $LINENO "configure" |
| 2756 | #include "confdefs.h" |
| 2757 | #include <string.h> |
| 2758 | |
| 2759 | _ACEOF |
| 2760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2761 | egrep "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2762 | : |
| 2763 | else |
| 2764 | ac_cv_header_stdc=no |
| 2765 | fi |
| 2766 | rm -f conftest* |
| 2767 | |
| 2768 | fi |
| 2769 | |
| 2770 | if test $ac_cv_header_stdc = yes; then |
| 2771 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2772 | cat >conftest.$ac_ext <<_ACEOF |
| 2773 | #line $LINENO "configure" |
| 2774 | #include "confdefs.h" |
| 2775 | #include <stdlib.h> |
| 2776 | |
| 2777 | _ACEOF |
| 2778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2779 | egrep "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2780 | : |
| 2781 | else |
| 2782 | ac_cv_header_stdc=no |
| 2783 | fi |
| 2784 | rm -f conftest* |
| 2785 | |
| 2786 | fi |
| 2787 | |
| 2788 | if test $ac_cv_header_stdc = yes; then |
| 2789 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2790 | if test "$cross_compiling" = yes; then |
| 2791 | : |
| 2792 | else |
| 2793 | cat >conftest.$ac_ext <<_ACEOF |
| 2794 | #line $LINENO "configure" |
| 2795 | #include "confdefs.h" |
| 2796 | #include <ctype.h> |
| 2797 | #if ((' ' & 0x0FF) == 0x020) |
| 2798 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2799 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2800 | #else |
| 2801 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2802 | || ('j' <= (c) && (c) <= 'r') \ |
| 2803 | || ('s' <= (c) && (c) <= 'z')) |
| 2804 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2805 | #endif |
| 2806 | |
| 2807 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2808 | int |
| 2809 | main () |
| 2810 | { |
| 2811 | int i; |
| 2812 | for (i = 0; i < 256; i++) |
| 2813 | if (XOR (islower (i), ISLOWER (i)) |
| 2814 | || toupper (i) != TOUPPER (i)) |
| 2815 | exit(2); |
| 2816 | exit (0); |
| 2817 | } |
| 2818 | _ACEOF |
| 2819 | rm -f conftest$ac_exeext |
| 2820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2821 | (eval $ac_link) 2>&5 |
| 2822 | ac_status=$? |
| 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2824 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2826 | (eval $ac_try) 2>&5 |
| 2827 | ac_status=$? |
| 2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2829 | (exit $ac_status); }; }; then |
| 2830 | : |
| 2831 | else |
| 2832 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2833 | echo "$as_me: failed program was:" >&5 |
| 2834 | cat conftest.$ac_ext >&5 |
| 2835 | ( exit $ac_status ) |
| 2836 | ac_cv_header_stdc=no |
| 2837 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2838 | 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] | 2839 | fi |
| 2840 | fi |
| 2841 | fi |
| 2842 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2843 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2844 | if test $ac_cv_header_stdc = yes; then |
| 2845 | |
| 2846 | cat >>confdefs.h <<\_ACEOF |
| 2847 | #define STDC_HEADERS 1 |
| 2848 | _ACEOF |
| 2849 | |
| 2850 | fi |
| 2851 | |
| 2852 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2853 | |
| 2854 | |
| 2855 | |
| 2856 | |
| 2857 | |
| 2858 | |
| 2859 | |
| 2860 | |
| 2861 | |
| 2862 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2863 | inttypes.h stdint.h unistd.h |
| 2864 | do |
| 2865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2866 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2870 | else |
| 2871 | cat >conftest.$ac_ext <<_ACEOF |
| 2872 | #line $LINENO "configure" |
| 2873 | #include "confdefs.h" |
| 2874 | $ac_includes_default |
| 2875 | |
| 2876 | #include <$ac_header> |
| 2877 | _ACEOF |
| 2878 | rm -f conftest.$ac_objext |
| 2879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2880 | (eval $ac_compile) 2>&5 |
| 2881 | ac_status=$? |
| 2882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2883 | (exit $ac_status); } && |
| 2884 | { ac_try='test -s conftest.$ac_objext' |
| 2885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2886 | (eval $ac_try) 2>&5 |
| 2887 | ac_status=$? |
| 2888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2889 | (exit $ac_status); }; }; then |
| 2890 | eval "$as_ac_Header=yes" |
| 2891 | else |
| 2892 | echo "$as_me: failed program was:" >&5 |
| 2893 | cat conftest.$ac_ext >&5 |
| 2894 | eval "$as_ac_Header=no" |
| 2895 | fi |
| 2896 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2897 | fi |
| 2898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2899 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2900 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2901 | cat >>confdefs.h <<_ACEOF |
| 2902 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2903 | _ACEOF |
| 2904 | |
| 2905 | fi |
| 2906 | |
| 2907 | done |
| 2908 | |
| 2909 | |
| 2910 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2911 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2912 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2913 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2915 | fi |
| 2916 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2917 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2918 | else |
| 2919 | # Is the header compilable? |
| 2920 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2921 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2922 | cat >conftest.$ac_ext <<_ACEOF |
| 2923 | #line $LINENO "configure" |
| 2924 | #include "confdefs.h" |
| 2925 | $ac_includes_default |
| 2926 | #include <minix/config.h> |
| 2927 | _ACEOF |
| 2928 | rm -f conftest.$ac_objext |
| 2929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2930 | (eval $ac_compile) 2>&5 |
| 2931 | ac_status=$? |
| 2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2933 | (exit $ac_status); } && |
| 2934 | { ac_try='test -s conftest.$ac_objext' |
| 2935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2936 | (eval $ac_try) 2>&5 |
| 2937 | ac_status=$? |
| 2938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2939 | (exit $ac_status); }; }; then |
| 2940 | ac_header_compiler=yes |
| 2941 | else |
| 2942 | echo "$as_me: failed program was:" >&5 |
| 2943 | cat conftest.$ac_ext >&5 |
| 2944 | ac_header_compiler=no |
| 2945 | fi |
| 2946 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2947 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2948 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2949 | |
| 2950 | # Is the header present? |
| 2951 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2952 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2953 | cat >conftest.$ac_ext <<_ACEOF |
| 2954 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2955 | #include "confdefs.h" |
| 2956 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2957 | _ACEOF |
| 2958 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2960 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2961 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2962 | rm -f conftest.er1 |
| 2963 | cat conftest.err >&5 |
| 2964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2965 | (exit $ac_status); } >/dev/null; then |
| 2966 | if test -s conftest.err; then |
| 2967 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2968 | else |
| 2969 | ac_cpp_err= |
| 2970 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2972 | ac_cpp_err=yes |
| 2973 | fi |
| 2974 | if test -z "$ac_cpp_err"; then |
| 2975 | ac_header_preproc=yes |
| 2976 | else |
| 2977 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2978 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2979 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2980 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2981 | rm -f conftest.err conftest.$ac_ext |
| 2982 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2983 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2984 | |
| 2985 | # So? What about this header? |
| 2986 | case $ac_header_compiler:$ac_header_preproc in |
| 2987 | yes:no ) |
| 2988 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2989 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2990 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2991 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2992 | no:yes ) |
| 2993 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2994 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2995 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2996 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2997 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2998 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2999 | esac |
| 3000 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3001 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3002 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3004 | else |
| 3005 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3006 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3007 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3008 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3009 | |
| 3010 | fi |
| 3011 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3012 | MINIX=yes |
| 3013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3014 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3015 | fi |
| 3016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3017 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3018 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3019 | |
| 3020 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3021 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3022 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3024 | |
| 3025 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3026 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3027 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3029 | |
| 3030 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3031 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3033 | |
| 3034 | fi |
| 3035 | |
| 3036 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3037 | # Check for unsupported systems |
| 3038 | case $ac_sys_system/$ac_sys_release in |
| 3039 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3040 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3041 | echo See README for details. |
| 3042 | exit 1;; |
| 3043 | esac |
| 3044 | |
| 3045 | if test "$MINIX" = yes; then |
| 3046 | echo This system \(MINIX\) is no longer supported. |
| 3047 | echo Read README for details. |
| 3048 | exit 1 |
| 3049 | fi |
| 3050 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3052 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3053 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3054 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3055 | # Check whether --with-suffix or --without-suffix was given. |
| 3056 | if test "${with_suffix+set}" = set; then |
| 3057 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3058 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3059 | case $withval in |
| 3060 | no) EXEEXT=;; |
| 3061 | yes) EXEEXT=.exe;; |
| 3062 | *) EXEEXT=$withval;; |
| 3063 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3064 | fi; |
| 3065 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3066 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3067 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3068 | # Test whether we're running on a non-case-sensitive system, in which |
| 3069 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3071 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3072 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3073 | if test ! -d CaseSensitiveTestDir; then |
| 3074 | mkdir CaseSensitiveTestDir |
| 3075 | fi |
| 3076 | |
| 3077 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3078 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3079 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3080 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3081 | BUILDEXEEXT=.exe |
| 3082 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3083 | echo "$as_me:$LINENO: result: no" >&5 |
| 3084 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3085 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3086 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3087 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3088 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3089 | case $MACHDEP in |
| 3090 | bsdos*) |
| 3091 | case $CC in |
| 3092 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3093 | esac;; |
| 3094 | esac |
| 3095 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3096 | case $ac_sys_system in |
| 3097 | hp*|HP*) |
| 3098 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3099 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3100 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3101 | Monterey*) |
| 3102 | case $CC in |
| 3103 | cc) CC="$CC -Wl,-Bexport";; |
| 3104 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3105 | SunOS*) |
| 3106 | # 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] | 3107 | |
| 3108 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3109 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3110 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3111 | |
| 3112 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3113 | esac |
| 3114 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3115 | |
| 3116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3117 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3118 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3119 | if test -z "$LIBRARY" |
| 3120 | then |
| 3121 | LIBRARY='libpython$(VERSION).a' |
| 3122 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3123 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3124 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3125 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3126 | # 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] | 3127 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3128 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3129 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3130 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3131 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3132 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3133 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3134 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3135 | # RUNSHARED is used to run shared python without installed libraries |
| 3136 | # |
| 3137 | # INSTSONAME is the name of the shared library that will be use to install |
| 3138 | # on the system - some systems like version suffix, others don't |
| 3139 | |
| 3140 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3141 | |
| 3142 | |
| 3143 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3144 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3145 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3146 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3147 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3148 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3149 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3150 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3151 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3152 | # 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] | 3153 | # If CXX is set, and if it is needed to link a main function that was |
| 3154 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3155 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3156 | # 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] | 3157 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3159 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3160 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3161 | if test -z "$LINKCC" |
| 3162 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3163 | if test -z "$CXX"; then |
| 3164 | LINKCC="\$(PURIFY) \$(CC)" |
| 3165 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3166 | 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] | 3167 | $CXX -c conftest.$ac_ext 2>&5 |
| 3168 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3169 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3170 | then |
| 3171 | LINKCC="\$(PURIFY) \$(CC)" |
| 3172 | else |
| 3173 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3174 | fi |
| 3175 | rm -fr conftest* |
| 3176 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3177 | case $ac_sys_system in |
| 3178 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3179 | exp_extra="\"\"" |
| 3180 | if test $ac_sys_release -ge 5 -o \ |
| 3181 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3182 | exp_extra="." |
| 3183 | fi |
| 3184 | 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] | 3185 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3186 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3187 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3188 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3189 | esac |
| 3190 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3191 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3192 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3194 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3195 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3196 | # Check whether --enable-shared or --disable-shared was given. |
| 3197 | if test "${enable_shared+set}" = set; then |
| 3198 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3200 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3201 | |
| 3202 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3203 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3204 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3205 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3206 | enable_shared="yes";; |
| 3207 | *) |
| 3208 | enable_shared="no";; |
| 3209 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3210 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3211 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3212 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3213 | |
| 3214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3215 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3216 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3217 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3218 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3219 | # library that we build, but we do not want to link against it (we |
| 3220 | # will find it with a -framework option). For this reason there is an |
| 3221 | # extra variable BLDLIBRARY against which Python and the extension |
| 3222 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3223 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3224 | if test "$enable_framework" |
| 3225 | then |
| 3226 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3227 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3228 | BLDLIBRARY='' |
| 3229 | else |
| 3230 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3231 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3232 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3233 | # Other platforms follow |
| 3234 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3235 | |
| 3236 | cat >>confdefs.h <<\_ACEOF |
| 3237 | #define Py_ENABLE_SHARED 1 |
| 3238 | _ACEOF |
| 3239 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3240 | case $ac_sys_system in |
| 3241 | BeOS*) |
| 3242 | LDLIBRARY='libpython$(VERSION).so' |
| 3243 | ;; |
| 3244 | CYGWIN*) |
| 3245 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3246 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3247 | ;; |
| 3248 | SunOS*) |
| 3249 | LDLIBRARY='libpython$(VERSION).so' |
| 3250 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3251 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3252 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3253 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3254 | LDLIBRARY='libpython$(VERSION).so' |
| 3255 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3256 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3257 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3258 | ;; |
| 3259 | hp*|HP*) |
| 3260 | LDLIBRARY='libpython$(VERSION).sl' |
| 3261 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3262 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3263 | ;; |
| 3264 | OSF*) |
| 3265 | LDLIBRARY='libpython$(VERSION).so' |
| 3266 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3267 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3268 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3269 | atheos*) |
| 3270 | LDLIBRARY='libpython$(VERSION).so' |
| 3271 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3272 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3273 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3274 | esac |
| 3275 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3276 | case $MACHDEP in |
| 3277 | dguxR4) |
| 3278 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3279 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3280 | ;; |
| 3281 | esac |
| 3282 | fi |
| 3283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3284 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3285 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3287 | if test -n "$ac_tool_prefix"; then |
| 3288 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3289 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3292 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3294 | else |
| 3295 | if test -n "$RANLIB"; then |
| 3296 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3299 | for as_dir in $PATH |
| 3300 | do |
| 3301 | IFS=$as_save_IFS |
| 3302 | test -z "$as_dir" && as_dir=. |
| 3303 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3305 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3307 | break 2 |
| 3308 | fi |
| 3309 | done |
| 3310 | done |
| 3311 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3312 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3314 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3315 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3316 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3317 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3319 | echo "$as_me:$LINENO: result: no" >&5 |
| 3320 | echo "${ECHO_T}no" >&6 |
| 3321 | fi |
| 3322 | |
| 3323 | fi |
| 3324 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3325 | ac_ct_RANLIB=$RANLIB |
| 3326 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3327 | set dummy ranlib; ac_word=$2 |
| 3328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3330 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3332 | else |
| 3333 | if test -n "$ac_ct_RANLIB"; then |
| 3334 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3335 | else |
| 3336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3337 | for as_dir in $PATH |
| 3338 | do |
| 3339 | IFS=$as_save_IFS |
| 3340 | test -z "$as_dir" && as_dir=. |
| 3341 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3343 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3345 | break 2 |
| 3346 | fi |
| 3347 | done |
| 3348 | done |
| 3349 | |
| 3350 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3351 | fi |
| 3352 | fi |
| 3353 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3354 | if test -n "$ac_ct_RANLIB"; then |
| 3355 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3356 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3357 | else |
| 3358 | echo "$as_me:$LINENO: result: no" >&5 |
| 3359 | echo "${ECHO_T}no" >&6 |
| 3360 | fi |
| 3361 | |
| 3362 | RANLIB=$ac_ct_RANLIB |
| 3363 | else |
| 3364 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3365 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3366 | |
| 3367 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3368 | for ac_prog in ar aal |
| 3369 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | # 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] | 3371 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3374 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3376 | else |
| 3377 | if test -n "$AR"; then |
| 3378 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3381 | for as_dir in $PATH |
| 3382 | do |
| 3383 | IFS=$as_save_IFS |
| 3384 | test -z "$as_dir" && as_dir=. |
| 3385 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3387 | ac_cv_prog_AR="$ac_prog" |
| 3388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3389 | break 2 |
| 3390 | fi |
| 3391 | done |
| 3392 | done |
| 3393 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3394 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3395 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3396 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3397 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3399 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3400 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3401 | echo "$as_me:$LINENO: result: no" >&5 |
| 3402 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3403 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3405 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3406 | done |
| 3407 | test -n "$AR" || AR="ar" |
| 3408 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3409 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3410 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3411 | bsdos*|hp*|HP*) |
| 3412 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3413 | if test -z "$INSTALL" |
| 3414 | then |
| 3415 | INSTALL="${srcdir}/install-sh -c" |
| 3416 | fi |
| 3417 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3418 | ac_aux_dir= |
| 3419 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3420 | if test -f $ac_dir/install-sh; then |
| 3421 | ac_aux_dir=$ac_dir |
| 3422 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3423 | break |
| 3424 | elif test -f $ac_dir/install.sh; then |
| 3425 | ac_aux_dir=$ac_dir |
| 3426 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3427 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3428 | elif test -f $ac_dir/shtool; then |
| 3429 | ac_aux_dir=$ac_dir |
| 3430 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3431 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3432 | fi |
| 3433 | done |
| 3434 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3435 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3436 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3437 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3438 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3439 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3440 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3441 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3442 | |
| 3443 | # Find a good install program. We prefer a C program (faster), |
| 3444 | # so one script is as good as another. But avoid the broken or |
| 3445 | # incompatible versions: |
| 3446 | # SysV /etc/install, /usr/sbin/install |
| 3447 | # SunOS /usr/etc/install |
| 3448 | # IRIX /sbin/install |
| 3449 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3450 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3451 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3452 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3453 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3454 | # ./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] | 3455 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3456 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3457 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | if test "${ac_cv_path_install+set}" = set; then |
| 3459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3462 | for as_dir in $PATH |
| 3463 | do |
| 3464 | IFS=$as_save_IFS |
| 3465 | test -z "$as_dir" && as_dir=. |
| 3466 | # Account for people who put trailing slashes in PATH elements. |
| 3467 | case $as_dir/ in |
| 3468 | ./ | .// | /cC/* | \ |
| 3469 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3470 | /usr/ucb/* ) ;; |
| 3471 | *) |
| 3472 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3473 | # Don't use installbsd from OSF since it installs stuff as root |
| 3474 | # by default. |
| 3475 | for ac_prog in ginstall scoinst install; do |
| 3476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3477 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3478 | if test $ac_prog = install && |
| 3479 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3480 | # AIX install. It has an incompatible calling convention. |
| 3481 | : |
| 3482 | elif test $ac_prog = install && |
| 3483 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3484 | # program-specific install script used by HP pwplus--don't use. |
| 3485 | : |
| 3486 | else |
| 3487 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3488 | break 3 |
| 3489 | fi |
| 3490 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3491 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3492 | done |
| 3493 | ;; |
| 3494 | esac |
| 3495 | done |
| 3496 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3497 | |
| 3498 | fi |
| 3499 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3501 | else |
| 3502 | # As a last resort, use the slow shell script. We don't cache a |
| 3503 | # path for INSTALL within a source directory, because that will |
| 3504 | # break other packages using the cache if that directory is |
| 3505 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3506 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3507 | fi |
| 3508 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3509 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3510 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3511 | |
| 3512 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3513 | # It thinks the first close brace ends the variable substitution. |
| 3514 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3516 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3517 | |
| 3518 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3519 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3520 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3521 | # Not every filesystem supports hard links |
| 3522 | |
| 3523 | if test -z "$LN" ; then |
| 3524 | case $ac_sys_system in |
| 3525 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3526 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3527 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3528 | *) LN=ln;; |
| 3529 | esac |
| 3530 | fi |
| 3531 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3532 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3533 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3534 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3535 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3536 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3537 | if test "${with_pydebug+set}" = set; then |
| 3538 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3539 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3540 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3541 | then |
| 3542 | |
| 3543 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3544 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3545 | _ACEOF |
| 3546 | |
| 3547 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3548 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3549 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3550 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3551 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3552 | fi |
| 3553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | echo "$as_me:$LINENO: result: no" >&5 |
| 3555 | echo "${ECHO_T}no" >&6 |
| 3556 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3557 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3558 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3559 | # merged with this chunk of code? |
| 3560 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3561 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3562 | # ------------------------ |
| 3563 | # (The following bit of code is complicated enough - please keep things |
| 3564 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3565 | |
| 3566 | # There are two parallel sets of case statements below, one that checks to |
| 3567 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3568 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3569 | # user set OPT. |
| 3570 | |
| 3571 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3572 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3573 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3574 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3575 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3576 | case $GCC in |
| 3577 | yes) |
| 3578 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3579 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3580 | if test "$Py_DEBUG" = 'true' ; then |
| 3581 | # Optimization messes up debuggers, so turn it off for |
| 3582 | # debug builds. |
| 3583 | OPT="-g -Wall -Wstrict-prototypes" |
| 3584 | else |
| 3585 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3586 | fi |
| 3587 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3588 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3589 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3590 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3591 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3592 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3593 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3594 | ;; |
| 3595 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3596 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3597 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3598 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3599 | OPT="-O" |
| 3600 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3601 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3602 | |
| 3603 | # The current (beta) Monterey compiler dies with optimizations |
| 3604 | # 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] | 3605 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3606 | Monterey*) |
| 3607 | OPT="" |
| 3608 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3609 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3610 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3611 | fi |
| 3612 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3613 | |
| 3614 | # tweak BASECFLAGS based on compiler and platform |
| 3615 | case $GCC in |
| 3616 | yes) |
| 3617 | case $ac_sys_system in |
| 3618 | SCO_SV*) |
| 3619 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3620 | ;; |
| 3621 | # is there any other compiler on Darwin besides gcc? |
| 3622 | Darwin*) |
| 3623 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp" |
| 3624 | ;; |
| 3625 | esac |
| 3626 | ;; |
| 3627 | |
| 3628 | *) |
| 3629 | case $ac_sys_system in |
| 3630 | OpenUNIX*|UnixWare*) |
| 3631 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3632 | ;; |
| 3633 | SCO_SV*) |
| 3634 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3635 | ;; |
| 3636 | esac |
| 3637 | ;; |
| 3638 | esac |
| 3639 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3640 | if test "$Py_DEBUG" = 'true'; then |
| 3641 | : |
| 3642 | else |
| 3643 | OPT="-DNDEBUG $OPT" |
| 3644 | fi |
| 3645 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3646 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3647 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3648 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3649 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3652 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3653 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3655 | else |
| 3656 | ac_save_cc="$CC" |
| 3657 | CC="$CC -OPT:Olimit=0" |
| 3658 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3659 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | cat >conftest.$ac_ext <<_ACEOF |
| 3662 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3663 | #include "confdefs.h" |
| 3664 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 | _ACEOF |
| 3666 | rm -f conftest$ac_exeext |
| 3667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3668 | (eval $ac_link) 2>&5 |
| 3669 | ac_status=$? |
| 3670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3671 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3673 | (eval $ac_try) 2>&5 |
| 3674 | ac_status=$? |
| 3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3676 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3677 | ac_cv_opt_olimit_ok=yes |
| 3678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3679 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3680 | echo "$as_me: failed program was:" >&5 |
| 3681 | cat conftest.$ac_ext >&5 |
| 3682 | ( exit $ac_status ) |
| 3683 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3684 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3685 | 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] | 3686 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3687 | CC="$ac_save_cc" |
| 3688 | fi |
| 3689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3690 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3691 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3692 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3693 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3694 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3695 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3696 | # environment? |
| 3697 | Darwin*) |
| 3698 | ;; |
| 3699 | *) |
| 3700 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3701 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3702 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3704 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3705 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3706 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3708 | else |
| 3709 | ac_save_cc="$CC" |
| 3710 | CC="$CC -Olimit 1500" |
| 3711 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3712 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3714 | cat >conftest.$ac_ext <<_ACEOF |
| 3715 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3716 | #include "confdefs.h" |
| 3717 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3718 | _ACEOF |
| 3719 | rm -f conftest$ac_exeext |
| 3720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3721 | (eval $ac_link) 2>&5 |
| 3722 | ac_status=$? |
| 3723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3724 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3726 | (eval $ac_try) 2>&5 |
| 3727 | ac_status=$? |
| 3728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3729 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3730 | ac_cv_olimit_ok=yes |
| 3731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3732 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3733 | echo "$as_me: failed program was:" >&5 |
| 3734 | cat conftest.$ac_ext >&5 |
| 3735 | ( exit $ac_status ) |
| 3736 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3737 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3738 | 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] | 3739 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3740 | CC="$ac_save_cc" |
| 3741 | fi |
| 3742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3744 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3745 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3746 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3747 | fi |
| 3748 | fi |
| 3749 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3750 | # On some compilers, pthreads are available without further options |
| 3751 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3752 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3753 | # So we have to see first whether pthreads are available without |
| 3754 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3755 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3756 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3757 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3759 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3760 | if test "$cross_compiling" = yes; then |
| 3761 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | cat >conftest.$ac_ext <<_ACEOF |
| 3764 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3765 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3766 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3767 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3768 | |
| 3769 | void* routine(void* p){return NULL;} |
| 3770 | |
| 3771 | int main(){ |
| 3772 | pthread_t p; |
| 3773 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3774 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3775 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3776 | return 0; |
| 3777 | } |
| 3778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3779 | _ACEOF |
| 3780 | rm -f conftest$ac_exeext |
| 3781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3782 | (eval $ac_link) 2>&5 |
| 3783 | ac_status=$? |
| 3784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3785 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3787 | (eval $ac_try) 2>&5 |
| 3788 | ac_status=$? |
| 3789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3790 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3791 | ac_cv_pthread_is_default=yes |
| 3792 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3793 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3794 | echo "$as_me: failed program was:" >&5 |
| 3795 | cat conftest.$ac_ext >&5 |
| 3796 | ( exit $ac_status ) |
| 3797 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3798 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3799 | 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] | 3800 | fi |
| 3801 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3802 | fi |
| 3803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3804 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3805 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3806 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3808 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3809 | then |
| 3810 | ac_cv_kpthread=no |
| 3811 | else |
| 3812 | # -Kpthread, if available, provides the right #defines |
| 3813 | # and linker options to make pthread_create available |
| 3814 | # Some compilers won't report that they do not support -Kpthread, |
| 3815 | # so we need to run a program to see whether it really made the |
| 3816 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3818 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3819 | if test "${ac_cv_kpthread+set}" = set; then |
| 3820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3821 | else |
| 3822 | ac_save_cc="$CC" |
| 3823 | CC="$CC -Kpthread" |
| 3824 | if test "$cross_compiling" = yes; then |
| 3825 | ac_cv_kpthread=no |
| 3826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3827 | cat >conftest.$ac_ext <<_ACEOF |
| 3828 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3829 | #include "confdefs.h" |
| 3830 | |
| 3831 | #include <pthread.h> |
| 3832 | |
| 3833 | void* routine(void* p){return NULL;} |
| 3834 | |
| 3835 | int main(){ |
| 3836 | pthread_t p; |
| 3837 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3838 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3839 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3840 | return 0; |
| 3841 | } |
| 3842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3843 | _ACEOF |
| 3844 | rm -f conftest$ac_exeext |
| 3845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3846 | (eval $ac_link) 2>&5 |
| 3847 | ac_status=$? |
| 3848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3849 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3851 | (eval $ac_try) 2>&5 |
| 3852 | ac_status=$? |
| 3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3854 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3855 | ac_cv_kpthread=yes |
| 3856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3857 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3858 | echo "$as_me: failed program was:" >&5 |
| 3859 | cat conftest.$ac_ext >&5 |
| 3860 | ( exit $ac_status ) |
| 3861 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3862 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3863 | 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] | 3864 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3865 | CC="$ac_save_cc" |
| 3866 | fi |
| 3867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3868 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3869 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3870 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3871 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3872 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3873 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3874 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3875 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3876 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3879 | cat >conftest.$ac_ext <<_ACEOF |
| 3880 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3881 | #include "confdefs.h" |
| 3882 | #include <stdlib.h> |
| 3883 | #include <stdarg.h> |
| 3884 | #include <string.h> |
| 3885 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3886 | |
| 3887 | _ACEOF |
| 3888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3890 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3891 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3892 | rm -f conftest.er1 |
| 3893 | cat conftest.err >&5 |
| 3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3895 | (exit $ac_status); } >/dev/null; then |
| 3896 | if test -s conftest.err; then |
| 3897 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3898 | else |
| 3899 | ac_cpp_err= |
| 3900 | fi |
| 3901 | else |
| 3902 | ac_cpp_err=yes |
| 3903 | fi |
| 3904 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3905 | ac_cv_header_stdc=yes |
| 3906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3907 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3908 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3909 | ac_cv_header_stdc=no |
| 3910 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3911 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3912 | |
| 3913 | if test $ac_cv_header_stdc = yes; then |
| 3914 | # 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] | 3915 | cat >conftest.$ac_ext <<_ACEOF |
| 3916 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3917 | #include "confdefs.h" |
| 3918 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3919 | |
| 3920 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3922 | egrep "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3923 | : |
| 3924 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3925 | ac_cv_header_stdc=no |
| 3926 | fi |
| 3927 | rm -f conftest* |
| 3928 | |
| 3929 | fi |
| 3930 | |
| 3931 | if test $ac_cv_header_stdc = yes; then |
| 3932 | # 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] | 3933 | cat >conftest.$ac_ext <<_ACEOF |
| 3934 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3935 | #include "confdefs.h" |
| 3936 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3937 | |
| 3938 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3940 | egrep "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3941 | : |
| 3942 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3943 | ac_cv_header_stdc=no |
| 3944 | fi |
| 3945 | rm -f conftest* |
| 3946 | |
| 3947 | fi |
| 3948 | |
| 3949 | if test $ac_cv_header_stdc = yes; then |
| 3950 | # /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] | 3951 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3952 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3954 | cat >conftest.$ac_ext <<_ACEOF |
| 3955 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3956 | #include "confdefs.h" |
| 3957 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3958 | #if ((' ' & 0x0FF) == 0x020) |
| 3959 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3960 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3961 | #else |
| 3962 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3963 | || ('j' <= (c) && (c) <= 'r') \ |
| 3964 | || ('s' <= (c) && (c) <= 'z')) |
| 3965 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3966 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3968 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3969 | int |
| 3970 | main () |
| 3971 | { |
| 3972 | int i; |
| 3973 | for (i = 0; i < 256; i++) |
| 3974 | if (XOR (islower (i), ISLOWER (i)) |
| 3975 | || toupper (i) != TOUPPER (i)) |
| 3976 | exit(2); |
| 3977 | exit (0); |
| 3978 | } |
| 3979 | _ACEOF |
| 3980 | rm -f conftest$ac_exeext |
| 3981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3982 | (eval $ac_link) 2>&5 |
| 3983 | ac_status=$? |
| 3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3987 | (eval $ac_try) 2>&5 |
| 3988 | ac_status=$? |
| 3989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3990 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3991 | : |
| 3992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3993 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3994 | echo "$as_me: failed program was:" >&5 |
| 3995 | cat conftest.$ac_ext >&5 |
| 3996 | ( exit $ac_status ) |
| 3997 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3998 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3999 | 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] | 4000 | fi |
| 4001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4002 | fi |
| 4003 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4004 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4005 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4006 | |
| 4007 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4008 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4009 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4010 | |
| 4011 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4013 | |
| 4014 | |
| 4015 | |
| 4016 | |
| 4017 | |
| 4018 | |
| 4019 | |
| 4020 | |
| 4021 | |
| 4022 | |
| 4023 | |
| 4024 | |
| 4025 | |
| 4026 | |
| 4027 | |
| 4028 | |
| 4029 | |
| 4030 | |
| 4031 | |
| 4032 | |
| 4033 | |
| 4034 | |
| 4035 | |
| 4036 | |
| 4037 | |
| 4038 | |
| 4039 | |
| 4040 | |
| 4041 | |
| 4042 | |
| 4043 | |
| 4044 | |
| 4045 | |
| 4046 | |
| 4047 | |
| 4048 | |
| 4049 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4050 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4052 | 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] | 4053 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4054 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4055 | unistd.h utime.h \ |
Skip Montanaro | 57454e5 | 2002-06-14 20:30:31 +0000 | [diff] [blame] | 4056 | sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4057 | 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] | 4058 | 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] | 4059 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4060 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4062 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4063 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4064 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4067 | fi |
| 4068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4070 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4071 | # Is the header compilable? |
| 4072 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4073 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4074 | cat >conftest.$ac_ext <<_ACEOF |
| 4075 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4076 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4077 | $ac_includes_default |
| 4078 | #include <$ac_header> |
| 4079 | _ACEOF |
| 4080 | rm -f conftest.$ac_objext |
| 4081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4082 | (eval $ac_compile) 2>&5 |
| 4083 | ac_status=$? |
| 4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4085 | (exit $ac_status); } && |
| 4086 | { ac_try='test -s conftest.$ac_objext' |
| 4087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4088 | (eval $ac_try) 2>&5 |
| 4089 | ac_status=$? |
| 4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4091 | (exit $ac_status); }; }; then |
| 4092 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4094 | echo "$as_me: failed program was:" >&5 |
| 4095 | cat conftest.$ac_ext >&5 |
| 4096 | ac_header_compiler=no |
| 4097 | fi |
| 4098 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4099 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4100 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4101 | |
| 4102 | # Is the header present? |
| 4103 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4105 | cat >conftest.$ac_ext <<_ACEOF |
| 4106 | #line $LINENO "configure" |
| 4107 | #include "confdefs.h" |
| 4108 | #include <$ac_header> |
| 4109 | _ACEOF |
| 4110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4112 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4113 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4114 | rm -f conftest.er1 |
| 4115 | cat conftest.err >&5 |
| 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4117 | (exit $ac_status); } >/dev/null; then |
| 4118 | if test -s conftest.err; then |
| 4119 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4120 | else |
| 4121 | ac_cpp_err= |
| 4122 | fi |
| 4123 | else |
| 4124 | ac_cpp_err=yes |
| 4125 | fi |
| 4126 | if test -z "$ac_cpp_err"; then |
| 4127 | ac_header_preproc=yes |
| 4128 | else |
| 4129 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4130 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4131 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4133 | rm -f conftest.err conftest.$ac_ext |
| 4134 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4135 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4136 | |
| 4137 | # So? What about this header? |
| 4138 | case $ac_header_compiler:$ac_header_preproc in |
| 4139 | yes:no ) |
| 4140 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4141 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4142 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4143 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4144 | no:yes ) |
| 4145 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4146 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4147 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4148 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4149 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4150 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4151 | esac |
| 4152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4157 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4158 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4161 | |
| 4162 | fi |
| 4163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4164 | cat >>confdefs.h <<_ACEOF |
| 4165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4166 | _ACEOF |
| 4167 | |
| 4168 | fi |
| 4169 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4170 | done |
| 4171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4172 | |
| 4173 | |
| 4174 | |
| 4175 | |
| 4176 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4177 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4178 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4179 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4180 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4181 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4185 | cat >conftest.$ac_ext <<_ACEOF |
| 4186 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4187 | #include "confdefs.h" |
| 4188 | #include <sys/types.h> |
| 4189 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4190 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4191 | #ifdef F77_DUMMY_MAIN |
| 4192 | # ifdef __cplusplus |
| 4193 | extern "C" |
| 4194 | # endif |
| 4195 | int F77_DUMMY_MAIN() { return 1; } |
| 4196 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4197 | int |
| 4198 | main () |
| 4199 | { |
| 4200 | if ((DIR *) 0) |
| 4201 | return 0; |
| 4202 | ; |
| 4203 | return 0; |
| 4204 | } |
| 4205 | _ACEOF |
| 4206 | rm -f conftest.$ac_objext |
| 4207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4208 | (eval $ac_compile) 2>&5 |
| 4209 | ac_status=$? |
| 4210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4211 | (exit $ac_status); } && |
| 4212 | { ac_try='test -s conftest.$ac_objext' |
| 4213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4214 | (eval $ac_try) 2>&5 |
| 4215 | ac_status=$? |
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4217 | (exit $ac_status); }; }; then |
| 4218 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4220 | echo "$as_me: failed program was:" >&5 |
| 4221 | cat conftest.$ac_ext >&5 |
| 4222 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4224 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4228 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4229 | cat >>confdefs.h <<_ACEOF |
| 4230 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4231 | _ACEOF |
| 4232 | |
| 4233 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4234 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4235 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4236 | done |
| 4237 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4238 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4239 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4240 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4241 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4244 | ac_func_search_save_LIBS=$LIBS |
| 4245 | ac_cv_search_opendir=no |
| 4246 | cat >conftest.$ac_ext <<_ACEOF |
| 4247 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4248 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4249 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4250 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4251 | #ifdef __cplusplus |
| 4252 | extern "C" |
| 4253 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4254 | /* 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] | 4255 | builtin and then its argument prototype would still apply. */ |
| 4256 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4257 | #ifdef F77_DUMMY_MAIN |
| 4258 | # ifdef __cplusplus |
| 4259 | extern "C" |
| 4260 | # endif |
| 4261 | int F77_DUMMY_MAIN() { return 1; } |
| 4262 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4263 | int |
| 4264 | main () |
| 4265 | { |
| 4266 | opendir (); |
| 4267 | ; |
| 4268 | return 0; |
| 4269 | } |
| 4270 | _ACEOF |
| 4271 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4273 | (eval $ac_link) 2>&5 |
| 4274 | ac_status=$? |
| 4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4276 | (exit $ac_status); } && |
| 4277 | { ac_try='test -s conftest$ac_exeext' |
| 4278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4279 | (eval $ac_try) 2>&5 |
| 4280 | ac_status=$? |
| 4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4282 | (exit $ac_status); }; }; then |
| 4283 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4285 | echo "$as_me: failed program was:" >&5 |
| 4286 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4287 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4288 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4289 | if test "$ac_cv_search_opendir" = no; then |
| 4290 | for ac_lib in dir; do |
| 4291 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4292 | cat >conftest.$ac_ext <<_ACEOF |
| 4293 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4294 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4295 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4296 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4297 | #ifdef __cplusplus |
| 4298 | extern "C" |
| 4299 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4300 | /* 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] | 4301 | builtin and then its argument prototype would still apply. */ |
| 4302 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4303 | #ifdef F77_DUMMY_MAIN |
| 4304 | # ifdef __cplusplus |
| 4305 | extern "C" |
| 4306 | # endif |
| 4307 | int F77_DUMMY_MAIN() { return 1; } |
| 4308 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4309 | int |
| 4310 | main () |
| 4311 | { |
| 4312 | opendir (); |
| 4313 | ; |
| 4314 | return 0; |
| 4315 | } |
| 4316 | _ACEOF |
| 4317 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4319 | (eval $ac_link) 2>&5 |
| 4320 | ac_status=$? |
| 4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4322 | (exit $ac_status); } && |
| 4323 | { ac_try='test -s conftest$ac_exeext' |
| 4324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4325 | (eval $ac_try) 2>&5 |
| 4326 | ac_status=$? |
| 4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4328 | (exit $ac_status); }; }; then |
| 4329 | ac_cv_search_opendir="-l$ac_lib" |
| 4330 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4332 | echo "$as_me: failed program was:" >&5 |
| 4333 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4334 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4335 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4336 | done |
| 4337 | fi |
| 4338 | LIBS=$ac_func_search_save_LIBS |
| 4339 | fi |
| 4340 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4341 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4342 | if test "$ac_cv_search_opendir" != no; then |
| 4343 | 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] | 4344 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4346 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4348 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4349 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4350 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4352 | else |
| 4353 | ac_func_search_save_LIBS=$LIBS |
| 4354 | ac_cv_search_opendir=no |
| 4355 | cat >conftest.$ac_ext <<_ACEOF |
| 4356 | #line $LINENO "configure" |
| 4357 | #include "confdefs.h" |
| 4358 | |
| 4359 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4360 | #ifdef __cplusplus |
| 4361 | extern "C" |
| 4362 | #endif |
| 4363 | /* We use char because int might match the return type of a gcc2 |
| 4364 | builtin and then its argument prototype would still apply. */ |
| 4365 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4366 | #ifdef F77_DUMMY_MAIN |
| 4367 | # ifdef __cplusplus |
| 4368 | extern "C" |
| 4369 | # endif |
| 4370 | int F77_DUMMY_MAIN() { return 1; } |
| 4371 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4372 | int |
| 4373 | main () |
| 4374 | { |
| 4375 | opendir (); |
| 4376 | ; |
| 4377 | return 0; |
| 4378 | } |
| 4379 | _ACEOF |
| 4380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4382 | (eval $ac_link) 2>&5 |
| 4383 | ac_status=$? |
| 4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4385 | (exit $ac_status); } && |
| 4386 | { ac_try='test -s conftest$ac_exeext' |
| 4387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4388 | (eval $ac_try) 2>&5 |
| 4389 | ac_status=$? |
| 4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4391 | (exit $ac_status); }; }; then |
| 4392 | ac_cv_search_opendir="none required" |
| 4393 | else |
| 4394 | echo "$as_me: failed program was:" >&5 |
| 4395 | cat conftest.$ac_ext >&5 |
| 4396 | fi |
| 4397 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4398 | if test "$ac_cv_search_opendir" = no; then |
| 4399 | for ac_lib in x; do |
| 4400 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4401 | cat >conftest.$ac_ext <<_ACEOF |
| 4402 | #line $LINENO "configure" |
| 4403 | #include "confdefs.h" |
| 4404 | |
| 4405 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4406 | #ifdef __cplusplus |
| 4407 | extern "C" |
| 4408 | #endif |
| 4409 | /* We use char because int might match the return type of a gcc2 |
| 4410 | builtin and then its argument prototype would still apply. */ |
| 4411 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4412 | #ifdef F77_DUMMY_MAIN |
| 4413 | # ifdef __cplusplus |
| 4414 | extern "C" |
| 4415 | # endif |
| 4416 | int F77_DUMMY_MAIN() { return 1; } |
| 4417 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4418 | int |
| 4419 | main () |
| 4420 | { |
| 4421 | opendir (); |
| 4422 | ; |
| 4423 | return 0; |
| 4424 | } |
| 4425 | _ACEOF |
| 4426 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4428 | (eval $ac_link) 2>&5 |
| 4429 | ac_status=$? |
| 4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4431 | (exit $ac_status); } && |
| 4432 | { ac_try='test -s conftest$ac_exeext' |
| 4433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4434 | (eval $ac_try) 2>&5 |
| 4435 | ac_status=$? |
| 4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4437 | (exit $ac_status); }; }; then |
| 4438 | ac_cv_search_opendir="-l$ac_lib" |
| 4439 | break |
| 4440 | else |
| 4441 | echo "$as_me: failed program was:" >&5 |
| 4442 | cat conftest.$ac_ext >&5 |
| 4443 | fi |
| 4444 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4445 | done |
| 4446 | fi |
| 4447 | LIBS=$ac_func_search_save_LIBS |
| 4448 | fi |
| 4449 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4450 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4451 | if test "$ac_cv_search_opendir" != no; then |
| 4452 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4453 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4454 | fi |
| 4455 | |
| 4456 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4457 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4458 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4459 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4460 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4462 | else |
| 4463 | cat >conftest.$ac_ext <<_ACEOF |
| 4464 | #line $LINENO "configure" |
| 4465 | #include "confdefs.h" |
| 4466 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4467 | #ifdef F77_DUMMY_MAIN |
| 4468 | # ifdef __cplusplus |
| 4469 | extern "C" |
| 4470 | # endif |
| 4471 | int F77_DUMMY_MAIN() { return 1; } |
| 4472 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4473 | int |
| 4474 | main () |
| 4475 | { |
| 4476 | return makedev(0, 0); |
| 4477 | ; |
| 4478 | return 0; |
| 4479 | } |
| 4480 | _ACEOF |
| 4481 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4483 | (eval $ac_link) 2>&5 |
| 4484 | ac_status=$? |
| 4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4486 | (exit $ac_status); } && |
| 4487 | { ac_try='test -s conftest$ac_exeext' |
| 4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4489 | (eval $ac_try) 2>&5 |
| 4490 | ac_status=$? |
| 4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4492 | (exit $ac_status); }; }; then |
| 4493 | ac_cv_header_sys_types_h_makedev=yes |
| 4494 | else |
| 4495 | echo "$as_me: failed program was:" >&5 |
| 4496 | cat conftest.$ac_ext >&5 |
| 4497 | ac_cv_header_sys_types_h_makedev=no |
| 4498 | fi |
| 4499 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4500 | |
| 4501 | fi |
| 4502 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4503 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4504 | |
| 4505 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4506 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4507 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4508 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4509 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4511 | fi |
| 4512 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4513 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4514 | else |
| 4515 | # Is the header compilable? |
| 4516 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4517 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4518 | cat >conftest.$ac_ext <<_ACEOF |
| 4519 | #line $LINENO "configure" |
| 4520 | #include "confdefs.h" |
| 4521 | $ac_includes_default |
| 4522 | #include <sys/mkdev.h> |
| 4523 | _ACEOF |
| 4524 | rm -f conftest.$ac_objext |
| 4525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4526 | (eval $ac_compile) 2>&5 |
| 4527 | ac_status=$? |
| 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4529 | (exit $ac_status); } && |
| 4530 | { ac_try='test -s conftest.$ac_objext' |
| 4531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4532 | (eval $ac_try) 2>&5 |
| 4533 | ac_status=$? |
| 4534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4535 | (exit $ac_status); }; }; then |
| 4536 | ac_header_compiler=yes |
| 4537 | else |
| 4538 | echo "$as_me: failed program was:" >&5 |
| 4539 | cat conftest.$ac_ext >&5 |
| 4540 | ac_header_compiler=no |
| 4541 | fi |
| 4542 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4543 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4544 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4545 | |
| 4546 | # Is the header present? |
| 4547 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4548 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4549 | cat >conftest.$ac_ext <<_ACEOF |
| 4550 | #line $LINENO "configure" |
| 4551 | #include "confdefs.h" |
| 4552 | #include <sys/mkdev.h> |
| 4553 | _ACEOF |
| 4554 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4556 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4557 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4558 | rm -f conftest.er1 |
| 4559 | cat conftest.err >&5 |
| 4560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4561 | (exit $ac_status); } >/dev/null; then |
| 4562 | if test -s conftest.err; then |
| 4563 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4564 | else |
| 4565 | ac_cpp_err= |
| 4566 | fi |
| 4567 | else |
| 4568 | ac_cpp_err=yes |
| 4569 | fi |
| 4570 | if test -z "$ac_cpp_err"; then |
| 4571 | ac_header_preproc=yes |
| 4572 | else |
| 4573 | echo "$as_me: failed program was:" >&5 |
| 4574 | cat conftest.$ac_ext >&5 |
| 4575 | ac_header_preproc=no |
| 4576 | fi |
| 4577 | rm -f conftest.err conftest.$ac_ext |
| 4578 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4579 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4580 | |
| 4581 | # So? What about this header? |
| 4582 | case $ac_header_compiler:$ac_header_preproc in |
| 4583 | yes:no ) |
| 4584 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4585 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4586 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4587 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4588 | no:yes ) |
| 4589 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4590 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4591 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4592 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4593 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4594 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4595 | esac |
| 4596 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4597 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4598 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4600 | else |
| 4601 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4602 | fi |
| 4603 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4604 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4605 | |
| 4606 | fi |
| 4607 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4608 | |
| 4609 | cat >>confdefs.h <<\_ACEOF |
| 4610 | #define MAJOR_IN_MKDEV 1 |
| 4611 | _ACEOF |
| 4612 | |
| 4613 | fi |
| 4614 | |
| 4615 | |
| 4616 | |
| 4617 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4618 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4619 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4620 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4621 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4623 | fi |
| 4624 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4625 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4626 | else |
| 4627 | # Is the header compilable? |
| 4628 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4629 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4630 | cat >conftest.$ac_ext <<_ACEOF |
| 4631 | #line $LINENO "configure" |
| 4632 | #include "confdefs.h" |
| 4633 | $ac_includes_default |
| 4634 | #include <sys/sysmacros.h> |
| 4635 | _ACEOF |
| 4636 | rm -f conftest.$ac_objext |
| 4637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4638 | (eval $ac_compile) 2>&5 |
| 4639 | ac_status=$? |
| 4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4641 | (exit $ac_status); } && |
| 4642 | { ac_try='test -s conftest.$ac_objext' |
| 4643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4644 | (eval $ac_try) 2>&5 |
| 4645 | ac_status=$? |
| 4646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4647 | (exit $ac_status); }; }; then |
| 4648 | ac_header_compiler=yes |
| 4649 | else |
| 4650 | echo "$as_me: failed program was:" >&5 |
| 4651 | cat conftest.$ac_ext >&5 |
| 4652 | ac_header_compiler=no |
| 4653 | fi |
| 4654 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4655 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4656 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4657 | |
| 4658 | # Is the header present? |
| 4659 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4660 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4661 | cat >conftest.$ac_ext <<_ACEOF |
| 4662 | #line $LINENO "configure" |
| 4663 | #include "confdefs.h" |
| 4664 | #include <sys/sysmacros.h> |
| 4665 | _ACEOF |
| 4666 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4667 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4668 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4669 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4670 | rm -f conftest.er1 |
| 4671 | cat conftest.err >&5 |
| 4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4673 | (exit $ac_status); } >/dev/null; then |
| 4674 | if test -s conftest.err; then |
| 4675 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4676 | else |
| 4677 | ac_cpp_err= |
| 4678 | fi |
| 4679 | else |
| 4680 | ac_cpp_err=yes |
| 4681 | fi |
| 4682 | if test -z "$ac_cpp_err"; then |
| 4683 | ac_header_preproc=yes |
| 4684 | else |
| 4685 | echo "$as_me: failed program was:" >&5 |
| 4686 | cat conftest.$ac_ext >&5 |
| 4687 | ac_header_preproc=no |
| 4688 | fi |
| 4689 | rm -f conftest.err conftest.$ac_ext |
| 4690 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4691 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4692 | |
| 4693 | # So? What about this header? |
| 4694 | case $ac_header_compiler:$ac_header_preproc in |
| 4695 | yes:no ) |
| 4696 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4697 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4698 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4699 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4700 | no:yes ) |
| 4701 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4702 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4703 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4704 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4705 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4706 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4707 | esac |
| 4708 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4709 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4710 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4712 | else |
| 4713 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4714 | fi |
| 4715 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4716 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4717 | |
| 4718 | fi |
| 4719 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4720 | |
| 4721 | cat >>confdefs.h <<\_ACEOF |
| 4722 | #define MAJOR_IN_SYSMACROS 1 |
| 4723 | _ACEOF |
| 4724 | |
| 4725 | fi |
| 4726 | |
| 4727 | |
| 4728 | fi |
| 4729 | fi |
| 4730 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4731 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4732 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4733 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4734 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4735 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4736 | cat >conftest.$ac_ext <<_ACEOF |
| 4737 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4738 | #include "confdefs.h" |
| 4739 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4740 | |
| 4741 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4743 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4744 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4746 | |
| 4747 | |
| 4748 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4749 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4750 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4751 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4752 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4753 | fi |
| 4754 | rm -f conftest* |
| 4755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4756 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4757 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4758 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4759 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4760 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4761 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4762 | cat >conftest.$ac_ext <<_ACEOF |
| 4763 | #line $LINENO "configure" |
| 4764 | #include "confdefs.h" |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 4765 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4766 | #ifdef F77_DUMMY_MAIN |
| 4767 | # ifdef __cplusplus |
| 4768 | extern "C" |
| 4769 | # endif |
| 4770 | int F77_DUMMY_MAIN() { return 1; } |
| 4771 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4772 | int |
| 4773 | main () |
| 4774 | { |
| 4775 | makedev(0, 0) |
| 4776 | ; |
| 4777 | return 0; |
| 4778 | } |
| 4779 | _ACEOF |
| 4780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4782 | (eval $ac_link) 2>&5 |
| 4783 | ac_status=$? |
| 4784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4785 | (exit $ac_status); } && |
| 4786 | { ac_try='test -s conftest$ac_exeext' |
| 4787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4788 | (eval $ac_try) 2>&5 |
| 4789 | ac_status=$? |
| 4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4791 | (exit $ac_status); }; }; then |
| 4792 | ac_cv_has_makedev=yes |
| 4793 | else |
| 4794 | echo "$as_me: failed program was:" >&5 |
| 4795 | cat conftest.$ac_ext >&5 |
| 4796 | ac_cv_has_makedev=no |
| 4797 | fi |
| 4798 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4799 | if test "$ac_cv_has_makedev" = "no"; then |
| 4800 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4801 | cat >conftest.$ac_ext <<_ACEOF |
| 4802 | #line $LINENO "configure" |
| 4803 | #include "confdefs.h" |
| 4804 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 4805 | #define _OSF_SOURCE 1 |
| 4806 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4807 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4808 | #ifdef F77_DUMMY_MAIN |
| 4809 | # ifdef __cplusplus |
| 4810 | extern "C" |
| 4811 | # endif |
| 4812 | int F77_DUMMY_MAIN() { return 1; } |
| 4813 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4814 | int |
| 4815 | main () |
| 4816 | { |
| 4817 | makedev(0, 0) |
| 4818 | ; |
| 4819 | return 0; |
| 4820 | } |
| 4821 | _ACEOF |
| 4822 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4824 | (eval $ac_link) 2>&5 |
| 4825 | ac_status=$? |
| 4826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4827 | (exit $ac_status); } && |
| 4828 | { ac_try='test -s conftest$ac_exeext' |
| 4829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4830 | (eval $ac_try) 2>&5 |
| 4831 | ac_status=$? |
| 4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4833 | (exit $ac_status); }; }; then |
| 4834 | ac_cv_has_makedev=yes |
| 4835 | else |
| 4836 | echo "$as_me: failed program was:" >&5 |
| 4837 | cat conftest.$ac_ext >&5 |
| 4838 | ac_cv_has_makedev=no |
| 4839 | fi |
| 4840 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4841 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4842 | |
| 4843 | cat >>confdefs.h <<\_ACEOF |
| 4844 | #define _OSF_SOURCE 1 |
| 4845 | _ACEOF |
| 4846 | |
| 4847 | fi |
| 4848 | fi |
| 4849 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4850 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4851 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4852 | |
| 4853 | cat >>confdefs.h <<\_ACEOF |
| 4854 | #define HAVE_MAKEDEV 1 |
| 4855 | _ACEOF |
| 4856 | |
| 4857 | fi |
| 4858 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4859 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4860 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4861 | # defined, but the compiler does not support pragma redefine_extname, |
| 4862 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4863 | # structures (such as rlimit64) without declaring them. As a |
| 4864 | # work-around, disable LFS on such configurations |
| 4865 | |
| 4866 | use_lfs=yes |
| 4867 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4868 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4869 | cat >conftest.$ac_ext <<_ACEOF |
| 4870 | #line $LINENO "configure" |
| 4871 | #include "confdefs.h" |
| 4872 | |
| 4873 | #define _LARGEFILE_SOURCE 1 |
| 4874 | #define _FILE_OFFSET_BITS 64 |
| 4875 | #include <sys/resource.h> |
| 4876 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4877 | #ifdef F77_DUMMY_MAIN |
| 4878 | # ifdef __cplusplus |
| 4879 | extern "C" |
| 4880 | # endif |
| 4881 | int F77_DUMMY_MAIN() { return 1; } |
| 4882 | #endif |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4883 | int |
| 4884 | main () |
| 4885 | { |
| 4886 | struct rlimit foo; |
| 4887 | ; |
| 4888 | return 0; |
| 4889 | } |
| 4890 | _ACEOF |
| 4891 | rm -f conftest.$ac_objext |
| 4892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4893 | (eval $ac_compile) 2>&5 |
| 4894 | ac_status=$? |
| 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4896 | (exit $ac_status); } && |
| 4897 | { ac_try='test -s conftest.$ac_objext' |
| 4898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4899 | (eval $ac_try) 2>&5 |
| 4900 | ac_status=$? |
| 4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4902 | (exit $ac_status); }; }; then |
| 4903 | sol_lfs_bug=no |
| 4904 | else |
| 4905 | echo "$as_me: failed program was:" >&5 |
| 4906 | cat conftest.$ac_ext >&5 |
| 4907 | sol_lfs_bug=yes |
| 4908 | fi |
| 4909 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4910 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4911 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4912 | if test "$sol_lfs_bug" = "yes"; then |
| 4913 | use_lfs=no |
| 4914 | fi |
| 4915 | |
| 4916 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4917 | # Two defines needed to enable largefile support on various platforms |
| 4918 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4920 | cat >>confdefs.h <<\_ACEOF |
| 4921 | #define _LARGEFILE_SOURCE 1 |
| 4922 | _ACEOF |
| 4923 | |
| 4924 | |
| 4925 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4926 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4927 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4928 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4929 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4930 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4931 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4932 | cat >> confdefs.h <<\EOF |
| 4933 | #if defined(SCO_DS) |
| 4934 | #undef _OFF_T |
| 4935 | #endif |
| 4936 | EOF |
| 4937 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4938 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4939 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4940 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4941 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4944 | cat >conftest.$ac_ext <<_ACEOF |
| 4945 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4946 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4947 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4948 | #ifdef F77_DUMMY_MAIN |
| 4949 | # ifdef __cplusplus |
| 4950 | extern "C" |
| 4951 | # endif |
| 4952 | int F77_DUMMY_MAIN() { return 1; } |
| 4953 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4954 | int |
| 4955 | main () |
| 4956 | { |
| 4957 | if ((mode_t *) 0) |
| 4958 | return 0; |
| 4959 | if (sizeof (mode_t)) |
| 4960 | return 0; |
| 4961 | ; |
| 4962 | return 0; |
| 4963 | } |
| 4964 | _ACEOF |
| 4965 | rm -f conftest.$ac_objext |
| 4966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4967 | (eval $ac_compile) 2>&5 |
| 4968 | ac_status=$? |
| 4969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4970 | (exit $ac_status); } && |
| 4971 | { ac_try='test -s conftest.$ac_objext' |
| 4972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4973 | (eval $ac_try) 2>&5 |
| 4974 | ac_status=$? |
| 4975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4976 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4977 | ac_cv_type_mode_t=yes |
| 4978 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4979 | echo "$as_me: failed program was:" >&5 |
| 4980 | cat conftest.$ac_ext >&5 |
| 4981 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4982 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4983 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4984 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4985 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4986 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4987 | if test $ac_cv_type_mode_t = yes; then |
| 4988 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4990 | |
| 4991 | cat >>confdefs.h <<_ACEOF |
| 4992 | #define mode_t int |
| 4993 | _ACEOF |
| 4994 | |
| 4995 | fi |
| 4996 | |
| 4997 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4998 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4999 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5001 | else |
| 5002 | cat >conftest.$ac_ext <<_ACEOF |
| 5003 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5004 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5005 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5006 | #ifdef F77_DUMMY_MAIN |
| 5007 | # ifdef __cplusplus |
| 5008 | extern "C" |
| 5009 | # endif |
| 5010 | int F77_DUMMY_MAIN() { return 1; } |
| 5011 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5012 | int |
| 5013 | main () |
| 5014 | { |
| 5015 | if ((off_t *) 0) |
| 5016 | return 0; |
| 5017 | if (sizeof (off_t)) |
| 5018 | return 0; |
| 5019 | ; |
| 5020 | return 0; |
| 5021 | } |
| 5022 | _ACEOF |
| 5023 | rm -f conftest.$ac_objext |
| 5024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5025 | (eval $ac_compile) 2>&5 |
| 5026 | ac_status=$? |
| 5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5028 | (exit $ac_status); } && |
| 5029 | { ac_try='test -s conftest.$ac_objext' |
| 5030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5031 | (eval $ac_try) 2>&5 |
| 5032 | ac_status=$? |
| 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5034 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5035 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5037 | echo "$as_me: failed program was:" >&5 |
| 5038 | cat conftest.$ac_ext >&5 |
| 5039 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5040 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5041 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5042 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5043 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5044 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5045 | if test $ac_cv_type_off_t = yes; then |
| 5046 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5048 | |
| 5049 | cat >>confdefs.h <<_ACEOF |
| 5050 | #define off_t long |
| 5051 | _ACEOF |
| 5052 | |
| 5053 | fi |
| 5054 | |
| 5055 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5056 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5057 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5059 | else |
| 5060 | cat >conftest.$ac_ext <<_ACEOF |
| 5061 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5062 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5063 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5064 | #ifdef F77_DUMMY_MAIN |
| 5065 | # ifdef __cplusplus |
| 5066 | extern "C" |
| 5067 | # endif |
| 5068 | int F77_DUMMY_MAIN() { return 1; } |
| 5069 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5070 | int |
| 5071 | main () |
| 5072 | { |
| 5073 | if ((pid_t *) 0) |
| 5074 | return 0; |
| 5075 | if (sizeof (pid_t)) |
| 5076 | return 0; |
| 5077 | ; |
| 5078 | return 0; |
| 5079 | } |
| 5080 | _ACEOF |
| 5081 | rm -f conftest.$ac_objext |
| 5082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5083 | (eval $ac_compile) 2>&5 |
| 5084 | ac_status=$? |
| 5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5086 | (exit $ac_status); } && |
| 5087 | { ac_try='test -s conftest.$ac_objext' |
| 5088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5089 | (eval $ac_try) 2>&5 |
| 5090 | ac_status=$? |
| 5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5092 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5093 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5095 | echo "$as_me: failed program was:" >&5 |
| 5096 | cat conftest.$ac_ext >&5 |
| 5097 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5098 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5099 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5100 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5101 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5102 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5103 | if test $ac_cv_type_pid_t = yes; then |
| 5104 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5106 | |
| 5107 | cat >>confdefs.h <<_ACEOF |
| 5108 | #define pid_t int |
| 5109 | _ACEOF |
| 5110 | |
| 5111 | fi |
| 5112 | |
| 5113 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5114 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5115 | if test "${ac_cv_type_signal+set}" = set; then |
| 5116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5117 | else |
| 5118 | cat >conftest.$ac_ext <<_ACEOF |
| 5119 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5120 | #include "confdefs.h" |
| 5121 | #include <sys/types.h> |
| 5122 | #include <signal.h> |
| 5123 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5124 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5125 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5126 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5127 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5128 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5129 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5130 | #endif |
| 5131 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5132 | #ifdef F77_DUMMY_MAIN |
| 5133 | # ifdef __cplusplus |
| 5134 | extern "C" |
| 5135 | # endif |
| 5136 | int F77_DUMMY_MAIN() { return 1; } |
| 5137 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5138 | int |
| 5139 | main () |
| 5140 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5141 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5142 | ; |
| 5143 | return 0; |
| 5144 | } |
| 5145 | _ACEOF |
| 5146 | rm -f conftest.$ac_objext |
| 5147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5148 | (eval $ac_compile) 2>&5 |
| 5149 | ac_status=$? |
| 5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5151 | (exit $ac_status); } && |
| 5152 | { ac_try='test -s conftest.$ac_objext' |
| 5153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5154 | (eval $ac_try) 2>&5 |
| 5155 | ac_status=$? |
| 5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5157 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5158 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5160 | echo "$as_me: failed program was:" >&5 |
| 5161 | cat conftest.$ac_ext >&5 |
| 5162 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5164 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5166 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5167 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5169 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5170 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5171 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5172 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5174 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5175 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5176 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5179 | cat >conftest.$ac_ext <<_ACEOF |
| 5180 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5181 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5182 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5183 | #ifdef F77_DUMMY_MAIN |
| 5184 | # ifdef __cplusplus |
| 5185 | extern "C" |
| 5186 | # endif |
| 5187 | int F77_DUMMY_MAIN() { return 1; } |
| 5188 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5189 | int |
| 5190 | main () |
| 5191 | { |
| 5192 | if ((size_t *) 0) |
| 5193 | return 0; |
| 5194 | if (sizeof (size_t)) |
| 5195 | return 0; |
| 5196 | ; |
| 5197 | return 0; |
| 5198 | } |
| 5199 | _ACEOF |
| 5200 | rm -f conftest.$ac_objext |
| 5201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5202 | (eval $ac_compile) 2>&5 |
| 5203 | ac_status=$? |
| 5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5205 | (exit $ac_status); } && |
| 5206 | { ac_try='test -s conftest.$ac_objext' |
| 5207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5208 | (eval $ac_try) 2>&5 |
| 5209 | ac_status=$? |
| 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5211 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5212 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5214 | echo "$as_me: failed program was:" >&5 |
| 5215 | cat conftest.$ac_ext >&5 |
| 5216 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5217 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5218 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5219 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5220 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5221 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5222 | if test $ac_cv_type_size_t = yes; then |
| 5223 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5224 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5225 | |
| 5226 | cat >>confdefs.h <<_ACEOF |
| 5227 | #define size_t unsigned |
| 5228 | _ACEOF |
| 5229 | |
| 5230 | fi |
| 5231 | |
| 5232 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5233 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5234 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5236 | else |
| 5237 | cat >conftest.$ac_ext <<_ACEOF |
| 5238 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5239 | #include "confdefs.h" |
| 5240 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5241 | |
| 5242 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5243 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5244 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5245 | ac_cv_type_uid_t=yes |
| 5246 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5247 | ac_cv_type_uid_t=no |
| 5248 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5249 | rm -f conftest* |
| 5250 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5252 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5253 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5254 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5256 | cat >>confdefs.h <<\_ACEOF |
| 5257 | #define uid_t int |
| 5258 | _ACEOF |
| 5259 | |
| 5260 | |
| 5261 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5262 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5263 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5264 | |
| 5265 | fi |
| 5266 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5267 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5268 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5269 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5270 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5271 | if test "${ac_cv_type_int+set}" = set; then |
| 5272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5273 | else |
| 5274 | cat >conftest.$ac_ext <<_ACEOF |
| 5275 | #line $LINENO "configure" |
| 5276 | #include "confdefs.h" |
| 5277 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5278 | #ifdef F77_DUMMY_MAIN |
| 5279 | # ifdef __cplusplus |
| 5280 | extern "C" |
| 5281 | # endif |
| 5282 | int F77_DUMMY_MAIN() { return 1; } |
| 5283 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5284 | int |
| 5285 | main () |
| 5286 | { |
| 5287 | if ((int *) 0) |
| 5288 | return 0; |
| 5289 | if (sizeof (int)) |
| 5290 | return 0; |
| 5291 | ; |
| 5292 | return 0; |
| 5293 | } |
| 5294 | _ACEOF |
| 5295 | rm -f conftest.$ac_objext |
| 5296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5297 | (eval $ac_compile) 2>&5 |
| 5298 | ac_status=$? |
| 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5300 | (exit $ac_status); } && |
| 5301 | { ac_try='test -s conftest.$ac_objext' |
| 5302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5303 | (eval $ac_try) 2>&5 |
| 5304 | ac_status=$? |
| 5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5306 | (exit $ac_status); }; }; then |
| 5307 | ac_cv_type_int=yes |
| 5308 | else |
| 5309 | echo "$as_me: failed program was:" >&5 |
| 5310 | cat conftest.$ac_ext >&5 |
| 5311 | ac_cv_type_int=no |
| 5312 | fi |
| 5313 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5314 | fi |
| 5315 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5316 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5317 | |
| 5318 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5319 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5320 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5322 | else |
| 5323 | if test "$ac_cv_type_int" = yes; then |
| 5324 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5325 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5326 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5327 | # This bug is HP SR number 8606223364. |
| 5328 | if test "$cross_compiling" = yes; then |
| 5329 | # Depending upon the size, compute the lo and hi bounds. |
| 5330 | cat >conftest.$ac_ext <<_ACEOF |
| 5331 | #line $LINENO "configure" |
| 5332 | #include "confdefs.h" |
| 5333 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5334 | #ifdef F77_DUMMY_MAIN |
| 5335 | # ifdef __cplusplus |
| 5336 | extern "C" |
| 5337 | # endif |
| 5338 | int F77_DUMMY_MAIN() { return 1; } |
| 5339 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5340 | int |
| 5341 | main () |
| 5342 | { |
| 5343 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5344 | test_array [0] = 0 |
| 5345 | |
| 5346 | ; |
| 5347 | return 0; |
| 5348 | } |
| 5349 | _ACEOF |
| 5350 | rm -f conftest.$ac_objext |
| 5351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5352 | (eval $ac_compile) 2>&5 |
| 5353 | ac_status=$? |
| 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5355 | (exit $ac_status); } && |
| 5356 | { ac_try='test -s conftest.$ac_objext' |
| 5357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5358 | (eval $ac_try) 2>&5 |
| 5359 | ac_status=$? |
| 5360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5361 | (exit $ac_status); }; }; then |
| 5362 | ac_lo=0 ac_mid=0 |
| 5363 | while :; do |
| 5364 | cat >conftest.$ac_ext <<_ACEOF |
| 5365 | #line $LINENO "configure" |
| 5366 | #include "confdefs.h" |
| 5367 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5368 | #ifdef F77_DUMMY_MAIN |
| 5369 | # ifdef __cplusplus |
| 5370 | extern "C" |
| 5371 | # endif |
| 5372 | int F77_DUMMY_MAIN() { return 1; } |
| 5373 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5374 | int |
| 5375 | main () |
| 5376 | { |
| 5377 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5378 | test_array [0] = 0 |
| 5379 | |
| 5380 | ; |
| 5381 | return 0; |
| 5382 | } |
| 5383 | _ACEOF |
| 5384 | rm -f conftest.$ac_objext |
| 5385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5386 | (eval $ac_compile) 2>&5 |
| 5387 | ac_status=$? |
| 5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5389 | (exit $ac_status); } && |
| 5390 | { ac_try='test -s conftest.$ac_objext' |
| 5391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5392 | (eval $ac_try) 2>&5 |
| 5393 | ac_status=$? |
| 5394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5395 | (exit $ac_status); }; }; then |
| 5396 | ac_hi=$ac_mid; break |
| 5397 | else |
| 5398 | echo "$as_me: failed program was:" >&5 |
| 5399 | cat conftest.$ac_ext >&5 |
| 5400 | ac_lo=`expr $ac_mid + 1` |
| 5401 | if test $ac_lo -le $ac_mid; then |
| 5402 | ac_lo= ac_hi= |
| 5403 | break |
| 5404 | fi |
| 5405 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5406 | fi |
| 5407 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5408 | done |
| 5409 | else |
| 5410 | echo "$as_me: failed program was:" >&5 |
| 5411 | cat conftest.$ac_ext >&5 |
| 5412 | cat >conftest.$ac_ext <<_ACEOF |
| 5413 | #line $LINENO "configure" |
| 5414 | #include "confdefs.h" |
| 5415 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5416 | #ifdef F77_DUMMY_MAIN |
| 5417 | # ifdef __cplusplus |
| 5418 | extern "C" |
| 5419 | # endif |
| 5420 | int F77_DUMMY_MAIN() { return 1; } |
| 5421 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5422 | int |
| 5423 | main () |
| 5424 | { |
| 5425 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5426 | test_array [0] = 0 |
| 5427 | |
| 5428 | ; |
| 5429 | return 0; |
| 5430 | } |
| 5431 | _ACEOF |
| 5432 | rm -f conftest.$ac_objext |
| 5433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5434 | (eval $ac_compile) 2>&5 |
| 5435 | ac_status=$? |
| 5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5437 | (exit $ac_status); } && |
| 5438 | { ac_try='test -s conftest.$ac_objext' |
| 5439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5440 | (eval $ac_try) 2>&5 |
| 5441 | ac_status=$? |
| 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5443 | (exit $ac_status); }; }; then |
| 5444 | ac_hi=-1 ac_mid=-1 |
| 5445 | while :; do |
| 5446 | cat >conftest.$ac_ext <<_ACEOF |
| 5447 | #line $LINENO "configure" |
| 5448 | #include "confdefs.h" |
| 5449 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5450 | #ifdef F77_DUMMY_MAIN |
| 5451 | # ifdef __cplusplus |
| 5452 | extern "C" |
| 5453 | # endif |
| 5454 | int F77_DUMMY_MAIN() { return 1; } |
| 5455 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5456 | int |
| 5457 | main () |
| 5458 | { |
| 5459 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5460 | test_array [0] = 0 |
| 5461 | |
| 5462 | ; |
| 5463 | return 0; |
| 5464 | } |
| 5465 | _ACEOF |
| 5466 | rm -f conftest.$ac_objext |
| 5467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5468 | (eval $ac_compile) 2>&5 |
| 5469 | ac_status=$? |
| 5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5471 | (exit $ac_status); } && |
| 5472 | { ac_try='test -s conftest.$ac_objext' |
| 5473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5474 | (eval $ac_try) 2>&5 |
| 5475 | ac_status=$? |
| 5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5477 | (exit $ac_status); }; }; then |
| 5478 | ac_lo=$ac_mid; break |
| 5479 | else |
| 5480 | echo "$as_me: failed program was:" >&5 |
| 5481 | cat conftest.$ac_ext >&5 |
| 5482 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5483 | if test $ac_mid -le $ac_hi; then |
| 5484 | ac_lo= ac_hi= |
| 5485 | break |
| 5486 | fi |
| 5487 | ac_mid=`expr 2 '*' $ac_mid` |
| 5488 | fi |
| 5489 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5490 | done |
| 5491 | else |
| 5492 | echo "$as_me: failed program was:" >&5 |
| 5493 | cat conftest.$ac_ext >&5 |
| 5494 | ac_lo= ac_hi= |
| 5495 | fi |
| 5496 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5497 | fi |
| 5498 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5499 | # Binary search between lo and hi bounds. |
| 5500 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5501 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5502 | cat >conftest.$ac_ext <<_ACEOF |
| 5503 | #line $LINENO "configure" |
| 5504 | #include "confdefs.h" |
| 5505 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5506 | #ifdef F77_DUMMY_MAIN |
| 5507 | # ifdef __cplusplus |
| 5508 | extern "C" |
| 5509 | # endif |
| 5510 | int F77_DUMMY_MAIN() { return 1; } |
| 5511 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5512 | int |
| 5513 | main () |
| 5514 | { |
| 5515 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5516 | test_array [0] = 0 |
| 5517 | |
| 5518 | ; |
| 5519 | return 0; |
| 5520 | } |
| 5521 | _ACEOF |
| 5522 | rm -f conftest.$ac_objext |
| 5523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5524 | (eval $ac_compile) 2>&5 |
| 5525 | ac_status=$? |
| 5526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5527 | (exit $ac_status); } && |
| 5528 | { ac_try='test -s conftest.$ac_objext' |
| 5529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5530 | (eval $ac_try) 2>&5 |
| 5531 | ac_status=$? |
| 5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5533 | (exit $ac_status); }; }; then |
| 5534 | ac_hi=$ac_mid |
| 5535 | else |
| 5536 | echo "$as_me: failed program was:" >&5 |
| 5537 | cat conftest.$ac_ext >&5 |
| 5538 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5539 | fi |
| 5540 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5541 | done |
| 5542 | case $ac_lo in |
| 5543 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5544 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5545 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5546 | { (exit 1); exit 1; }; } ;; |
| 5547 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5548 | else |
| 5549 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5550 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5551 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5552 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5554 | cat >conftest.$ac_ext <<_ACEOF |
| 5555 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5556 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5557 | $ac_includes_default |
| 5558 | long longval () { return (long) (sizeof (int)); } |
| 5559 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5560 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5561 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5562 | #ifdef F77_DUMMY_MAIN |
| 5563 | # ifdef __cplusplus |
| 5564 | extern "C" |
| 5565 | # endif |
| 5566 | int F77_DUMMY_MAIN() { return 1; } |
| 5567 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5568 | int |
| 5569 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5570 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5571 | |
| 5572 | FILE *f = fopen ("conftest.val", "w"); |
| 5573 | if (! f) |
| 5574 | exit (1); |
| 5575 | if (((long) (sizeof (int))) < 0) |
| 5576 | { |
| 5577 | long i = longval (); |
| 5578 | if (i != ((long) (sizeof (int)))) |
| 5579 | exit (1); |
| 5580 | fprintf (f, "%ld\n", i); |
| 5581 | } |
| 5582 | else |
| 5583 | { |
| 5584 | unsigned long i = ulongval (); |
| 5585 | if (i != ((long) (sizeof (int)))) |
| 5586 | exit (1); |
| 5587 | fprintf (f, "%lu\n", i); |
| 5588 | } |
| 5589 | exit (ferror (f) || fclose (f) != 0); |
| 5590 | |
| 5591 | ; |
| 5592 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5593 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5594 | _ACEOF |
| 5595 | rm -f conftest$ac_exeext |
| 5596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5597 | (eval $ac_link) 2>&5 |
| 5598 | ac_status=$? |
| 5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5602 | (eval $ac_try) 2>&5 |
| 5603 | ac_status=$? |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); }; }; then |
| 5606 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5608 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5609 | echo "$as_me: failed program was:" >&5 |
| 5610 | cat conftest.$ac_ext >&5 |
| 5611 | ( exit $ac_status ) |
| 5612 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5613 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5614 | { (exit 1); exit 1; }; } |
| 5615 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5616 | 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] | 5617 | fi |
| 5618 | fi |
| 5619 | rm -f conftest.val |
| 5620 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5621 | ac_cv_sizeof_int=0 |
| 5622 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5623 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5624 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5625 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5626 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5627 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5628 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5629 | |
| 5630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5631 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5632 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5633 | if test "${ac_cv_type_long+set}" = set; then |
| 5634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5635 | else |
| 5636 | cat >conftest.$ac_ext <<_ACEOF |
| 5637 | #line $LINENO "configure" |
| 5638 | #include "confdefs.h" |
| 5639 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5640 | #ifdef F77_DUMMY_MAIN |
| 5641 | # ifdef __cplusplus |
| 5642 | extern "C" |
| 5643 | # endif |
| 5644 | int F77_DUMMY_MAIN() { return 1; } |
| 5645 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5646 | int |
| 5647 | main () |
| 5648 | { |
| 5649 | if ((long *) 0) |
| 5650 | return 0; |
| 5651 | if (sizeof (long)) |
| 5652 | return 0; |
| 5653 | ; |
| 5654 | return 0; |
| 5655 | } |
| 5656 | _ACEOF |
| 5657 | rm -f conftest.$ac_objext |
| 5658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5659 | (eval $ac_compile) 2>&5 |
| 5660 | ac_status=$? |
| 5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5662 | (exit $ac_status); } && |
| 5663 | { ac_try='test -s conftest.$ac_objext' |
| 5664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5665 | (eval $ac_try) 2>&5 |
| 5666 | ac_status=$? |
| 5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5668 | (exit $ac_status); }; }; then |
| 5669 | ac_cv_type_long=yes |
| 5670 | else |
| 5671 | echo "$as_me: failed program was:" >&5 |
| 5672 | cat conftest.$ac_ext >&5 |
| 5673 | ac_cv_type_long=no |
| 5674 | fi |
| 5675 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5676 | fi |
| 5677 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5678 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5679 | |
| 5680 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5681 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5682 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5684 | else |
| 5685 | if test "$ac_cv_type_long" = yes; then |
| 5686 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5687 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5688 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5689 | # This bug is HP SR number 8606223364. |
| 5690 | if test "$cross_compiling" = yes; then |
| 5691 | # Depending upon the size, compute the lo and hi bounds. |
| 5692 | cat >conftest.$ac_ext <<_ACEOF |
| 5693 | #line $LINENO "configure" |
| 5694 | #include "confdefs.h" |
| 5695 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5696 | #ifdef F77_DUMMY_MAIN |
| 5697 | # ifdef __cplusplus |
| 5698 | extern "C" |
| 5699 | # endif |
| 5700 | int F77_DUMMY_MAIN() { return 1; } |
| 5701 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5702 | int |
| 5703 | main () |
| 5704 | { |
| 5705 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5706 | test_array [0] = 0 |
| 5707 | |
| 5708 | ; |
| 5709 | return 0; |
| 5710 | } |
| 5711 | _ACEOF |
| 5712 | rm -f conftest.$ac_objext |
| 5713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5714 | (eval $ac_compile) 2>&5 |
| 5715 | ac_status=$? |
| 5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5717 | (exit $ac_status); } && |
| 5718 | { ac_try='test -s conftest.$ac_objext' |
| 5719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5720 | (eval $ac_try) 2>&5 |
| 5721 | ac_status=$? |
| 5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5723 | (exit $ac_status); }; }; then |
| 5724 | ac_lo=0 ac_mid=0 |
| 5725 | while :; do |
| 5726 | cat >conftest.$ac_ext <<_ACEOF |
| 5727 | #line $LINENO "configure" |
| 5728 | #include "confdefs.h" |
| 5729 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5730 | #ifdef F77_DUMMY_MAIN |
| 5731 | # ifdef __cplusplus |
| 5732 | extern "C" |
| 5733 | # endif |
| 5734 | int F77_DUMMY_MAIN() { return 1; } |
| 5735 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5736 | int |
| 5737 | main () |
| 5738 | { |
| 5739 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5740 | test_array [0] = 0 |
| 5741 | |
| 5742 | ; |
| 5743 | return 0; |
| 5744 | } |
| 5745 | _ACEOF |
| 5746 | rm -f conftest.$ac_objext |
| 5747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5748 | (eval $ac_compile) 2>&5 |
| 5749 | ac_status=$? |
| 5750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5751 | (exit $ac_status); } && |
| 5752 | { ac_try='test -s conftest.$ac_objext' |
| 5753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5754 | (eval $ac_try) 2>&5 |
| 5755 | ac_status=$? |
| 5756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5757 | (exit $ac_status); }; }; then |
| 5758 | ac_hi=$ac_mid; break |
| 5759 | else |
| 5760 | echo "$as_me: failed program was:" >&5 |
| 5761 | cat conftest.$ac_ext >&5 |
| 5762 | ac_lo=`expr $ac_mid + 1` |
| 5763 | if test $ac_lo -le $ac_mid; then |
| 5764 | ac_lo= ac_hi= |
| 5765 | break |
| 5766 | fi |
| 5767 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5768 | fi |
| 5769 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5770 | done |
| 5771 | else |
| 5772 | echo "$as_me: failed program was:" >&5 |
| 5773 | cat conftest.$ac_ext >&5 |
| 5774 | cat >conftest.$ac_ext <<_ACEOF |
| 5775 | #line $LINENO "configure" |
| 5776 | #include "confdefs.h" |
| 5777 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5778 | #ifdef F77_DUMMY_MAIN |
| 5779 | # ifdef __cplusplus |
| 5780 | extern "C" |
| 5781 | # endif |
| 5782 | int F77_DUMMY_MAIN() { return 1; } |
| 5783 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5784 | int |
| 5785 | main () |
| 5786 | { |
| 5787 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5788 | test_array [0] = 0 |
| 5789 | |
| 5790 | ; |
| 5791 | return 0; |
| 5792 | } |
| 5793 | _ACEOF |
| 5794 | rm -f conftest.$ac_objext |
| 5795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5796 | (eval $ac_compile) 2>&5 |
| 5797 | ac_status=$? |
| 5798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5799 | (exit $ac_status); } && |
| 5800 | { ac_try='test -s conftest.$ac_objext' |
| 5801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5802 | (eval $ac_try) 2>&5 |
| 5803 | ac_status=$? |
| 5804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5805 | (exit $ac_status); }; }; then |
| 5806 | ac_hi=-1 ac_mid=-1 |
| 5807 | while :; do |
| 5808 | cat >conftest.$ac_ext <<_ACEOF |
| 5809 | #line $LINENO "configure" |
| 5810 | #include "confdefs.h" |
| 5811 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5812 | #ifdef F77_DUMMY_MAIN |
| 5813 | # ifdef __cplusplus |
| 5814 | extern "C" |
| 5815 | # endif |
| 5816 | int F77_DUMMY_MAIN() { return 1; } |
| 5817 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5818 | int |
| 5819 | main () |
| 5820 | { |
| 5821 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5822 | test_array [0] = 0 |
| 5823 | |
| 5824 | ; |
| 5825 | return 0; |
| 5826 | } |
| 5827 | _ACEOF |
| 5828 | rm -f conftest.$ac_objext |
| 5829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5830 | (eval $ac_compile) 2>&5 |
| 5831 | ac_status=$? |
| 5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5833 | (exit $ac_status); } && |
| 5834 | { ac_try='test -s conftest.$ac_objext' |
| 5835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5836 | (eval $ac_try) 2>&5 |
| 5837 | ac_status=$? |
| 5838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5839 | (exit $ac_status); }; }; then |
| 5840 | ac_lo=$ac_mid; break |
| 5841 | else |
| 5842 | echo "$as_me: failed program was:" >&5 |
| 5843 | cat conftest.$ac_ext >&5 |
| 5844 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5845 | if test $ac_mid -le $ac_hi; then |
| 5846 | ac_lo= ac_hi= |
| 5847 | break |
| 5848 | fi |
| 5849 | ac_mid=`expr 2 '*' $ac_mid` |
| 5850 | fi |
| 5851 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5852 | done |
| 5853 | else |
| 5854 | echo "$as_me: failed program was:" >&5 |
| 5855 | cat conftest.$ac_ext >&5 |
| 5856 | ac_lo= ac_hi= |
| 5857 | fi |
| 5858 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5859 | fi |
| 5860 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5861 | # Binary search between lo and hi bounds. |
| 5862 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5863 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5864 | cat >conftest.$ac_ext <<_ACEOF |
| 5865 | #line $LINENO "configure" |
| 5866 | #include "confdefs.h" |
| 5867 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5868 | #ifdef F77_DUMMY_MAIN |
| 5869 | # ifdef __cplusplus |
| 5870 | extern "C" |
| 5871 | # endif |
| 5872 | int F77_DUMMY_MAIN() { return 1; } |
| 5873 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5874 | int |
| 5875 | main () |
| 5876 | { |
| 5877 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5878 | test_array [0] = 0 |
| 5879 | |
| 5880 | ; |
| 5881 | return 0; |
| 5882 | } |
| 5883 | _ACEOF |
| 5884 | rm -f conftest.$ac_objext |
| 5885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5886 | (eval $ac_compile) 2>&5 |
| 5887 | ac_status=$? |
| 5888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5889 | (exit $ac_status); } && |
| 5890 | { ac_try='test -s conftest.$ac_objext' |
| 5891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5892 | (eval $ac_try) 2>&5 |
| 5893 | ac_status=$? |
| 5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5895 | (exit $ac_status); }; }; then |
| 5896 | ac_hi=$ac_mid |
| 5897 | else |
| 5898 | echo "$as_me: failed program was:" >&5 |
| 5899 | cat conftest.$ac_ext >&5 |
| 5900 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5901 | fi |
| 5902 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5903 | done |
| 5904 | case $ac_lo in |
| 5905 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5906 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5907 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5908 | { (exit 1); exit 1; }; } ;; |
| 5909 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5910 | else |
| 5911 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5912 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5913 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5914 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5915 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5916 | cat >conftest.$ac_ext <<_ACEOF |
| 5917 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5918 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5919 | $ac_includes_default |
| 5920 | long longval () { return (long) (sizeof (long)); } |
| 5921 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5922 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5923 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5924 | #ifdef F77_DUMMY_MAIN |
| 5925 | # ifdef __cplusplus |
| 5926 | extern "C" |
| 5927 | # endif |
| 5928 | int F77_DUMMY_MAIN() { return 1; } |
| 5929 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5930 | int |
| 5931 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5932 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5933 | |
| 5934 | FILE *f = fopen ("conftest.val", "w"); |
| 5935 | if (! f) |
| 5936 | exit (1); |
| 5937 | if (((long) (sizeof (long))) < 0) |
| 5938 | { |
| 5939 | long i = longval (); |
| 5940 | if (i != ((long) (sizeof (long)))) |
| 5941 | exit (1); |
| 5942 | fprintf (f, "%ld\n", i); |
| 5943 | } |
| 5944 | else |
| 5945 | { |
| 5946 | unsigned long i = ulongval (); |
| 5947 | if (i != ((long) (sizeof (long)))) |
| 5948 | exit (1); |
| 5949 | fprintf (f, "%lu\n", i); |
| 5950 | } |
| 5951 | exit (ferror (f) || fclose (f) != 0); |
| 5952 | |
| 5953 | ; |
| 5954 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5955 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5956 | _ACEOF |
| 5957 | rm -f conftest$ac_exeext |
| 5958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5959 | (eval $ac_link) 2>&5 |
| 5960 | ac_status=$? |
| 5961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5962 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5964 | (eval $ac_try) 2>&5 |
| 5965 | ac_status=$? |
| 5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5967 | (exit $ac_status); }; }; then |
| 5968 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5970 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5971 | echo "$as_me: failed program was:" >&5 |
| 5972 | cat conftest.$ac_ext >&5 |
| 5973 | ( exit $ac_status ) |
| 5974 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5975 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5976 | { (exit 1); exit 1; }; } |
| 5977 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5978 | 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] | 5979 | fi |
| 5980 | fi |
| 5981 | rm -f conftest.val |
| 5982 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5983 | ac_cv_sizeof_long=0 |
| 5984 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5985 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5986 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5987 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5988 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5989 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5990 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5991 | |
| 5992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5993 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5994 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5995 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5997 | else |
| 5998 | cat >conftest.$ac_ext <<_ACEOF |
| 5999 | #line $LINENO "configure" |
| 6000 | #include "confdefs.h" |
| 6001 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6002 | #ifdef F77_DUMMY_MAIN |
| 6003 | # ifdef __cplusplus |
| 6004 | extern "C" |
| 6005 | # endif |
| 6006 | int F77_DUMMY_MAIN() { return 1; } |
| 6007 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6008 | int |
| 6009 | main () |
| 6010 | { |
| 6011 | if ((void * *) 0) |
| 6012 | return 0; |
| 6013 | if (sizeof (void *)) |
| 6014 | return 0; |
| 6015 | ; |
| 6016 | return 0; |
| 6017 | } |
| 6018 | _ACEOF |
| 6019 | rm -f conftest.$ac_objext |
| 6020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6021 | (eval $ac_compile) 2>&5 |
| 6022 | ac_status=$? |
| 6023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6024 | (exit $ac_status); } && |
| 6025 | { ac_try='test -s conftest.$ac_objext' |
| 6026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6027 | (eval $ac_try) 2>&5 |
| 6028 | ac_status=$? |
| 6029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6030 | (exit $ac_status); }; }; then |
| 6031 | ac_cv_type_void_p=yes |
| 6032 | else |
| 6033 | echo "$as_me: failed program was:" >&5 |
| 6034 | cat conftest.$ac_ext >&5 |
| 6035 | ac_cv_type_void_p=no |
| 6036 | fi |
| 6037 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6038 | fi |
| 6039 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6040 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6041 | |
| 6042 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6043 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6044 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6046 | else |
| 6047 | if test "$ac_cv_type_void_p" = yes; then |
| 6048 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6049 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6050 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6051 | # This bug is HP SR number 8606223364. |
| 6052 | if test "$cross_compiling" = yes; then |
| 6053 | # Depending upon the size, compute the lo and hi bounds. |
| 6054 | cat >conftest.$ac_ext <<_ACEOF |
| 6055 | #line $LINENO "configure" |
| 6056 | #include "confdefs.h" |
| 6057 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6058 | #ifdef F77_DUMMY_MAIN |
| 6059 | # ifdef __cplusplus |
| 6060 | extern "C" |
| 6061 | # endif |
| 6062 | int F77_DUMMY_MAIN() { return 1; } |
| 6063 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6064 | int |
| 6065 | main () |
| 6066 | { |
| 6067 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6068 | test_array [0] = 0 |
| 6069 | |
| 6070 | ; |
| 6071 | return 0; |
| 6072 | } |
| 6073 | _ACEOF |
| 6074 | rm -f conftest.$ac_objext |
| 6075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6076 | (eval $ac_compile) 2>&5 |
| 6077 | ac_status=$? |
| 6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6079 | (exit $ac_status); } && |
| 6080 | { ac_try='test -s conftest.$ac_objext' |
| 6081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6082 | (eval $ac_try) 2>&5 |
| 6083 | ac_status=$? |
| 6084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6085 | (exit $ac_status); }; }; then |
| 6086 | ac_lo=0 ac_mid=0 |
| 6087 | while :; do |
| 6088 | cat >conftest.$ac_ext <<_ACEOF |
| 6089 | #line $LINENO "configure" |
| 6090 | #include "confdefs.h" |
| 6091 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6092 | #ifdef F77_DUMMY_MAIN |
| 6093 | # ifdef __cplusplus |
| 6094 | extern "C" |
| 6095 | # endif |
| 6096 | int F77_DUMMY_MAIN() { return 1; } |
| 6097 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6098 | int |
| 6099 | main () |
| 6100 | { |
| 6101 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6102 | test_array [0] = 0 |
| 6103 | |
| 6104 | ; |
| 6105 | return 0; |
| 6106 | } |
| 6107 | _ACEOF |
| 6108 | rm -f conftest.$ac_objext |
| 6109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6110 | (eval $ac_compile) 2>&5 |
| 6111 | ac_status=$? |
| 6112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6113 | (exit $ac_status); } && |
| 6114 | { ac_try='test -s conftest.$ac_objext' |
| 6115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6116 | (eval $ac_try) 2>&5 |
| 6117 | ac_status=$? |
| 6118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6119 | (exit $ac_status); }; }; then |
| 6120 | ac_hi=$ac_mid; break |
| 6121 | else |
| 6122 | echo "$as_me: failed program was:" >&5 |
| 6123 | cat conftest.$ac_ext >&5 |
| 6124 | ac_lo=`expr $ac_mid + 1` |
| 6125 | if test $ac_lo -le $ac_mid; then |
| 6126 | ac_lo= ac_hi= |
| 6127 | break |
| 6128 | fi |
| 6129 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6130 | fi |
| 6131 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6132 | done |
| 6133 | else |
| 6134 | echo "$as_me: failed program was:" >&5 |
| 6135 | cat conftest.$ac_ext >&5 |
| 6136 | cat >conftest.$ac_ext <<_ACEOF |
| 6137 | #line $LINENO "configure" |
| 6138 | #include "confdefs.h" |
| 6139 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6140 | #ifdef F77_DUMMY_MAIN |
| 6141 | # ifdef __cplusplus |
| 6142 | extern "C" |
| 6143 | # endif |
| 6144 | int F77_DUMMY_MAIN() { return 1; } |
| 6145 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6146 | int |
| 6147 | main () |
| 6148 | { |
| 6149 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6150 | test_array [0] = 0 |
| 6151 | |
| 6152 | ; |
| 6153 | return 0; |
| 6154 | } |
| 6155 | _ACEOF |
| 6156 | rm -f conftest.$ac_objext |
| 6157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6158 | (eval $ac_compile) 2>&5 |
| 6159 | ac_status=$? |
| 6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6161 | (exit $ac_status); } && |
| 6162 | { ac_try='test -s conftest.$ac_objext' |
| 6163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6164 | (eval $ac_try) 2>&5 |
| 6165 | ac_status=$? |
| 6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6167 | (exit $ac_status); }; }; then |
| 6168 | ac_hi=-1 ac_mid=-1 |
| 6169 | while :; do |
| 6170 | cat >conftest.$ac_ext <<_ACEOF |
| 6171 | #line $LINENO "configure" |
| 6172 | #include "confdefs.h" |
| 6173 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6174 | #ifdef F77_DUMMY_MAIN |
| 6175 | # ifdef __cplusplus |
| 6176 | extern "C" |
| 6177 | # endif |
| 6178 | int F77_DUMMY_MAIN() { return 1; } |
| 6179 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6180 | int |
| 6181 | main () |
| 6182 | { |
| 6183 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6184 | test_array [0] = 0 |
| 6185 | |
| 6186 | ; |
| 6187 | return 0; |
| 6188 | } |
| 6189 | _ACEOF |
| 6190 | rm -f conftest.$ac_objext |
| 6191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6192 | (eval $ac_compile) 2>&5 |
| 6193 | ac_status=$? |
| 6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6195 | (exit $ac_status); } && |
| 6196 | { ac_try='test -s conftest.$ac_objext' |
| 6197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6198 | (eval $ac_try) 2>&5 |
| 6199 | ac_status=$? |
| 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6201 | (exit $ac_status); }; }; then |
| 6202 | ac_lo=$ac_mid; break |
| 6203 | else |
| 6204 | echo "$as_me: failed program was:" >&5 |
| 6205 | cat conftest.$ac_ext >&5 |
| 6206 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6207 | if test $ac_mid -le $ac_hi; then |
| 6208 | ac_lo= ac_hi= |
| 6209 | break |
| 6210 | fi |
| 6211 | ac_mid=`expr 2 '*' $ac_mid` |
| 6212 | fi |
| 6213 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6214 | done |
| 6215 | else |
| 6216 | echo "$as_me: failed program was:" >&5 |
| 6217 | cat conftest.$ac_ext >&5 |
| 6218 | ac_lo= ac_hi= |
| 6219 | fi |
| 6220 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6221 | fi |
| 6222 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6223 | # Binary search between lo and hi bounds. |
| 6224 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6225 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6226 | cat >conftest.$ac_ext <<_ACEOF |
| 6227 | #line $LINENO "configure" |
| 6228 | #include "confdefs.h" |
| 6229 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6230 | #ifdef F77_DUMMY_MAIN |
| 6231 | # ifdef __cplusplus |
| 6232 | extern "C" |
| 6233 | # endif |
| 6234 | int F77_DUMMY_MAIN() { return 1; } |
| 6235 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6236 | int |
| 6237 | main () |
| 6238 | { |
| 6239 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6240 | test_array [0] = 0 |
| 6241 | |
| 6242 | ; |
| 6243 | return 0; |
| 6244 | } |
| 6245 | _ACEOF |
| 6246 | rm -f conftest.$ac_objext |
| 6247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6248 | (eval $ac_compile) 2>&5 |
| 6249 | ac_status=$? |
| 6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6251 | (exit $ac_status); } && |
| 6252 | { ac_try='test -s conftest.$ac_objext' |
| 6253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6254 | (eval $ac_try) 2>&5 |
| 6255 | ac_status=$? |
| 6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6257 | (exit $ac_status); }; }; then |
| 6258 | ac_hi=$ac_mid |
| 6259 | else |
| 6260 | echo "$as_me: failed program was:" >&5 |
| 6261 | cat conftest.$ac_ext >&5 |
| 6262 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6263 | fi |
| 6264 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6265 | done |
| 6266 | case $ac_lo in |
| 6267 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6268 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6269 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6270 | { (exit 1); exit 1; }; } ;; |
| 6271 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6272 | else |
| 6273 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6274 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6275 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6276 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6278 | cat >conftest.$ac_ext <<_ACEOF |
| 6279 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6280 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6281 | $ac_includes_default |
| 6282 | long longval () { return (long) (sizeof (void *)); } |
| 6283 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6284 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6285 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6286 | #ifdef F77_DUMMY_MAIN |
| 6287 | # ifdef __cplusplus |
| 6288 | extern "C" |
| 6289 | # endif |
| 6290 | int F77_DUMMY_MAIN() { return 1; } |
| 6291 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6292 | int |
| 6293 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6294 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6295 | |
| 6296 | FILE *f = fopen ("conftest.val", "w"); |
| 6297 | if (! f) |
| 6298 | exit (1); |
| 6299 | if (((long) (sizeof (void *))) < 0) |
| 6300 | { |
| 6301 | long i = longval (); |
| 6302 | if (i != ((long) (sizeof (void *)))) |
| 6303 | exit (1); |
| 6304 | fprintf (f, "%ld\n", i); |
| 6305 | } |
| 6306 | else |
| 6307 | { |
| 6308 | unsigned long i = ulongval (); |
| 6309 | if (i != ((long) (sizeof (void *)))) |
| 6310 | exit (1); |
| 6311 | fprintf (f, "%lu\n", i); |
| 6312 | } |
| 6313 | exit (ferror (f) || fclose (f) != 0); |
| 6314 | |
| 6315 | ; |
| 6316 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6317 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6318 | _ACEOF |
| 6319 | rm -f conftest$ac_exeext |
| 6320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6321 | (eval $ac_link) 2>&5 |
| 6322 | ac_status=$? |
| 6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6326 | (eval $ac_try) 2>&5 |
| 6327 | ac_status=$? |
| 6328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6329 | (exit $ac_status); }; }; then |
| 6330 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6332 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6333 | echo "$as_me: failed program was:" >&5 |
| 6334 | cat conftest.$ac_ext >&5 |
| 6335 | ( exit $ac_status ) |
| 6336 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6337 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6338 | { (exit 1); exit 1; }; } |
| 6339 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6340 | 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] | 6341 | fi |
| 6342 | fi |
| 6343 | rm -f conftest.val |
| 6344 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6345 | ac_cv_sizeof_void_p=0 |
| 6346 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6347 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6348 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6349 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6350 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6351 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6352 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6353 | |
| 6354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6355 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6356 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6357 | if test "${ac_cv_type_char+set}" = set; then |
| 6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6359 | else |
| 6360 | cat >conftest.$ac_ext <<_ACEOF |
| 6361 | #line $LINENO "configure" |
| 6362 | #include "confdefs.h" |
| 6363 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6364 | #ifdef F77_DUMMY_MAIN |
| 6365 | # ifdef __cplusplus |
| 6366 | extern "C" |
| 6367 | # endif |
| 6368 | int F77_DUMMY_MAIN() { return 1; } |
| 6369 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6370 | int |
| 6371 | main () |
| 6372 | { |
| 6373 | if ((char *) 0) |
| 6374 | return 0; |
| 6375 | if (sizeof (char)) |
| 6376 | return 0; |
| 6377 | ; |
| 6378 | return 0; |
| 6379 | } |
| 6380 | _ACEOF |
| 6381 | rm -f conftest.$ac_objext |
| 6382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6383 | (eval $ac_compile) 2>&5 |
| 6384 | ac_status=$? |
| 6385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6386 | (exit $ac_status); } && |
| 6387 | { ac_try='test -s conftest.$ac_objext' |
| 6388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6389 | (eval $ac_try) 2>&5 |
| 6390 | ac_status=$? |
| 6391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6392 | (exit $ac_status); }; }; then |
| 6393 | ac_cv_type_char=yes |
| 6394 | else |
| 6395 | echo "$as_me: failed program was:" >&5 |
| 6396 | cat conftest.$ac_ext >&5 |
| 6397 | ac_cv_type_char=no |
| 6398 | fi |
| 6399 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6400 | fi |
| 6401 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6402 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6403 | |
| 6404 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6405 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6406 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6408 | else |
| 6409 | if test "$ac_cv_type_char" = yes; then |
| 6410 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6411 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6412 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6413 | # This bug is HP SR number 8606223364. |
| 6414 | if test "$cross_compiling" = yes; then |
| 6415 | # Depending upon the size, compute the lo and hi bounds. |
| 6416 | cat >conftest.$ac_ext <<_ACEOF |
| 6417 | #line $LINENO "configure" |
| 6418 | #include "confdefs.h" |
| 6419 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6420 | #ifdef F77_DUMMY_MAIN |
| 6421 | # ifdef __cplusplus |
| 6422 | extern "C" |
| 6423 | # endif |
| 6424 | int F77_DUMMY_MAIN() { return 1; } |
| 6425 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6426 | int |
| 6427 | main () |
| 6428 | { |
| 6429 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6430 | test_array [0] = 0 |
| 6431 | |
| 6432 | ; |
| 6433 | return 0; |
| 6434 | } |
| 6435 | _ACEOF |
| 6436 | rm -f conftest.$ac_objext |
| 6437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6438 | (eval $ac_compile) 2>&5 |
| 6439 | ac_status=$? |
| 6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6441 | (exit $ac_status); } && |
| 6442 | { ac_try='test -s conftest.$ac_objext' |
| 6443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6444 | (eval $ac_try) 2>&5 |
| 6445 | ac_status=$? |
| 6446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6447 | (exit $ac_status); }; }; then |
| 6448 | ac_lo=0 ac_mid=0 |
| 6449 | while :; do |
| 6450 | cat >conftest.$ac_ext <<_ACEOF |
| 6451 | #line $LINENO "configure" |
| 6452 | #include "confdefs.h" |
| 6453 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6454 | #ifdef F77_DUMMY_MAIN |
| 6455 | # ifdef __cplusplus |
| 6456 | extern "C" |
| 6457 | # endif |
| 6458 | int F77_DUMMY_MAIN() { return 1; } |
| 6459 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6460 | int |
| 6461 | main () |
| 6462 | { |
| 6463 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6464 | test_array [0] = 0 |
| 6465 | |
| 6466 | ; |
| 6467 | return 0; |
| 6468 | } |
| 6469 | _ACEOF |
| 6470 | rm -f conftest.$ac_objext |
| 6471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6472 | (eval $ac_compile) 2>&5 |
| 6473 | ac_status=$? |
| 6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6475 | (exit $ac_status); } && |
| 6476 | { ac_try='test -s conftest.$ac_objext' |
| 6477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6478 | (eval $ac_try) 2>&5 |
| 6479 | ac_status=$? |
| 6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6481 | (exit $ac_status); }; }; then |
| 6482 | ac_hi=$ac_mid; break |
| 6483 | else |
| 6484 | echo "$as_me: failed program was:" >&5 |
| 6485 | cat conftest.$ac_ext >&5 |
| 6486 | ac_lo=`expr $ac_mid + 1` |
| 6487 | if test $ac_lo -le $ac_mid; then |
| 6488 | ac_lo= ac_hi= |
| 6489 | break |
| 6490 | fi |
| 6491 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6492 | fi |
| 6493 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6494 | done |
| 6495 | else |
| 6496 | echo "$as_me: failed program was:" >&5 |
| 6497 | cat conftest.$ac_ext >&5 |
| 6498 | cat >conftest.$ac_ext <<_ACEOF |
| 6499 | #line $LINENO "configure" |
| 6500 | #include "confdefs.h" |
| 6501 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6502 | #ifdef F77_DUMMY_MAIN |
| 6503 | # ifdef __cplusplus |
| 6504 | extern "C" |
| 6505 | # endif |
| 6506 | int F77_DUMMY_MAIN() { return 1; } |
| 6507 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6508 | int |
| 6509 | main () |
| 6510 | { |
| 6511 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6512 | test_array [0] = 0 |
| 6513 | |
| 6514 | ; |
| 6515 | return 0; |
| 6516 | } |
| 6517 | _ACEOF |
| 6518 | rm -f conftest.$ac_objext |
| 6519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6520 | (eval $ac_compile) 2>&5 |
| 6521 | ac_status=$? |
| 6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6523 | (exit $ac_status); } && |
| 6524 | { ac_try='test -s conftest.$ac_objext' |
| 6525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6526 | (eval $ac_try) 2>&5 |
| 6527 | ac_status=$? |
| 6528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6529 | (exit $ac_status); }; }; then |
| 6530 | ac_hi=-1 ac_mid=-1 |
| 6531 | while :; do |
| 6532 | cat >conftest.$ac_ext <<_ACEOF |
| 6533 | #line $LINENO "configure" |
| 6534 | #include "confdefs.h" |
| 6535 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6536 | #ifdef F77_DUMMY_MAIN |
| 6537 | # ifdef __cplusplus |
| 6538 | extern "C" |
| 6539 | # endif |
| 6540 | int F77_DUMMY_MAIN() { return 1; } |
| 6541 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6542 | int |
| 6543 | main () |
| 6544 | { |
| 6545 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6546 | test_array [0] = 0 |
| 6547 | |
| 6548 | ; |
| 6549 | return 0; |
| 6550 | } |
| 6551 | _ACEOF |
| 6552 | rm -f conftest.$ac_objext |
| 6553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6554 | (eval $ac_compile) 2>&5 |
| 6555 | ac_status=$? |
| 6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6557 | (exit $ac_status); } && |
| 6558 | { ac_try='test -s conftest.$ac_objext' |
| 6559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6560 | (eval $ac_try) 2>&5 |
| 6561 | ac_status=$? |
| 6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6563 | (exit $ac_status); }; }; then |
| 6564 | ac_lo=$ac_mid; break |
| 6565 | else |
| 6566 | echo "$as_me: failed program was:" >&5 |
| 6567 | cat conftest.$ac_ext >&5 |
| 6568 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6569 | if test $ac_mid -le $ac_hi; then |
| 6570 | ac_lo= ac_hi= |
| 6571 | break |
| 6572 | fi |
| 6573 | ac_mid=`expr 2 '*' $ac_mid` |
| 6574 | fi |
| 6575 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6576 | done |
| 6577 | else |
| 6578 | echo "$as_me: failed program was:" >&5 |
| 6579 | cat conftest.$ac_ext >&5 |
| 6580 | ac_lo= ac_hi= |
| 6581 | fi |
| 6582 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6583 | fi |
| 6584 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6585 | # Binary search between lo and hi bounds. |
| 6586 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6587 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6588 | cat >conftest.$ac_ext <<_ACEOF |
| 6589 | #line $LINENO "configure" |
| 6590 | #include "confdefs.h" |
| 6591 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6592 | #ifdef F77_DUMMY_MAIN |
| 6593 | # ifdef __cplusplus |
| 6594 | extern "C" |
| 6595 | # endif |
| 6596 | int F77_DUMMY_MAIN() { return 1; } |
| 6597 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6598 | int |
| 6599 | main () |
| 6600 | { |
| 6601 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6602 | test_array [0] = 0 |
| 6603 | |
| 6604 | ; |
| 6605 | return 0; |
| 6606 | } |
| 6607 | _ACEOF |
| 6608 | rm -f conftest.$ac_objext |
| 6609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6610 | (eval $ac_compile) 2>&5 |
| 6611 | ac_status=$? |
| 6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6613 | (exit $ac_status); } && |
| 6614 | { ac_try='test -s conftest.$ac_objext' |
| 6615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6616 | (eval $ac_try) 2>&5 |
| 6617 | ac_status=$? |
| 6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6619 | (exit $ac_status); }; }; then |
| 6620 | ac_hi=$ac_mid |
| 6621 | else |
| 6622 | echo "$as_me: failed program was:" >&5 |
| 6623 | cat conftest.$ac_ext >&5 |
| 6624 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6625 | fi |
| 6626 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6627 | done |
| 6628 | case $ac_lo in |
| 6629 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6630 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6631 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6632 | { (exit 1); exit 1; }; } ;; |
| 6633 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6634 | else |
| 6635 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6636 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6637 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6638 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6640 | cat >conftest.$ac_ext <<_ACEOF |
| 6641 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6642 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6643 | $ac_includes_default |
| 6644 | long longval () { return (long) (sizeof (char)); } |
| 6645 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6646 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6647 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6648 | #ifdef F77_DUMMY_MAIN |
| 6649 | # ifdef __cplusplus |
| 6650 | extern "C" |
| 6651 | # endif |
| 6652 | int F77_DUMMY_MAIN() { return 1; } |
| 6653 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | int |
| 6655 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6656 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6657 | |
| 6658 | FILE *f = fopen ("conftest.val", "w"); |
| 6659 | if (! f) |
| 6660 | exit (1); |
| 6661 | if (((long) (sizeof (char))) < 0) |
| 6662 | { |
| 6663 | long i = longval (); |
| 6664 | if (i != ((long) (sizeof (char)))) |
| 6665 | exit (1); |
| 6666 | fprintf (f, "%ld\n", i); |
| 6667 | } |
| 6668 | else |
| 6669 | { |
| 6670 | unsigned long i = ulongval (); |
| 6671 | if (i != ((long) (sizeof (char)))) |
| 6672 | exit (1); |
| 6673 | fprintf (f, "%lu\n", i); |
| 6674 | } |
| 6675 | exit (ferror (f) || fclose (f) != 0); |
| 6676 | |
| 6677 | ; |
| 6678 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6679 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6680 | _ACEOF |
| 6681 | rm -f conftest$ac_exeext |
| 6682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6683 | (eval $ac_link) 2>&5 |
| 6684 | ac_status=$? |
| 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6688 | (eval $ac_try) 2>&5 |
| 6689 | ac_status=$? |
| 6690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6691 | (exit $ac_status); }; }; then |
| 6692 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6694 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6695 | echo "$as_me: failed program was:" >&5 |
| 6696 | cat conftest.$ac_ext >&5 |
| 6697 | ( exit $ac_status ) |
| 6698 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6699 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6700 | { (exit 1); exit 1; }; } |
| 6701 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6702 | 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] | 6703 | fi |
| 6704 | fi |
| 6705 | rm -f conftest.val |
| 6706 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6707 | ac_cv_sizeof_char=0 |
| 6708 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6709 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6710 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6711 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6712 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6713 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6714 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6715 | |
| 6716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6717 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6718 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6719 | if test "${ac_cv_type_short+set}" = set; then |
| 6720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6721 | else |
| 6722 | cat >conftest.$ac_ext <<_ACEOF |
| 6723 | #line $LINENO "configure" |
| 6724 | #include "confdefs.h" |
| 6725 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6726 | #ifdef F77_DUMMY_MAIN |
| 6727 | # ifdef __cplusplus |
| 6728 | extern "C" |
| 6729 | # endif |
| 6730 | int F77_DUMMY_MAIN() { return 1; } |
| 6731 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6732 | int |
| 6733 | main () |
| 6734 | { |
| 6735 | if ((short *) 0) |
| 6736 | return 0; |
| 6737 | if (sizeof (short)) |
| 6738 | return 0; |
| 6739 | ; |
| 6740 | return 0; |
| 6741 | } |
| 6742 | _ACEOF |
| 6743 | rm -f conftest.$ac_objext |
| 6744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6745 | (eval $ac_compile) 2>&5 |
| 6746 | ac_status=$? |
| 6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6748 | (exit $ac_status); } && |
| 6749 | { ac_try='test -s conftest.$ac_objext' |
| 6750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6751 | (eval $ac_try) 2>&5 |
| 6752 | ac_status=$? |
| 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6754 | (exit $ac_status); }; }; then |
| 6755 | ac_cv_type_short=yes |
| 6756 | else |
| 6757 | echo "$as_me: failed program was:" >&5 |
| 6758 | cat conftest.$ac_ext >&5 |
| 6759 | ac_cv_type_short=no |
| 6760 | fi |
| 6761 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6762 | fi |
| 6763 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6764 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6765 | |
| 6766 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6767 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6768 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6770 | else |
| 6771 | if test "$ac_cv_type_short" = yes; then |
| 6772 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6773 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6774 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6775 | # This bug is HP SR number 8606223364. |
| 6776 | if test "$cross_compiling" = yes; then |
| 6777 | # Depending upon the size, compute the lo and hi bounds. |
| 6778 | cat >conftest.$ac_ext <<_ACEOF |
| 6779 | #line $LINENO "configure" |
| 6780 | #include "confdefs.h" |
| 6781 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6782 | #ifdef F77_DUMMY_MAIN |
| 6783 | # ifdef __cplusplus |
| 6784 | extern "C" |
| 6785 | # endif |
| 6786 | int F77_DUMMY_MAIN() { return 1; } |
| 6787 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6788 | int |
| 6789 | main () |
| 6790 | { |
| 6791 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6792 | test_array [0] = 0 |
| 6793 | |
| 6794 | ; |
| 6795 | return 0; |
| 6796 | } |
| 6797 | _ACEOF |
| 6798 | rm -f conftest.$ac_objext |
| 6799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6800 | (eval $ac_compile) 2>&5 |
| 6801 | ac_status=$? |
| 6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6803 | (exit $ac_status); } && |
| 6804 | { ac_try='test -s conftest.$ac_objext' |
| 6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6806 | (eval $ac_try) 2>&5 |
| 6807 | ac_status=$? |
| 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6809 | (exit $ac_status); }; }; then |
| 6810 | ac_lo=0 ac_mid=0 |
| 6811 | while :; do |
| 6812 | cat >conftest.$ac_ext <<_ACEOF |
| 6813 | #line $LINENO "configure" |
| 6814 | #include "confdefs.h" |
| 6815 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6816 | #ifdef F77_DUMMY_MAIN |
| 6817 | # ifdef __cplusplus |
| 6818 | extern "C" |
| 6819 | # endif |
| 6820 | int F77_DUMMY_MAIN() { return 1; } |
| 6821 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 | int |
| 6823 | main () |
| 6824 | { |
| 6825 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6826 | test_array [0] = 0 |
| 6827 | |
| 6828 | ; |
| 6829 | return 0; |
| 6830 | } |
| 6831 | _ACEOF |
| 6832 | rm -f conftest.$ac_objext |
| 6833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6834 | (eval $ac_compile) 2>&5 |
| 6835 | ac_status=$? |
| 6836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6837 | (exit $ac_status); } && |
| 6838 | { ac_try='test -s conftest.$ac_objext' |
| 6839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6840 | (eval $ac_try) 2>&5 |
| 6841 | ac_status=$? |
| 6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6843 | (exit $ac_status); }; }; then |
| 6844 | ac_hi=$ac_mid; break |
| 6845 | else |
| 6846 | echo "$as_me: failed program was:" >&5 |
| 6847 | cat conftest.$ac_ext >&5 |
| 6848 | ac_lo=`expr $ac_mid + 1` |
| 6849 | if test $ac_lo -le $ac_mid; then |
| 6850 | ac_lo= ac_hi= |
| 6851 | break |
| 6852 | fi |
| 6853 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6854 | fi |
| 6855 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6856 | done |
| 6857 | else |
| 6858 | echo "$as_me: failed program was:" >&5 |
| 6859 | cat conftest.$ac_ext >&5 |
| 6860 | cat >conftest.$ac_ext <<_ACEOF |
| 6861 | #line $LINENO "configure" |
| 6862 | #include "confdefs.h" |
| 6863 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6864 | #ifdef F77_DUMMY_MAIN |
| 6865 | # ifdef __cplusplus |
| 6866 | extern "C" |
| 6867 | # endif |
| 6868 | int F77_DUMMY_MAIN() { return 1; } |
| 6869 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6870 | int |
| 6871 | main () |
| 6872 | { |
| 6873 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6874 | test_array [0] = 0 |
| 6875 | |
| 6876 | ; |
| 6877 | return 0; |
| 6878 | } |
| 6879 | _ACEOF |
| 6880 | rm -f conftest.$ac_objext |
| 6881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6882 | (eval $ac_compile) 2>&5 |
| 6883 | ac_status=$? |
| 6884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6885 | (exit $ac_status); } && |
| 6886 | { ac_try='test -s conftest.$ac_objext' |
| 6887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6888 | (eval $ac_try) 2>&5 |
| 6889 | ac_status=$? |
| 6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6891 | (exit $ac_status); }; }; then |
| 6892 | ac_hi=-1 ac_mid=-1 |
| 6893 | while :; do |
| 6894 | cat >conftest.$ac_ext <<_ACEOF |
| 6895 | #line $LINENO "configure" |
| 6896 | #include "confdefs.h" |
| 6897 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6898 | #ifdef F77_DUMMY_MAIN |
| 6899 | # ifdef __cplusplus |
| 6900 | extern "C" |
| 6901 | # endif |
| 6902 | int F77_DUMMY_MAIN() { return 1; } |
| 6903 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6904 | int |
| 6905 | main () |
| 6906 | { |
| 6907 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6908 | test_array [0] = 0 |
| 6909 | |
| 6910 | ; |
| 6911 | return 0; |
| 6912 | } |
| 6913 | _ACEOF |
| 6914 | rm -f conftest.$ac_objext |
| 6915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6916 | (eval $ac_compile) 2>&5 |
| 6917 | ac_status=$? |
| 6918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6919 | (exit $ac_status); } && |
| 6920 | { ac_try='test -s conftest.$ac_objext' |
| 6921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6922 | (eval $ac_try) 2>&5 |
| 6923 | ac_status=$? |
| 6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6925 | (exit $ac_status); }; }; then |
| 6926 | ac_lo=$ac_mid; break |
| 6927 | else |
| 6928 | echo "$as_me: failed program was:" >&5 |
| 6929 | cat conftest.$ac_ext >&5 |
| 6930 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6931 | if test $ac_mid -le $ac_hi; then |
| 6932 | ac_lo= ac_hi= |
| 6933 | break |
| 6934 | fi |
| 6935 | ac_mid=`expr 2 '*' $ac_mid` |
| 6936 | fi |
| 6937 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6938 | done |
| 6939 | else |
| 6940 | echo "$as_me: failed program was:" >&5 |
| 6941 | cat conftest.$ac_ext >&5 |
| 6942 | ac_lo= ac_hi= |
| 6943 | fi |
| 6944 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6945 | fi |
| 6946 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6947 | # Binary search between lo and hi bounds. |
| 6948 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6949 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6950 | cat >conftest.$ac_ext <<_ACEOF |
| 6951 | #line $LINENO "configure" |
| 6952 | #include "confdefs.h" |
| 6953 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6954 | #ifdef F77_DUMMY_MAIN |
| 6955 | # ifdef __cplusplus |
| 6956 | extern "C" |
| 6957 | # endif |
| 6958 | int F77_DUMMY_MAIN() { return 1; } |
| 6959 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6960 | int |
| 6961 | main () |
| 6962 | { |
| 6963 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6964 | test_array [0] = 0 |
| 6965 | |
| 6966 | ; |
| 6967 | return 0; |
| 6968 | } |
| 6969 | _ACEOF |
| 6970 | rm -f conftest.$ac_objext |
| 6971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6972 | (eval $ac_compile) 2>&5 |
| 6973 | ac_status=$? |
| 6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6975 | (exit $ac_status); } && |
| 6976 | { ac_try='test -s conftest.$ac_objext' |
| 6977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6978 | (eval $ac_try) 2>&5 |
| 6979 | ac_status=$? |
| 6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6981 | (exit $ac_status); }; }; then |
| 6982 | ac_hi=$ac_mid |
| 6983 | else |
| 6984 | echo "$as_me: failed program was:" >&5 |
| 6985 | cat conftest.$ac_ext >&5 |
| 6986 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6987 | fi |
| 6988 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6989 | done |
| 6990 | case $ac_lo in |
| 6991 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6992 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6993 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6994 | { (exit 1); exit 1; }; } ;; |
| 6995 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6996 | else |
| 6997 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6998 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6999 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7000 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7001 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7002 | cat >conftest.$ac_ext <<_ACEOF |
| 7003 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7004 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | $ac_includes_default |
| 7006 | long longval () { return (long) (sizeof (short)); } |
| 7007 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7008 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7009 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7010 | #ifdef F77_DUMMY_MAIN |
| 7011 | # ifdef __cplusplus |
| 7012 | extern "C" |
| 7013 | # endif |
| 7014 | int F77_DUMMY_MAIN() { return 1; } |
| 7015 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7016 | int |
| 7017 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7018 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7019 | |
| 7020 | FILE *f = fopen ("conftest.val", "w"); |
| 7021 | if (! f) |
| 7022 | exit (1); |
| 7023 | if (((long) (sizeof (short))) < 0) |
| 7024 | { |
| 7025 | long i = longval (); |
| 7026 | if (i != ((long) (sizeof (short)))) |
| 7027 | exit (1); |
| 7028 | fprintf (f, "%ld\n", i); |
| 7029 | } |
| 7030 | else |
| 7031 | { |
| 7032 | unsigned long i = ulongval (); |
| 7033 | if (i != ((long) (sizeof (short)))) |
| 7034 | exit (1); |
| 7035 | fprintf (f, "%lu\n", i); |
| 7036 | } |
| 7037 | exit (ferror (f) || fclose (f) != 0); |
| 7038 | |
| 7039 | ; |
| 7040 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7041 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7042 | _ACEOF |
| 7043 | rm -f conftest$ac_exeext |
| 7044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7045 | (eval $ac_link) 2>&5 |
| 7046 | ac_status=$? |
| 7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7048 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7050 | (eval $ac_try) 2>&5 |
| 7051 | ac_status=$? |
| 7052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7053 | (exit $ac_status); }; }; then |
| 7054 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7057 | echo "$as_me: failed program was:" >&5 |
| 7058 | cat conftest.$ac_ext >&5 |
| 7059 | ( exit $ac_status ) |
| 7060 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 7061 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 7062 | { (exit 1); exit 1; }; } |
| 7063 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7064 | 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] | 7065 | fi |
| 7066 | fi |
| 7067 | rm -f conftest.val |
| 7068 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7069 | ac_cv_sizeof_short=0 |
| 7070 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7071 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7072 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7073 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7074 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7075 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7076 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7077 | |
| 7078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7079 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7080 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7081 | if test "${ac_cv_type_float+set}" = set; then |
| 7082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7083 | else |
| 7084 | cat >conftest.$ac_ext <<_ACEOF |
| 7085 | #line $LINENO "configure" |
| 7086 | #include "confdefs.h" |
| 7087 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7088 | #ifdef F77_DUMMY_MAIN |
| 7089 | # ifdef __cplusplus |
| 7090 | extern "C" |
| 7091 | # endif |
| 7092 | int F77_DUMMY_MAIN() { return 1; } |
| 7093 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7094 | int |
| 7095 | main () |
| 7096 | { |
| 7097 | if ((float *) 0) |
| 7098 | return 0; |
| 7099 | if (sizeof (float)) |
| 7100 | return 0; |
| 7101 | ; |
| 7102 | return 0; |
| 7103 | } |
| 7104 | _ACEOF |
| 7105 | rm -f conftest.$ac_objext |
| 7106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7107 | (eval $ac_compile) 2>&5 |
| 7108 | ac_status=$? |
| 7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7110 | (exit $ac_status); } && |
| 7111 | { ac_try='test -s conftest.$ac_objext' |
| 7112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7113 | (eval $ac_try) 2>&5 |
| 7114 | ac_status=$? |
| 7115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7116 | (exit $ac_status); }; }; then |
| 7117 | ac_cv_type_float=yes |
| 7118 | else |
| 7119 | echo "$as_me: failed program was:" >&5 |
| 7120 | cat conftest.$ac_ext >&5 |
| 7121 | ac_cv_type_float=no |
| 7122 | fi |
| 7123 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7124 | fi |
| 7125 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7126 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7127 | |
| 7128 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7129 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7130 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7132 | else |
| 7133 | if test "$ac_cv_type_float" = yes; then |
| 7134 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7135 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7136 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7137 | # This bug is HP SR number 8606223364. |
| 7138 | if test "$cross_compiling" = yes; then |
| 7139 | # Depending upon the size, compute the lo and hi bounds. |
| 7140 | cat >conftest.$ac_ext <<_ACEOF |
| 7141 | #line $LINENO "configure" |
| 7142 | #include "confdefs.h" |
| 7143 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7144 | #ifdef F77_DUMMY_MAIN |
| 7145 | # ifdef __cplusplus |
| 7146 | extern "C" |
| 7147 | # endif |
| 7148 | int F77_DUMMY_MAIN() { return 1; } |
| 7149 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7150 | int |
| 7151 | main () |
| 7152 | { |
| 7153 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7154 | test_array [0] = 0 |
| 7155 | |
| 7156 | ; |
| 7157 | return 0; |
| 7158 | } |
| 7159 | _ACEOF |
| 7160 | rm -f conftest.$ac_objext |
| 7161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7162 | (eval $ac_compile) 2>&5 |
| 7163 | ac_status=$? |
| 7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7165 | (exit $ac_status); } && |
| 7166 | { ac_try='test -s conftest.$ac_objext' |
| 7167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7168 | (eval $ac_try) 2>&5 |
| 7169 | ac_status=$? |
| 7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7171 | (exit $ac_status); }; }; then |
| 7172 | ac_lo=0 ac_mid=0 |
| 7173 | while :; do |
| 7174 | cat >conftest.$ac_ext <<_ACEOF |
| 7175 | #line $LINENO "configure" |
| 7176 | #include "confdefs.h" |
| 7177 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7178 | #ifdef F77_DUMMY_MAIN |
| 7179 | # ifdef __cplusplus |
| 7180 | extern "C" |
| 7181 | # endif |
| 7182 | int F77_DUMMY_MAIN() { return 1; } |
| 7183 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7184 | int |
| 7185 | main () |
| 7186 | { |
| 7187 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7188 | test_array [0] = 0 |
| 7189 | |
| 7190 | ; |
| 7191 | return 0; |
| 7192 | } |
| 7193 | _ACEOF |
| 7194 | rm -f conftest.$ac_objext |
| 7195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7196 | (eval $ac_compile) 2>&5 |
| 7197 | ac_status=$? |
| 7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7199 | (exit $ac_status); } && |
| 7200 | { ac_try='test -s conftest.$ac_objext' |
| 7201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7202 | (eval $ac_try) 2>&5 |
| 7203 | ac_status=$? |
| 7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7205 | (exit $ac_status); }; }; then |
| 7206 | ac_hi=$ac_mid; break |
| 7207 | else |
| 7208 | echo "$as_me: failed program was:" >&5 |
| 7209 | cat conftest.$ac_ext >&5 |
| 7210 | ac_lo=`expr $ac_mid + 1` |
| 7211 | if test $ac_lo -le $ac_mid; then |
| 7212 | ac_lo= ac_hi= |
| 7213 | break |
| 7214 | fi |
| 7215 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7216 | fi |
| 7217 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7218 | done |
| 7219 | else |
| 7220 | echo "$as_me: failed program was:" >&5 |
| 7221 | cat conftest.$ac_ext >&5 |
| 7222 | cat >conftest.$ac_ext <<_ACEOF |
| 7223 | #line $LINENO "configure" |
| 7224 | #include "confdefs.h" |
| 7225 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7226 | #ifdef F77_DUMMY_MAIN |
| 7227 | # ifdef __cplusplus |
| 7228 | extern "C" |
| 7229 | # endif |
| 7230 | int F77_DUMMY_MAIN() { return 1; } |
| 7231 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7232 | int |
| 7233 | main () |
| 7234 | { |
| 7235 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7236 | test_array [0] = 0 |
| 7237 | |
| 7238 | ; |
| 7239 | return 0; |
| 7240 | } |
| 7241 | _ACEOF |
| 7242 | rm -f conftest.$ac_objext |
| 7243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7244 | (eval $ac_compile) 2>&5 |
| 7245 | ac_status=$? |
| 7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7247 | (exit $ac_status); } && |
| 7248 | { ac_try='test -s conftest.$ac_objext' |
| 7249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7250 | (eval $ac_try) 2>&5 |
| 7251 | ac_status=$? |
| 7252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7253 | (exit $ac_status); }; }; then |
| 7254 | ac_hi=-1 ac_mid=-1 |
| 7255 | while :; do |
| 7256 | cat >conftest.$ac_ext <<_ACEOF |
| 7257 | #line $LINENO "configure" |
| 7258 | #include "confdefs.h" |
| 7259 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7260 | #ifdef F77_DUMMY_MAIN |
| 7261 | # ifdef __cplusplus |
| 7262 | extern "C" |
| 7263 | # endif |
| 7264 | int F77_DUMMY_MAIN() { return 1; } |
| 7265 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7266 | int |
| 7267 | main () |
| 7268 | { |
| 7269 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7270 | test_array [0] = 0 |
| 7271 | |
| 7272 | ; |
| 7273 | return 0; |
| 7274 | } |
| 7275 | _ACEOF |
| 7276 | rm -f conftest.$ac_objext |
| 7277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7278 | (eval $ac_compile) 2>&5 |
| 7279 | ac_status=$? |
| 7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7281 | (exit $ac_status); } && |
| 7282 | { ac_try='test -s conftest.$ac_objext' |
| 7283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7284 | (eval $ac_try) 2>&5 |
| 7285 | ac_status=$? |
| 7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7287 | (exit $ac_status); }; }; then |
| 7288 | ac_lo=$ac_mid; break |
| 7289 | else |
| 7290 | echo "$as_me: failed program was:" >&5 |
| 7291 | cat conftest.$ac_ext >&5 |
| 7292 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7293 | if test $ac_mid -le $ac_hi; then |
| 7294 | ac_lo= ac_hi= |
| 7295 | break |
| 7296 | fi |
| 7297 | ac_mid=`expr 2 '*' $ac_mid` |
| 7298 | fi |
| 7299 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7300 | done |
| 7301 | else |
| 7302 | echo "$as_me: failed program was:" >&5 |
| 7303 | cat conftest.$ac_ext >&5 |
| 7304 | ac_lo= ac_hi= |
| 7305 | fi |
| 7306 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7307 | fi |
| 7308 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7309 | # Binary search between lo and hi bounds. |
| 7310 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7311 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7312 | cat >conftest.$ac_ext <<_ACEOF |
| 7313 | #line $LINENO "configure" |
| 7314 | #include "confdefs.h" |
| 7315 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7316 | #ifdef F77_DUMMY_MAIN |
| 7317 | # ifdef __cplusplus |
| 7318 | extern "C" |
| 7319 | # endif |
| 7320 | int F77_DUMMY_MAIN() { return 1; } |
| 7321 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7322 | int |
| 7323 | main () |
| 7324 | { |
| 7325 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7326 | test_array [0] = 0 |
| 7327 | |
| 7328 | ; |
| 7329 | return 0; |
| 7330 | } |
| 7331 | _ACEOF |
| 7332 | rm -f conftest.$ac_objext |
| 7333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7334 | (eval $ac_compile) 2>&5 |
| 7335 | ac_status=$? |
| 7336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7337 | (exit $ac_status); } && |
| 7338 | { ac_try='test -s conftest.$ac_objext' |
| 7339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7340 | (eval $ac_try) 2>&5 |
| 7341 | ac_status=$? |
| 7342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7343 | (exit $ac_status); }; }; then |
| 7344 | ac_hi=$ac_mid |
| 7345 | else |
| 7346 | echo "$as_me: failed program was:" >&5 |
| 7347 | cat conftest.$ac_ext >&5 |
| 7348 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7349 | fi |
| 7350 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7351 | done |
| 7352 | case $ac_lo in |
| 7353 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7354 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7355 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7356 | { (exit 1); exit 1; }; } ;; |
| 7357 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7358 | else |
| 7359 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7360 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7361 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7362 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7364 | cat >conftest.$ac_ext <<_ACEOF |
| 7365 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7366 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7367 | $ac_includes_default |
| 7368 | long longval () { return (long) (sizeof (float)); } |
| 7369 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7370 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7371 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7372 | #ifdef F77_DUMMY_MAIN |
| 7373 | # ifdef __cplusplus |
| 7374 | extern "C" |
| 7375 | # endif |
| 7376 | int F77_DUMMY_MAIN() { return 1; } |
| 7377 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | int |
| 7379 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7380 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7381 | |
| 7382 | FILE *f = fopen ("conftest.val", "w"); |
| 7383 | if (! f) |
| 7384 | exit (1); |
| 7385 | if (((long) (sizeof (float))) < 0) |
| 7386 | { |
| 7387 | long i = longval (); |
| 7388 | if (i != ((long) (sizeof (float)))) |
| 7389 | exit (1); |
| 7390 | fprintf (f, "%ld\n", i); |
| 7391 | } |
| 7392 | else |
| 7393 | { |
| 7394 | unsigned long i = ulongval (); |
| 7395 | if (i != ((long) (sizeof (float)))) |
| 7396 | exit (1); |
| 7397 | fprintf (f, "%lu\n", i); |
| 7398 | } |
| 7399 | exit (ferror (f) || fclose (f) != 0); |
| 7400 | |
| 7401 | ; |
| 7402 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7403 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7404 | _ACEOF |
| 7405 | rm -f conftest$ac_exeext |
| 7406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7407 | (eval $ac_link) 2>&5 |
| 7408 | ac_status=$? |
| 7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7412 | (eval $ac_try) 2>&5 |
| 7413 | ac_status=$? |
| 7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7415 | (exit $ac_status); }; }; then |
| 7416 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7418 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7419 | echo "$as_me: failed program was:" >&5 |
| 7420 | cat conftest.$ac_ext >&5 |
| 7421 | ( exit $ac_status ) |
| 7422 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7423 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7424 | { (exit 1); exit 1; }; } |
| 7425 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7426 | 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] | 7427 | fi |
| 7428 | fi |
| 7429 | rm -f conftest.val |
| 7430 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7431 | ac_cv_sizeof_float=0 |
| 7432 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7434 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7435 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7436 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7437 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7438 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7439 | |
| 7440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7441 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7442 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7443 | if test "${ac_cv_type_double+set}" = set; then |
| 7444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7445 | else |
| 7446 | cat >conftest.$ac_ext <<_ACEOF |
| 7447 | #line $LINENO "configure" |
| 7448 | #include "confdefs.h" |
| 7449 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7450 | #ifdef F77_DUMMY_MAIN |
| 7451 | # ifdef __cplusplus |
| 7452 | extern "C" |
| 7453 | # endif |
| 7454 | int F77_DUMMY_MAIN() { return 1; } |
| 7455 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | int |
| 7457 | main () |
| 7458 | { |
| 7459 | if ((double *) 0) |
| 7460 | return 0; |
| 7461 | if (sizeof (double)) |
| 7462 | return 0; |
| 7463 | ; |
| 7464 | return 0; |
| 7465 | } |
| 7466 | _ACEOF |
| 7467 | rm -f conftest.$ac_objext |
| 7468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7469 | (eval $ac_compile) 2>&5 |
| 7470 | ac_status=$? |
| 7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7472 | (exit $ac_status); } && |
| 7473 | { ac_try='test -s conftest.$ac_objext' |
| 7474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7475 | (eval $ac_try) 2>&5 |
| 7476 | ac_status=$? |
| 7477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7478 | (exit $ac_status); }; }; then |
| 7479 | ac_cv_type_double=yes |
| 7480 | else |
| 7481 | echo "$as_me: failed program was:" >&5 |
| 7482 | cat conftest.$ac_ext >&5 |
| 7483 | ac_cv_type_double=no |
| 7484 | fi |
| 7485 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7486 | fi |
| 7487 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7488 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7489 | |
| 7490 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7491 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7492 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7494 | else |
| 7495 | if test "$ac_cv_type_double" = yes; then |
| 7496 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7497 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7498 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7499 | # This bug is HP SR number 8606223364. |
| 7500 | if test "$cross_compiling" = yes; then |
| 7501 | # Depending upon the size, compute the lo and hi bounds. |
| 7502 | cat >conftest.$ac_ext <<_ACEOF |
| 7503 | #line $LINENO "configure" |
| 7504 | #include "confdefs.h" |
| 7505 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7506 | #ifdef F77_DUMMY_MAIN |
| 7507 | # ifdef __cplusplus |
| 7508 | extern "C" |
| 7509 | # endif |
| 7510 | int F77_DUMMY_MAIN() { return 1; } |
| 7511 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7512 | int |
| 7513 | main () |
| 7514 | { |
| 7515 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7516 | test_array [0] = 0 |
| 7517 | |
| 7518 | ; |
| 7519 | return 0; |
| 7520 | } |
| 7521 | _ACEOF |
| 7522 | rm -f conftest.$ac_objext |
| 7523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7524 | (eval $ac_compile) 2>&5 |
| 7525 | ac_status=$? |
| 7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7527 | (exit $ac_status); } && |
| 7528 | { ac_try='test -s conftest.$ac_objext' |
| 7529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7530 | (eval $ac_try) 2>&5 |
| 7531 | ac_status=$? |
| 7532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7533 | (exit $ac_status); }; }; then |
| 7534 | ac_lo=0 ac_mid=0 |
| 7535 | while :; do |
| 7536 | cat >conftest.$ac_ext <<_ACEOF |
| 7537 | #line $LINENO "configure" |
| 7538 | #include "confdefs.h" |
| 7539 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7540 | #ifdef F77_DUMMY_MAIN |
| 7541 | # ifdef __cplusplus |
| 7542 | extern "C" |
| 7543 | # endif |
| 7544 | int F77_DUMMY_MAIN() { return 1; } |
| 7545 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7546 | int |
| 7547 | main () |
| 7548 | { |
| 7549 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7550 | test_array [0] = 0 |
| 7551 | |
| 7552 | ; |
| 7553 | return 0; |
| 7554 | } |
| 7555 | _ACEOF |
| 7556 | rm -f conftest.$ac_objext |
| 7557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7558 | (eval $ac_compile) 2>&5 |
| 7559 | ac_status=$? |
| 7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7561 | (exit $ac_status); } && |
| 7562 | { ac_try='test -s conftest.$ac_objext' |
| 7563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7564 | (eval $ac_try) 2>&5 |
| 7565 | ac_status=$? |
| 7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7567 | (exit $ac_status); }; }; then |
| 7568 | ac_hi=$ac_mid; break |
| 7569 | else |
| 7570 | echo "$as_me: failed program was:" >&5 |
| 7571 | cat conftest.$ac_ext >&5 |
| 7572 | ac_lo=`expr $ac_mid + 1` |
| 7573 | if test $ac_lo -le $ac_mid; then |
| 7574 | ac_lo= ac_hi= |
| 7575 | break |
| 7576 | fi |
| 7577 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7578 | fi |
| 7579 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7580 | done |
| 7581 | else |
| 7582 | echo "$as_me: failed program was:" >&5 |
| 7583 | cat conftest.$ac_ext >&5 |
| 7584 | cat >conftest.$ac_ext <<_ACEOF |
| 7585 | #line $LINENO "configure" |
| 7586 | #include "confdefs.h" |
| 7587 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7588 | #ifdef F77_DUMMY_MAIN |
| 7589 | # ifdef __cplusplus |
| 7590 | extern "C" |
| 7591 | # endif |
| 7592 | int F77_DUMMY_MAIN() { return 1; } |
| 7593 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7594 | int |
| 7595 | main () |
| 7596 | { |
| 7597 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7598 | test_array [0] = 0 |
| 7599 | |
| 7600 | ; |
| 7601 | return 0; |
| 7602 | } |
| 7603 | _ACEOF |
| 7604 | rm -f conftest.$ac_objext |
| 7605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7606 | (eval $ac_compile) 2>&5 |
| 7607 | ac_status=$? |
| 7608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7609 | (exit $ac_status); } && |
| 7610 | { ac_try='test -s conftest.$ac_objext' |
| 7611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7612 | (eval $ac_try) 2>&5 |
| 7613 | ac_status=$? |
| 7614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7615 | (exit $ac_status); }; }; then |
| 7616 | ac_hi=-1 ac_mid=-1 |
| 7617 | while :; do |
| 7618 | cat >conftest.$ac_ext <<_ACEOF |
| 7619 | #line $LINENO "configure" |
| 7620 | #include "confdefs.h" |
| 7621 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7622 | #ifdef F77_DUMMY_MAIN |
| 7623 | # ifdef __cplusplus |
| 7624 | extern "C" |
| 7625 | # endif |
| 7626 | int F77_DUMMY_MAIN() { return 1; } |
| 7627 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7628 | int |
| 7629 | main () |
| 7630 | { |
| 7631 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7632 | test_array [0] = 0 |
| 7633 | |
| 7634 | ; |
| 7635 | return 0; |
| 7636 | } |
| 7637 | _ACEOF |
| 7638 | rm -f conftest.$ac_objext |
| 7639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7640 | (eval $ac_compile) 2>&5 |
| 7641 | ac_status=$? |
| 7642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7643 | (exit $ac_status); } && |
| 7644 | { ac_try='test -s conftest.$ac_objext' |
| 7645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7646 | (eval $ac_try) 2>&5 |
| 7647 | ac_status=$? |
| 7648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7649 | (exit $ac_status); }; }; then |
| 7650 | ac_lo=$ac_mid; break |
| 7651 | else |
| 7652 | echo "$as_me: failed program was:" >&5 |
| 7653 | cat conftest.$ac_ext >&5 |
| 7654 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7655 | if test $ac_mid -le $ac_hi; then |
| 7656 | ac_lo= ac_hi= |
| 7657 | break |
| 7658 | fi |
| 7659 | ac_mid=`expr 2 '*' $ac_mid` |
| 7660 | fi |
| 7661 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7662 | done |
| 7663 | else |
| 7664 | echo "$as_me: failed program was:" >&5 |
| 7665 | cat conftest.$ac_ext >&5 |
| 7666 | ac_lo= ac_hi= |
| 7667 | fi |
| 7668 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7669 | fi |
| 7670 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7671 | # Binary search between lo and hi bounds. |
| 7672 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7673 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7674 | cat >conftest.$ac_ext <<_ACEOF |
| 7675 | #line $LINENO "configure" |
| 7676 | #include "confdefs.h" |
| 7677 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7678 | #ifdef F77_DUMMY_MAIN |
| 7679 | # ifdef __cplusplus |
| 7680 | extern "C" |
| 7681 | # endif |
| 7682 | int F77_DUMMY_MAIN() { return 1; } |
| 7683 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7684 | int |
| 7685 | main () |
| 7686 | { |
| 7687 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7688 | test_array [0] = 0 |
| 7689 | |
| 7690 | ; |
| 7691 | return 0; |
| 7692 | } |
| 7693 | _ACEOF |
| 7694 | rm -f conftest.$ac_objext |
| 7695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7696 | (eval $ac_compile) 2>&5 |
| 7697 | ac_status=$? |
| 7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7699 | (exit $ac_status); } && |
| 7700 | { ac_try='test -s conftest.$ac_objext' |
| 7701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7702 | (eval $ac_try) 2>&5 |
| 7703 | ac_status=$? |
| 7704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7705 | (exit $ac_status); }; }; then |
| 7706 | ac_hi=$ac_mid |
| 7707 | else |
| 7708 | echo "$as_me: failed program was:" >&5 |
| 7709 | cat conftest.$ac_ext >&5 |
| 7710 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7711 | fi |
| 7712 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7713 | done |
| 7714 | case $ac_lo in |
| 7715 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7716 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7717 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7718 | { (exit 1); exit 1; }; } ;; |
| 7719 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7720 | else |
| 7721 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7722 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7723 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7724 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7726 | cat >conftest.$ac_ext <<_ACEOF |
| 7727 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7728 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7729 | $ac_includes_default |
| 7730 | long longval () { return (long) (sizeof (double)); } |
| 7731 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7732 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7733 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7734 | #ifdef F77_DUMMY_MAIN |
| 7735 | # ifdef __cplusplus |
| 7736 | extern "C" |
| 7737 | # endif |
| 7738 | int F77_DUMMY_MAIN() { return 1; } |
| 7739 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7740 | int |
| 7741 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7742 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7743 | |
| 7744 | FILE *f = fopen ("conftest.val", "w"); |
| 7745 | if (! f) |
| 7746 | exit (1); |
| 7747 | if (((long) (sizeof (double))) < 0) |
| 7748 | { |
| 7749 | long i = longval (); |
| 7750 | if (i != ((long) (sizeof (double)))) |
| 7751 | exit (1); |
| 7752 | fprintf (f, "%ld\n", i); |
| 7753 | } |
| 7754 | else |
| 7755 | { |
| 7756 | unsigned long i = ulongval (); |
| 7757 | if (i != ((long) (sizeof (double)))) |
| 7758 | exit (1); |
| 7759 | fprintf (f, "%lu\n", i); |
| 7760 | } |
| 7761 | exit (ferror (f) || fclose (f) != 0); |
| 7762 | |
| 7763 | ; |
| 7764 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7765 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7766 | _ACEOF |
| 7767 | rm -f conftest$ac_exeext |
| 7768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7769 | (eval $ac_link) 2>&5 |
| 7770 | ac_status=$? |
| 7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7772 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7774 | (eval $ac_try) 2>&5 |
| 7775 | ac_status=$? |
| 7776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7777 | (exit $ac_status); }; }; then |
| 7778 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7780 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7781 | echo "$as_me: failed program was:" >&5 |
| 7782 | cat conftest.$ac_ext >&5 |
| 7783 | ( exit $ac_status ) |
| 7784 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7785 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7786 | { (exit 1); exit 1; }; } |
| 7787 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7788 | 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] | 7789 | fi |
| 7790 | fi |
| 7791 | rm -f conftest.val |
| 7792 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7793 | ac_cv_sizeof_double=0 |
| 7794 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7796 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7797 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7798 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7799 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7800 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7801 | |
| 7802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7803 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7804 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7805 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7807 | else |
| 7808 | cat >conftest.$ac_ext <<_ACEOF |
| 7809 | #line $LINENO "configure" |
| 7810 | #include "confdefs.h" |
| 7811 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7812 | #ifdef F77_DUMMY_MAIN |
| 7813 | # ifdef __cplusplus |
| 7814 | extern "C" |
| 7815 | # endif |
| 7816 | int F77_DUMMY_MAIN() { return 1; } |
| 7817 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7818 | int |
| 7819 | main () |
| 7820 | { |
| 7821 | if ((fpos_t *) 0) |
| 7822 | return 0; |
| 7823 | if (sizeof (fpos_t)) |
| 7824 | return 0; |
| 7825 | ; |
| 7826 | return 0; |
| 7827 | } |
| 7828 | _ACEOF |
| 7829 | rm -f conftest.$ac_objext |
| 7830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7831 | (eval $ac_compile) 2>&5 |
| 7832 | ac_status=$? |
| 7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7834 | (exit $ac_status); } && |
| 7835 | { ac_try='test -s conftest.$ac_objext' |
| 7836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7837 | (eval $ac_try) 2>&5 |
| 7838 | ac_status=$? |
| 7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7840 | (exit $ac_status); }; }; then |
| 7841 | ac_cv_type_fpos_t=yes |
| 7842 | else |
| 7843 | echo "$as_me: failed program was:" >&5 |
| 7844 | cat conftest.$ac_ext >&5 |
| 7845 | ac_cv_type_fpos_t=no |
| 7846 | fi |
| 7847 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7848 | fi |
| 7849 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7850 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7851 | |
| 7852 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7853 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7854 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7856 | else |
| 7857 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7858 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7859 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7860 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7861 | # This bug is HP SR number 8606223364. |
| 7862 | if test "$cross_compiling" = yes; then |
| 7863 | # Depending upon the size, compute the lo and hi bounds. |
| 7864 | cat >conftest.$ac_ext <<_ACEOF |
| 7865 | #line $LINENO "configure" |
| 7866 | #include "confdefs.h" |
| 7867 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7868 | #ifdef F77_DUMMY_MAIN |
| 7869 | # ifdef __cplusplus |
| 7870 | extern "C" |
| 7871 | # endif |
| 7872 | int F77_DUMMY_MAIN() { return 1; } |
| 7873 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 | int |
| 7875 | main () |
| 7876 | { |
| 7877 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7878 | test_array [0] = 0 |
| 7879 | |
| 7880 | ; |
| 7881 | return 0; |
| 7882 | } |
| 7883 | _ACEOF |
| 7884 | rm -f conftest.$ac_objext |
| 7885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7886 | (eval $ac_compile) 2>&5 |
| 7887 | ac_status=$? |
| 7888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7889 | (exit $ac_status); } && |
| 7890 | { ac_try='test -s conftest.$ac_objext' |
| 7891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7892 | (eval $ac_try) 2>&5 |
| 7893 | ac_status=$? |
| 7894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7895 | (exit $ac_status); }; }; then |
| 7896 | ac_lo=0 ac_mid=0 |
| 7897 | while :; do |
| 7898 | cat >conftest.$ac_ext <<_ACEOF |
| 7899 | #line $LINENO "configure" |
| 7900 | #include "confdefs.h" |
| 7901 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7902 | #ifdef F77_DUMMY_MAIN |
| 7903 | # ifdef __cplusplus |
| 7904 | extern "C" |
| 7905 | # endif |
| 7906 | int F77_DUMMY_MAIN() { return 1; } |
| 7907 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7908 | int |
| 7909 | main () |
| 7910 | { |
| 7911 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7912 | test_array [0] = 0 |
| 7913 | |
| 7914 | ; |
| 7915 | return 0; |
| 7916 | } |
| 7917 | _ACEOF |
| 7918 | rm -f conftest.$ac_objext |
| 7919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7920 | (eval $ac_compile) 2>&5 |
| 7921 | ac_status=$? |
| 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7923 | (exit $ac_status); } && |
| 7924 | { ac_try='test -s conftest.$ac_objext' |
| 7925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7926 | (eval $ac_try) 2>&5 |
| 7927 | ac_status=$? |
| 7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7929 | (exit $ac_status); }; }; then |
| 7930 | ac_hi=$ac_mid; break |
| 7931 | else |
| 7932 | echo "$as_me: failed program was:" >&5 |
| 7933 | cat conftest.$ac_ext >&5 |
| 7934 | ac_lo=`expr $ac_mid + 1` |
| 7935 | if test $ac_lo -le $ac_mid; then |
| 7936 | ac_lo= ac_hi= |
| 7937 | break |
| 7938 | fi |
| 7939 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7940 | fi |
| 7941 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7942 | done |
| 7943 | else |
| 7944 | echo "$as_me: failed program was:" >&5 |
| 7945 | cat conftest.$ac_ext >&5 |
| 7946 | cat >conftest.$ac_ext <<_ACEOF |
| 7947 | #line $LINENO "configure" |
| 7948 | #include "confdefs.h" |
| 7949 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7950 | #ifdef F77_DUMMY_MAIN |
| 7951 | # ifdef __cplusplus |
| 7952 | extern "C" |
| 7953 | # endif |
| 7954 | int F77_DUMMY_MAIN() { return 1; } |
| 7955 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | int |
| 7957 | main () |
| 7958 | { |
| 7959 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7960 | test_array [0] = 0 |
| 7961 | |
| 7962 | ; |
| 7963 | return 0; |
| 7964 | } |
| 7965 | _ACEOF |
| 7966 | rm -f conftest.$ac_objext |
| 7967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7968 | (eval $ac_compile) 2>&5 |
| 7969 | ac_status=$? |
| 7970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7971 | (exit $ac_status); } && |
| 7972 | { ac_try='test -s conftest.$ac_objext' |
| 7973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7974 | (eval $ac_try) 2>&5 |
| 7975 | ac_status=$? |
| 7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7977 | (exit $ac_status); }; }; then |
| 7978 | ac_hi=-1 ac_mid=-1 |
| 7979 | while :; do |
| 7980 | cat >conftest.$ac_ext <<_ACEOF |
| 7981 | #line $LINENO "configure" |
| 7982 | #include "confdefs.h" |
| 7983 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7984 | #ifdef F77_DUMMY_MAIN |
| 7985 | # ifdef __cplusplus |
| 7986 | extern "C" |
| 7987 | # endif |
| 7988 | int F77_DUMMY_MAIN() { return 1; } |
| 7989 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7990 | int |
| 7991 | main () |
| 7992 | { |
| 7993 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7994 | test_array [0] = 0 |
| 7995 | |
| 7996 | ; |
| 7997 | return 0; |
| 7998 | } |
| 7999 | _ACEOF |
| 8000 | rm -f conftest.$ac_objext |
| 8001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8002 | (eval $ac_compile) 2>&5 |
| 8003 | ac_status=$? |
| 8004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8005 | (exit $ac_status); } && |
| 8006 | { ac_try='test -s conftest.$ac_objext' |
| 8007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8008 | (eval $ac_try) 2>&5 |
| 8009 | ac_status=$? |
| 8010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8011 | (exit $ac_status); }; }; then |
| 8012 | ac_lo=$ac_mid; break |
| 8013 | else |
| 8014 | echo "$as_me: failed program was:" >&5 |
| 8015 | cat conftest.$ac_ext >&5 |
| 8016 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8017 | if test $ac_mid -le $ac_hi; then |
| 8018 | ac_lo= ac_hi= |
| 8019 | break |
| 8020 | fi |
| 8021 | ac_mid=`expr 2 '*' $ac_mid` |
| 8022 | fi |
| 8023 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8024 | done |
| 8025 | else |
| 8026 | echo "$as_me: failed program was:" >&5 |
| 8027 | cat conftest.$ac_ext >&5 |
| 8028 | ac_lo= ac_hi= |
| 8029 | fi |
| 8030 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8031 | fi |
| 8032 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8033 | # Binary search between lo and hi bounds. |
| 8034 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8035 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8036 | cat >conftest.$ac_ext <<_ACEOF |
| 8037 | #line $LINENO "configure" |
| 8038 | #include "confdefs.h" |
| 8039 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8040 | #ifdef F77_DUMMY_MAIN |
| 8041 | # ifdef __cplusplus |
| 8042 | extern "C" |
| 8043 | # endif |
| 8044 | int F77_DUMMY_MAIN() { return 1; } |
| 8045 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8046 | int |
| 8047 | main () |
| 8048 | { |
| 8049 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8050 | test_array [0] = 0 |
| 8051 | |
| 8052 | ; |
| 8053 | return 0; |
| 8054 | } |
| 8055 | _ACEOF |
| 8056 | rm -f conftest.$ac_objext |
| 8057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8058 | (eval $ac_compile) 2>&5 |
| 8059 | ac_status=$? |
| 8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8061 | (exit $ac_status); } && |
| 8062 | { ac_try='test -s conftest.$ac_objext' |
| 8063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8064 | (eval $ac_try) 2>&5 |
| 8065 | ac_status=$? |
| 8066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8067 | (exit $ac_status); }; }; then |
| 8068 | ac_hi=$ac_mid |
| 8069 | else |
| 8070 | echo "$as_me: failed program was:" >&5 |
| 8071 | cat conftest.$ac_ext >&5 |
| 8072 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8073 | fi |
| 8074 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8075 | done |
| 8076 | case $ac_lo in |
| 8077 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 8078 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8079 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8080 | { (exit 1); exit 1; }; } ;; |
| 8081 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8082 | else |
| 8083 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8084 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8085 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8086 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8087 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8088 | cat >conftest.$ac_ext <<_ACEOF |
| 8089 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8090 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8091 | $ac_includes_default |
| 8092 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8093 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8094 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8095 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8096 | #ifdef F77_DUMMY_MAIN |
| 8097 | # ifdef __cplusplus |
| 8098 | extern "C" |
| 8099 | # endif |
| 8100 | int F77_DUMMY_MAIN() { return 1; } |
| 8101 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | int |
| 8103 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8104 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8105 | |
| 8106 | FILE *f = fopen ("conftest.val", "w"); |
| 8107 | if (! f) |
| 8108 | exit (1); |
| 8109 | if (((long) (sizeof (fpos_t))) < 0) |
| 8110 | { |
| 8111 | long i = longval (); |
| 8112 | if (i != ((long) (sizeof (fpos_t)))) |
| 8113 | exit (1); |
| 8114 | fprintf (f, "%ld\n", i); |
| 8115 | } |
| 8116 | else |
| 8117 | { |
| 8118 | unsigned long i = ulongval (); |
| 8119 | if (i != ((long) (sizeof (fpos_t)))) |
| 8120 | exit (1); |
| 8121 | fprintf (f, "%lu\n", i); |
| 8122 | } |
| 8123 | exit (ferror (f) || fclose (f) != 0); |
| 8124 | |
| 8125 | ; |
| 8126 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8127 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8128 | _ACEOF |
| 8129 | rm -f conftest$ac_exeext |
| 8130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8131 | (eval $ac_link) 2>&5 |
| 8132 | ac_status=$? |
| 8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8134 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8136 | (eval $ac_try) 2>&5 |
| 8137 | ac_status=$? |
| 8138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8139 | (exit $ac_status); }; }; then |
| 8140 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8143 | echo "$as_me: failed program was:" >&5 |
| 8144 | cat conftest.$ac_ext >&5 |
| 8145 | ( exit $ac_status ) |
| 8146 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8147 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8148 | { (exit 1); exit 1; }; } |
| 8149 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8150 | 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] | 8151 | fi |
| 8152 | fi |
| 8153 | rm -f conftest.val |
| 8154 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8155 | ac_cv_sizeof_fpos_t=0 |
| 8156 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8157 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8158 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8159 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8160 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8161 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8162 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8163 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8164 | |
| 8165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8166 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8167 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8168 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8169 | cat >conftest.$ac_ext <<_ACEOF |
| 8170 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8171 | #include "confdefs.h" |
| 8172 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8173 | #ifdef F77_DUMMY_MAIN |
| 8174 | # ifdef __cplusplus |
| 8175 | extern "C" |
| 8176 | # endif |
| 8177 | int F77_DUMMY_MAIN() { return 1; } |
| 8178 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8179 | int |
| 8180 | main () |
| 8181 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8182 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8183 | ; |
| 8184 | return 0; |
| 8185 | } |
| 8186 | _ACEOF |
| 8187 | rm -f conftest.$ac_objext |
| 8188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8189 | (eval $ac_compile) 2>&5 |
| 8190 | ac_status=$? |
| 8191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8192 | (exit $ac_status); } && |
| 8193 | { ac_try='test -s conftest.$ac_objext' |
| 8194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8195 | (eval $ac_try) 2>&5 |
| 8196 | ac_status=$? |
| 8197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8198 | (exit $ac_status); }; }; then |
| 8199 | |
| 8200 | |
| 8201 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8202 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8203 | _ACEOF |
| 8204 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8205 | have_long_long=yes |
| 8206 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8208 | echo "$as_me: failed program was:" >&5 |
| 8209 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8210 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8211 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8212 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8213 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8214 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8215 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8216 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8217 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8219 | else |
| 8220 | cat >conftest.$ac_ext <<_ACEOF |
| 8221 | #line $LINENO "configure" |
| 8222 | #include "confdefs.h" |
| 8223 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8224 | #ifdef F77_DUMMY_MAIN |
| 8225 | # ifdef __cplusplus |
| 8226 | extern "C" |
| 8227 | # endif |
| 8228 | int F77_DUMMY_MAIN() { return 1; } |
| 8229 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8230 | int |
| 8231 | main () |
| 8232 | { |
| 8233 | if ((long long *) 0) |
| 8234 | return 0; |
| 8235 | if (sizeof (long long)) |
| 8236 | return 0; |
| 8237 | ; |
| 8238 | return 0; |
| 8239 | } |
| 8240 | _ACEOF |
| 8241 | rm -f conftest.$ac_objext |
| 8242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8243 | (eval $ac_compile) 2>&5 |
| 8244 | ac_status=$? |
| 8245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8246 | (exit $ac_status); } && |
| 8247 | { ac_try='test -s conftest.$ac_objext' |
| 8248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8249 | (eval $ac_try) 2>&5 |
| 8250 | ac_status=$? |
| 8251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8252 | (exit $ac_status); }; }; then |
| 8253 | ac_cv_type_long_long=yes |
| 8254 | else |
| 8255 | echo "$as_me: failed program was:" >&5 |
| 8256 | cat conftest.$ac_ext >&5 |
| 8257 | ac_cv_type_long_long=no |
| 8258 | fi |
| 8259 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8260 | fi |
| 8261 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8262 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8263 | |
| 8264 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8265 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8266 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8268 | else |
| 8269 | if test "$ac_cv_type_long_long" = yes; then |
| 8270 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8271 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8272 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8273 | # This bug is HP SR number 8606223364. |
| 8274 | if test "$cross_compiling" = yes; then |
| 8275 | # Depending upon the size, compute the lo and hi bounds. |
| 8276 | cat >conftest.$ac_ext <<_ACEOF |
| 8277 | #line $LINENO "configure" |
| 8278 | #include "confdefs.h" |
| 8279 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8280 | #ifdef F77_DUMMY_MAIN |
| 8281 | # ifdef __cplusplus |
| 8282 | extern "C" |
| 8283 | # endif |
| 8284 | int F77_DUMMY_MAIN() { return 1; } |
| 8285 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | int |
| 8287 | main () |
| 8288 | { |
| 8289 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8290 | test_array [0] = 0 |
| 8291 | |
| 8292 | ; |
| 8293 | return 0; |
| 8294 | } |
| 8295 | _ACEOF |
| 8296 | rm -f conftest.$ac_objext |
| 8297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8298 | (eval $ac_compile) 2>&5 |
| 8299 | ac_status=$? |
| 8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8301 | (exit $ac_status); } && |
| 8302 | { ac_try='test -s conftest.$ac_objext' |
| 8303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8304 | (eval $ac_try) 2>&5 |
| 8305 | ac_status=$? |
| 8306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8307 | (exit $ac_status); }; }; then |
| 8308 | ac_lo=0 ac_mid=0 |
| 8309 | while :; do |
| 8310 | cat >conftest.$ac_ext <<_ACEOF |
| 8311 | #line $LINENO "configure" |
| 8312 | #include "confdefs.h" |
| 8313 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8314 | #ifdef F77_DUMMY_MAIN |
| 8315 | # ifdef __cplusplus |
| 8316 | extern "C" |
| 8317 | # endif |
| 8318 | int F77_DUMMY_MAIN() { return 1; } |
| 8319 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8320 | int |
| 8321 | main () |
| 8322 | { |
| 8323 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8324 | test_array [0] = 0 |
| 8325 | |
| 8326 | ; |
| 8327 | return 0; |
| 8328 | } |
| 8329 | _ACEOF |
| 8330 | rm -f conftest.$ac_objext |
| 8331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8332 | (eval $ac_compile) 2>&5 |
| 8333 | ac_status=$? |
| 8334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8335 | (exit $ac_status); } && |
| 8336 | { ac_try='test -s conftest.$ac_objext' |
| 8337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8338 | (eval $ac_try) 2>&5 |
| 8339 | ac_status=$? |
| 8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8341 | (exit $ac_status); }; }; then |
| 8342 | ac_hi=$ac_mid; break |
| 8343 | else |
| 8344 | echo "$as_me: failed program was:" >&5 |
| 8345 | cat conftest.$ac_ext >&5 |
| 8346 | ac_lo=`expr $ac_mid + 1` |
| 8347 | if test $ac_lo -le $ac_mid; then |
| 8348 | ac_lo= ac_hi= |
| 8349 | break |
| 8350 | fi |
| 8351 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8352 | fi |
| 8353 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8354 | done |
| 8355 | else |
| 8356 | echo "$as_me: failed program was:" >&5 |
| 8357 | cat conftest.$ac_ext >&5 |
| 8358 | cat >conftest.$ac_ext <<_ACEOF |
| 8359 | #line $LINENO "configure" |
| 8360 | #include "confdefs.h" |
| 8361 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8362 | #ifdef F77_DUMMY_MAIN |
| 8363 | # ifdef __cplusplus |
| 8364 | extern "C" |
| 8365 | # endif |
| 8366 | int F77_DUMMY_MAIN() { return 1; } |
| 8367 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | int |
| 8369 | main () |
| 8370 | { |
| 8371 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8372 | test_array [0] = 0 |
| 8373 | |
| 8374 | ; |
| 8375 | return 0; |
| 8376 | } |
| 8377 | _ACEOF |
| 8378 | rm -f conftest.$ac_objext |
| 8379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8380 | (eval $ac_compile) 2>&5 |
| 8381 | ac_status=$? |
| 8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8383 | (exit $ac_status); } && |
| 8384 | { ac_try='test -s conftest.$ac_objext' |
| 8385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8386 | (eval $ac_try) 2>&5 |
| 8387 | ac_status=$? |
| 8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8389 | (exit $ac_status); }; }; then |
| 8390 | ac_hi=-1 ac_mid=-1 |
| 8391 | while :; do |
| 8392 | cat >conftest.$ac_ext <<_ACEOF |
| 8393 | #line $LINENO "configure" |
| 8394 | #include "confdefs.h" |
| 8395 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8396 | #ifdef F77_DUMMY_MAIN |
| 8397 | # ifdef __cplusplus |
| 8398 | extern "C" |
| 8399 | # endif |
| 8400 | int F77_DUMMY_MAIN() { return 1; } |
| 8401 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | int |
| 8403 | main () |
| 8404 | { |
| 8405 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8406 | test_array [0] = 0 |
| 8407 | |
| 8408 | ; |
| 8409 | return 0; |
| 8410 | } |
| 8411 | _ACEOF |
| 8412 | rm -f conftest.$ac_objext |
| 8413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8414 | (eval $ac_compile) 2>&5 |
| 8415 | ac_status=$? |
| 8416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8417 | (exit $ac_status); } && |
| 8418 | { ac_try='test -s conftest.$ac_objext' |
| 8419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8420 | (eval $ac_try) 2>&5 |
| 8421 | ac_status=$? |
| 8422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8423 | (exit $ac_status); }; }; then |
| 8424 | ac_lo=$ac_mid; break |
| 8425 | else |
| 8426 | echo "$as_me: failed program was:" >&5 |
| 8427 | cat conftest.$ac_ext >&5 |
| 8428 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8429 | if test $ac_mid -le $ac_hi; then |
| 8430 | ac_lo= ac_hi= |
| 8431 | break |
| 8432 | fi |
| 8433 | ac_mid=`expr 2 '*' $ac_mid` |
| 8434 | fi |
| 8435 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8436 | done |
| 8437 | else |
| 8438 | echo "$as_me: failed program was:" >&5 |
| 8439 | cat conftest.$ac_ext >&5 |
| 8440 | ac_lo= ac_hi= |
| 8441 | fi |
| 8442 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8443 | fi |
| 8444 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8445 | # Binary search between lo and hi bounds. |
| 8446 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8447 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8448 | cat >conftest.$ac_ext <<_ACEOF |
| 8449 | #line $LINENO "configure" |
| 8450 | #include "confdefs.h" |
| 8451 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8452 | #ifdef F77_DUMMY_MAIN |
| 8453 | # ifdef __cplusplus |
| 8454 | extern "C" |
| 8455 | # endif |
| 8456 | int F77_DUMMY_MAIN() { return 1; } |
| 8457 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | int |
| 8459 | main () |
| 8460 | { |
| 8461 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8462 | test_array [0] = 0 |
| 8463 | |
| 8464 | ; |
| 8465 | return 0; |
| 8466 | } |
| 8467 | _ACEOF |
| 8468 | rm -f conftest.$ac_objext |
| 8469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8470 | (eval $ac_compile) 2>&5 |
| 8471 | ac_status=$? |
| 8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8473 | (exit $ac_status); } && |
| 8474 | { ac_try='test -s conftest.$ac_objext' |
| 8475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8476 | (eval $ac_try) 2>&5 |
| 8477 | ac_status=$? |
| 8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8479 | (exit $ac_status); }; }; then |
| 8480 | ac_hi=$ac_mid |
| 8481 | else |
| 8482 | echo "$as_me: failed program was:" >&5 |
| 8483 | cat conftest.$ac_ext >&5 |
| 8484 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8485 | fi |
| 8486 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8487 | done |
| 8488 | case $ac_lo in |
| 8489 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8490 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8491 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8492 | { (exit 1); exit 1; }; } ;; |
| 8493 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8494 | else |
| 8495 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8496 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8497 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8498 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | cat >conftest.$ac_ext <<_ACEOF |
| 8501 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8502 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | $ac_includes_default |
| 8504 | long longval () { return (long) (sizeof (long long)); } |
| 8505 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8506 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8508 | #ifdef F77_DUMMY_MAIN |
| 8509 | # ifdef __cplusplus |
| 8510 | extern "C" |
| 8511 | # endif |
| 8512 | int F77_DUMMY_MAIN() { return 1; } |
| 8513 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | int |
| 8515 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8516 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8517 | |
| 8518 | FILE *f = fopen ("conftest.val", "w"); |
| 8519 | if (! f) |
| 8520 | exit (1); |
| 8521 | if (((long) (sizeof (long long))) < 0) |
| 8522 | { |
| 8523 | long i = longval (); |
| 8524 | if (i != ((long) (sizeof (long long)))) |
| 8525 | exit (1); |
| 8526 | fprintf (f, "%ld\n", i); |
| 8527 | } |
| 8528 | else |
| 8529 | { |
| 8530 | unsigned long i = ulongval (); |
| 8531 | if (i != ((long) (sizeof (long long)))) |
| 8532 | exit (1); |
| 8533 | fprintf (f, "%lu\n", i); |
| 8534 | } |
| 8535 | exit (ferror (f) || fclose (f) != 0); |
| 8536 | |
| 8537 | ; |
| 8538 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8539 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8540 | _ACEOF |
| 8541 | rm -f conftest$ac_exeext |
| 8542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8543 | (eval $ac_link) 2>&5 |
| 8544 | ac_status=$? |
| 8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8546 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8548 | (eval $ac_try) 2>&5 |
| 8549 | ac_status=$? |
| 8550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8551 | (exit $ac_status); }; }; then |
| 8552 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8555 | echo "$as_me: failed program was:" >&5 |
| 8556 | cat conftest.$ac_ext >&5 |
| 8557 | ( exit $ac_status ) |
| 8558 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8559 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8560 | { (exit 1); exit 1; }; } |
| 8561 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8562 | 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] | 8563 | fi |
| 8564 | fi |
| 8565 | rm -f conftest.val |
| 8566 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8567 | ac_cv_sizeof_long_long=0 |
| 8568 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8571 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8572 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8573 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8574 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8575 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8576 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8577 | fi |
| 8578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8580 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8581 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | cat >conftest.$ac_ext <<_ACEOF |
| 8583 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8584 | #include "confdefs.h" |
| 8585 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8586 | #ifdef F77_DUMMY_MAIN |
| 8587 | # ifdef __cplusplus |
| 8588 | extern "C" |
| 8589 | # endif |
| 8590 | int F77_DUMMY_MAIN() { return 1; } |
| 8591 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | int |
| 8593 | main () |
| 8594 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8595 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | ; |
| 8597 | return 0; |
| 8598 | } |
| 8599 | _ACEOF |
| 8600 | rm -f conftest.$ac_objext |
| 8601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8602 | (eval $ac_compile) 2>&5 |
| 8603 | ac_status=$? |
| 8604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8605 | (exit $ac_status); } && |
| 8606 | { ac_try='test -s conftest.$ac_objext' |
| 8607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8608 | (eval $ac_try) 2>&5 |
| 8609 | ac_status=$? |
| 8610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8611 | (exit $ac_status); }; }; then |
| 8612 | |
| 8613 | |
| 8614 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8615 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | _ACEOF |
| 8617 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8618 | have_uintptr_t=yes |
| 8619 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | echo "$as_me: failed program was:" >&5 |
| 8622 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8623 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8625 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8626 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8627 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8629 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8630 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8632 | else |
| 8633 | cat >conftest.$ac_ext <<_ACEOF |
| 8634 | #line $LINENO "configure" |
| 8635 | #include "confdefs.h" |
| 8636 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8637 | #ifdef F77_DUMMY_MAIN |
| 8638 | # ifdef __cplusplus |
| 8639 | extern "C" |
| 8640 | # endif |
| 8641 | int F77_DUMMY_MAIN() { return 1; } |
| 8642 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8643 | int |
| 8644 | main () |
| 8645 | { |
| 8646 | if ((uintptr_t *) 0) |
| 8647 | return 0; |
| 8648 | if (sizeof (uintptr_t)) |
| 8649 | return 0; |
| 8650 | ; |
| 8651 | return 0; |
| 8652 | } |
| 8653 | _ACEOF |
| 8654 | rm -f conftest.$ac_objext |
| 8655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8656 | (eval $ac_compile) 2>&5 |
| 8657 | ac_status=$? |
| 8658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8659 | (exit $ac_status); } && |
| 8660 | { ac_try='test -s conftest.$ac_objext' |
| 8661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8662 | (eval $ac_try) 2>&5 |
| 8663 | ac_status=$? |
| 8664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8665 | (exit $ac_status); }; }; then |
| 8666 | ac_cv_type_uintptr_t=yes |
| 8667 | else |
| 8668 | echo "$as_me: failed program was:" >&5 |
| 8669 | cat conftest.$ac_ext >&5 |
| 8670 | ac_cv_type_uintptr_t=no |
| 8671 | fi |
| 8672 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8673 | fi |
| 8674 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8675 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8676 | |
| 8677 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8678 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8679 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8681 | else |
| 8682 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8683 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8684 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8685 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8686 | # This bug is HP SR number 8606223364. |
| 8687 | if test "$cross_compiling" = yes; then |
| 8688 | # Depending upon the size, compute the lo and hi bounds. |
| 8689 | cat >conftest.$ac_ext <<_ACEOF |
| 8690 | #line $LINENO "configure" |
| 8691 | #include "confdefs.h" |
| 8692 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8693 | #ifdef F77_DUMMY_MAIN |
| 8694 | # ifdef __cplusplus |
| 8695 | extern "C" |
| 8696 | # endif |
| 8697 | int F77_DUMMY_MAIN() { return 1; } |
| 8698 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | int |
| 8700 | main () |
| 8701 | { |
| 8702 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8703 | test_array [0] = 0 |
| 8704 | |
| 8705 | ; |
| 8706 | return 0; |
| 8707 | } |
| 8708 | _ACEOF |
| 8709 | rm -f conftest.$ac_objext |
| 8710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8711 | (eval $ac_compile) 2>&5 |
| 8712 | ac_status=$? |
| 8713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8714 | (exit $ac_status); } && |
| 8715 | { ac_try='test -s conftest.$ac_objext' |
| 8716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8717 | (eval $ac_try) 2>&5 |
| 8718 | ac_status=$? |
| 8719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8720 | (exit $ac_status); }; }; then |
| 8721 | ac_lo=0 ac_mid=0 |
| 8722 | while :; do |
| 8723 | cat >conftest.$ac_ext <<_ACEOF |
| 8724 | #line $LINENO "configure" |
| 8725 | #include "confdefs.h" |
| 8726 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8727 | #ifdef F77_DUMMY_MAIN |
| 8728 | # ifdef __cplusplus |
| 8729 | extern "C" |
| 8730 | # endif |
| 8731 | int F77_DUMMY_MAIN() { return 1; } |
| 8732 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8733 | int |
| 8734 | main () |
| 8735 | { |
| 8736 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8737 | test_array [0] = 0 |
| 8738 | |
| 8739 | ; |
| 8740 | return 0; |
| 8741 | } |
| 8742 | _ACEOF |
| 8743 | rm -f conftest.$ac_objext |
| 8744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8745 | (eval $ac_compile) 2>&5 |
| 8746 | ac_status=$? |
| 8747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8748 | (exit $ac_status); } && |
| 8749 | { ac_try='test -s conftest.$ac_objext' |
| 8750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8751 | (eval $ac_try) 2>&5 |
| 8752 | ac_status=$? |
| 8753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8754 | (exit $ac_status); }; }; then |
| 8755 | ac_hi=$ac_mid; break |
| 8756 | else |
| 8757 | echo "$as_me: failed program was:" >&5 |
| 8758 | cat conftest.$ac_ext >&5 |
| 8759 | ac_lo=`expr $ac_mid + 1` |
| 8760 | if test $ac_lo -le $ac_mid; then |
| 8761 | ac_lo= ac_hi= |
| 8762 | break |
| 8763 | fi |
| 8764 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8765 | fi |
| 8766 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8767 | done |
| 8768 | else |
| 8769 | echo "$as_me: failed program was:" >&5 |
| 8770 | cat conftest.$ac_ext >&5 |
| 8771 | cat >conftest.$ac_ext <<_ACEOF |
| 8772 | #line $LINENO "configure" |
| 8773 | #include "confdefs.h" |
| 8774 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8775 | #ifdef F77_DUMMY_MAIN |
| 8776 | # ifdef __cplusplus |
| 8777 | extern "C" |
| 8778 | # endif |
| 8779 | int F77_DUMMY_MAIN() { return 1; } |
| 8780 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8781 | int |
| 8782 | main () |
| 8783 | { |
| 8784 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8785 | test_array [0] = 0 |
| 8786 | |
| 8787 | ; |
| 8788 | return 0; |
| 8789 | } |
| 8790 | _ACEOF |
| 8791 | rm -f conftest.$ac_objext |
| 8792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8793 | (eval $ac_compile) 2>&5 |
| 8794 | ac_status=$? |
| 8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8796 | (exit $ac_status); } && |
| 8797 | { ac_try='test -s conftest.$ac_objext' |
| 8798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8799 | (eval $ac_try) 2>&5 |
| 8800 | ac_status=$? |
| 8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8802 | (exit $ac_status); }; }; then |
| 8803 | ac_hi=-1 ac_mid=-1 |
| 8804 | while :; do |
| 8805 | cat >conftest.$ac_ext <<_ACEOF |
| 8806 | #line $LINENO "configure" |
| 8807 | #include "confdefs.h" |
| 8808 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8809 | #ifdef F77_DUMMY_MAIN |
| 8810 | # ifdef __cplusplus |
| 8811 | extern "C" |
| 8812 | # endif |
| 8813 | int F77_DUMMY_MAIN() { return 1; } |
| 8814 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | int |
| 8816 | main () |
| 8817 | { |
| 8818 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8819 | test_array [0] = 0 |
| 8820 | |
| 8821 | ; |
| 8822 | return 0; |
| 8823 | } |
| 8824 | _ACEOF |
| 8825 | rm -f conftest.$ac_objext |
| 8826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8827 | (eval $ac_compile) 2>&5 |
| 8828 | ac_status=$? |
| 8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8830 | (exit $ac_status); } && |
| 8831 | { ac_try='test -s conftest.$ac_objext' |
| 8832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8833 | (eval $ac_try) 2>&5 |
| 8834 | ac_status=$? |
| 8835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8836 | (exit $ac_status); }; }; then |
| 8837 | ac_lo=$ac_mid; break |
| 8838 | else |
| 8839 | echo "$as_me: failed program was:" >&5 |
| 8840 | cat conftest.$ac_ext >&5 |
| 8841 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8842 | if test $ac_mid -le $ac_hi; then |
| 8843 | ac_lo= ac_hi= |
| 8844 | break |
| 8845 | fi |
| 8846 | ac_mid=`expr 2 '*' $ac_mid` |
| 8847 | fi |
| 8848 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8849 | done |
| 8850 | else |
| 8851 | echo "$as_me: failed program was:" >&5 |
| 8852 | cat conftest.$ac_ext >&5 |
| 8853 | ac_lo= ac_hi= |
| 8854 | fi |
| 8855 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8856 | fi |
| 8857 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8858 | # Binary search between lo and hi bounds. |
| 8859 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8860 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8861 | cat >conftest.$ac_ext <<_ACEOF |
| 8862 | #line $LINENO "configure" |
| 8863 | #include "confdefs.h" |
| 8864 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8865 | #ifdef F77_DUMMY_MAIN |
| 8866 | # ifdef __cplusplus |
| 8867 | extern "C" |
| 8868 | # endif |
| 8869 | int F77_DUMMY_MAIN() { return 1; } |
| 8870 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | int |
| 8872 | main () |
| 8873 | { |
| 8874 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8875 | test_array [0] = 0 |
| 8876 | |
| 8877 | ; |
| 8878 | return 0; |
| 8879 | } |
| 8880 | _ACEOF |
| 8881 | rm -f conftest.$ac_objext |
| 8882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8883 | (eval $ac_compile) 2>&5 |
| 8884 | ac_status=$? |
| 8885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8886 | (exit $ac_status); } && |
| 8887 | { ac_try='test -s conftest.$ac_objext' |
| 8888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8889 | (eval $ac_try) 2>&5 |
| 8890 | ac_status=$? |
| 8891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8892 | (exit $ac_status); }; }; then |
| 8893 | ac_hi=$ac_mid |
| 8894 | else |
| 8895 | echo "$as_me: failed program was:" >&5 |
| 8896 | cat conftest.$ac_ext >&5 |
| 8897 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8898 | fi |
| 8899 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8900 | done |
| 8901 | case $ac_lo in |
| 8902 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8903 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8904 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8905 | { (exit 1); exit 1; }; } ;; |
| 8906 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8907 | else |
| 8908 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8909 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8910 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8911 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8912 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8913 | cat >conftest.$ac_ext <<_ACEOF |
| 8914 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8915 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8916 | $ac_includes_default |
| 8917 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8918 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8919 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8920 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8921 | #ifdef F77_DUMMY_MAIN |
| 8922 | # ifdef __cplusplus |
| 8923 | extern "C" |
| 8924 | # endif |
| 8925 | int F77_DUMMY_MAIN() { return 1; } |
| 8926 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | int |
| 8928 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8929 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 | |
| 8931 | FILE *f = fopen ("conftest.val", "w"); |
| 8932 | if (! f) |
| 8933 | exit (1); |
| 8934 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8935 | { |
| 8936 | long i = longval (); |
| 8937 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8938 | exit (1); |
| 8939 | fprintf (f, "%ld\n", i); |
| 8940 | } |
| 8941 | else |
| 8942 | { |
| 8943 | unsigned long i = ulongval (); |
| 8944 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8945 | exit (1); |
| 8946 | fprintf (f, "%lu\n", i); |
| 8947 | } |
| 8948 | exit (ferror (f) || fclose (f) != 0); |
| 8949 | |
| 8950 | ; |
| 8951 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8952 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | _ACEOF |
| 8954 | rm -f conftest$ac_exeext |
| 8955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8956 | (eval $ac_link) 2>&5 |
| 8957 | ac_status=$? |
| 8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8959 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8961 | (eval $ac_try) 2>&5 |
| 8962 | ac_status=$? |
| 8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8964 | (exit $ac_status); }; }; then |
| 8965 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8968 | echo "$as_me: failed program was:" >&5 |
| 8969 | cat conftest.$ac_ext >&5 |
| 8970 | ( exit $ac_status ) |
| 8971 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8972 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8973 | { (exit 1); exit 1; }; } |
| 8974 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8975 | 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] | 8976 | fi |
| 8977 | fi |
| 8978 | rm -f conftest.val |
| 8979 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8980 | ac_cv_sizeof_uintptr_t=0 |
| 8981 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8982 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8984 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8985 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8986 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8987 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8988 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8989 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8990 | fi |
| 8991 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8992 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8994 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8995 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8997 | else |
| 8998 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8999 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9001 | cat >conftest.$ac_ext <<_ACEOF |
| 9002 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9003 | #include "confdefs.h" |
| 9004 | #include <stdio.h> |
| 9005 | #include <sys/types.h> |
| 9006 | main() |
| 9007 | { |
| 9008 | FILE *f=fopen("conftestval", "w"); |
| 9009 | if (!f) exit(1); |
| 9010 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9011 | exit(0); |
| 9012 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9013 | _ACEOF |
| 9014 | rm -f conftest$ac_exeext |
| 9015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9016 | (eval $ac_link) 2>&5 |
| 9017 | ac_status=$? |
| 9018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9019 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9021 | (eval $ac_try) 2>&5 |
| 9022 | ac_status=$? |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9025 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9027 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9028 | echo "$as_me: failed program was:" >&5 |
| 9029 | cat conftest.$ac_ext >&5 |
| 9030 | ( exit $ac_status ) |
| 9031 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9032 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9033 | 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] | 9034 | fi |
| 9035 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9036 | fi |
| 9037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9038 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9039 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9040 | |
| 9041 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9042 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9043 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9044 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9047 | 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] | 9048 | if test "$have_long_long" = yes -a \ |
| 9049 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9050 | "$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] | 9051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9052 | cat >>confdefs.h <<\_ACEOF |
| 9053 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9054 | _ACEOF |
| 9055 | |
| 9056 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9057 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | echo "$as_me:$LINENO: result: no" >&5 |
| 9060 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9061 | fi |
| 9062 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9063 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9064 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9065 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9066 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9068 | else |
| 9069 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9070 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | cat >conftest.$ac_ext <<_ACEOF |
| 9073 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9074 | #include "confdefs.h" |
| 9075 | #include <stdio.h> |
| 9076 | #include <time.h> |
| 9077 | main() |
| 9078 | { |
| 9079 | FILE *f=fopen("conftestval", "w"); |
| 9080 | if (!f) exit(1); |
| 9081 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9082 | exit(0); |
| 9083 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9084 | _ACEOF |
| 9085 | rm -f conftest$ac_exeext |
| 9086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9087 | (eval $ac_link) 2>&5 |
| 9088 | ac_status=$? |
| 9089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9090 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9092 | (eval $ac_try) 2>&5 |
| 9093 | ac_status=$? |
| 9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9095 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9096 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9099 | echo "$as_me: failed program was:" >&5 |
| 9100 | cat conftest.$ac_ext >&5 |
| 9101 | ( exit $ac_status ) |
| 9102 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9103 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9104 | 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] | 9105 | fi |
| 9106 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9107 | fi |
| 9108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9109 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9110 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9111 | |
| 9112 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9113 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9115 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9116 | |
| 9117 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9118 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9119 | ac_save_cc="$CC" |
| 9120 | if test "$ac_cv_kpthread" = "yes" |
| 9121 | then CC="$CC -Kpthread" |
| 9122 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9124 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9125 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9126 | cat >conftest.$ac_ext <<_ACEOF |
| 9127 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9128 | #include "confdefs.h" |
| 9129 | #include <pthread.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9130 | #ifdef F77_DUMMY_MAIN |
| 9131 | # ifdef __cplusplus |
| 9132 | extern "C" |
| 9133 | # endif |
| 9134 | int F77_DUMMY_MAIN() { return 1; } |
| 9135 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9136 | int |
| 9137 | main () |
| 9138 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9139 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9140 | ; |
| 9141 | return 0; |
| 9142 | } |
| 9143 | _ACEOF |
| 9144 | rm -f conftest.$ac_objext |
| 9145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9146 | (eval $ac_compile) 2>&5 |
| 9147 | ac_status=$? |
| 9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9149 | (exit $ac_status); } && |
| 9150 | { ac_try='test -s conftest.$ac_objext' |
| 9151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9152 | (eval $ac_try) 2>&5 |
| 9153 | ac_status=$? |
| 9154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9155 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9156 | have_pthread_t=yes |
| 9157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9158 | echo "$as_me: failed program was:" >&5 |
| 9159 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9162 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9163 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9164 | if test "$have_pthread_t" = yes ; then |
| 9165 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9166 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9167 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9168 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9170 | else |
| 9171 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9172 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9174 | cat >conftest.$ac_ext <<_ACEOF |
| 9175 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9176 | #include "confdefs.h" |
| 9177 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9178 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9179 | main() |
| 9180 | { |
| 9181 | FILE *f=fopen("conftestval", "w"); |
| 9182 | if (!f) exit(1); |
| 9183 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9184 | exit(0); |
| 9185 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9186 | _ACEOF |
| 9187 | rm -f conftest$ac_exeext |
| 9188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9189 | (eval $ac_link) 2>&5 |
| 9190 | ac_status=$? |
| 9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9192 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9194 | (eval $ac_try) 2>&5 |
| 9195 | ac_status=$? |
| 9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9197 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9198 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9201 | echo "$as_me: failed program was:" >&5 |
| 9202 | cat conftest.$ac_ext >&5 |
| 9203 | ( exit $ac_status ) |
| 9204 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9205 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9206 | 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] | 9207 | fi |
| 9208 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9209 | fi |
| 9210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9211 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9212 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9213 | |
| 9214 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9215 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9216 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9217 | |
| 9218 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9219 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9221 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9222 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9223 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9224 | if test "${enable_toolbox_glue+set}" = set; then |
| 9225 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9227 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9228 | |
| 9229 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9231 | case $ac_sys_system/$ac_sys_release in |
| 9232 | Darwin/*) |
| 9233 | enable_toolbox_glue="yes";; |
| 9234 | *) |
| 9235 | enable_toolbox_glue="no";; |
| 9236 | esac |
| 9237 | fi |
| 9238 | case "$enable_toolbox_glue" in |
| 9239 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9240 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9241 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9242 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | |
| 9244 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9245 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9246 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9247 | |
| 9248 | ;; |
| 9249 | *) |
| 9250 | extra_frameworks="" |
| 9251 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9252 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9253 | ;; |
| 9254 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9256 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9257 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9258 | |
| 9259 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9260 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9261 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9262 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9263 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9264 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9265 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9266 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9267 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9268 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9269 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9270 | esac |
| 9271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9273 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9274 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9275 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9276 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9278 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9279 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9280 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9281 | cat >>confdefs.h <<\_ACEOF |
| 9282 | #define WITH_NEXT_FRAMEWORK 1 |
| 9283 | _ACEOF |
| 9284 | |
| 9285 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9286 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | echo "$as_me:$LINENO: result: no" >&5 |
| 9289 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9290 | fi |
| 9291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9293 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9294 | case $ac_sys_system/$ac_sys_release in |
| 9295 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +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 WITH_DYLD 1 |
| 9299 | _ACEOF |
| 9300 | |
| 9301 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9302 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9303 | ;; |
| 9304 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9305 | echo "$as_me:$LINENO: result: no" >&5 |
| 9306 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9307 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9308 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9309 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9310 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9311 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9312 | |
| 9313 | |
| 9314 | |
| 9315 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9316 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9317 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9319 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9320 | if test -z "$SO" |
| 9321 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9322 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9323 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9324 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9325 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9326 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9327 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9328 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9329 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9330 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9331 | # -- "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] | 9332 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9333 | # 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] | 9334 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9335 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9336 | if test -z "$LDSHARED" |
| 9337 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9338 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9339 | AIX*) |
| 9340 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9341 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9342 | ;; |
| 9343 | BeOS*) |
| 9344 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9345 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9346 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9347 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9348 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9349 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9351 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9352 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9353 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9354 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9355 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9356 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9357 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9358 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9359 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9360 | if test "$enable_framework" ; then |
| 9361 | # Link against the framework. All externals should be defined. |
| 9362 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9363 | else |
| 9364 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9365 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9366 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9367 | Darwin/*) |
| 9368 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9369 | if test "$enable_framework" ; then |
| 9370 | # Link against the framework. All externals should be defined. |
| 9371 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9372 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9373 | # No framework, use the Python app as bundle-loader |
| 9374 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9375 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9376 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9377 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9378 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9379 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9380 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9381 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9382 | then |
| 9383 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9384 | else |
| 9385 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9386 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9387 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9388 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9389 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9390 | then LDSHARED='$(CC) -shared' |
| 9391 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9392 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9393 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9394 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9395 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9396 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9397 | *) LDSHARED="ld";; |
| 9398 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9400 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9401 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9402 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9403 | # 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] | 9404 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9406 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9407 | if test -z "$CCSHARED" |
| 9408 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9409 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9410 | SunOS*) if test "$GCC" = yes; |
| 9411 | then CCSHARED="-fPIC"; |
| 9412 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9413 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9414 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9415 | else CCSHARED="+z"; |
| 9416 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9417 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9418 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9419 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9420 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9421 | if test "$GCC" = "yes" |
| 9422 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9423 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9424 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9425 | SCO_SV*) |
| 9426 | if test "$GCC" = "yes" |
| 9427 | then CCSHARED="-fPIC" |
| 9428 | else CCSHARED="-Kpic -belf" |
| 9429 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9430 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9431 | IRIX*/6*) case $CC in |
| 9432 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9433 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9434 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9435 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9436 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9437 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9439 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9440 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9441 | # 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] | 9442 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9443 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9444 | if test -z "$LINKFORSHARED" |
| 9445 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9446 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9447 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9448 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9449 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9450 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9451 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9452 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9453 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9455 | # -u __dummy makes the linker aware of the objc runtime |
| 9456 | # in System.framework; otherwise, __objcInit (referenced in |
| 9457 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9458 | # loading of any modules which reference it in System.framework. |
| 9459 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9460 | # not used by the core itself but which needs to be in the core so |
| 9461 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 9462 | # -prebind is no longer used, because it actually seems to give a |
| 9463 | # slowdown in stead of a speedup, maybe due to the large number of |
| 9464 | # dynamic loads Python does. |
| 9465 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9466 | if test "$enable_framework" |
| 9467 | then |
| 9468 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9469 | fi |
| 9470 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9471 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9472 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9473 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9474 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9475 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9476 | then |
| 9477 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9478 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9479 | SunOS/5*) case $CC in |
| 9480 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9481 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9482 | then |
| 9483 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9484 | fi;; |
| 9485 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9486 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9488 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9489 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9490 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9493 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9494 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9495 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9496 | case $ac_sys_system in |
| 9497 | CYGWIN*) |
| 9498 | # Cygwin needs CCSHARED when building extension DLLs |
| 9499 | # but not when building the interpreter DLL. |
| 9500 | CFLAGSFORSHARED='';; |
| 9501 | *) |
| 9502 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9503 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9504 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9506 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9507 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9508 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9509 | # library (with --enable-shared). |
| 9510 | # 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] | 9511 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9512 | # if it is not required, since it creates a dependency of the shared library |
| 9513 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9514 | # don't need to link LIBS explicitly. The default should be only changed |
| 9515 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9516 | |
| 9517 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9518 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9519 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9520 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9521 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9522 | esac |
| 9523 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9524 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9525 | |
| 9526 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9527 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9528 | |
| 9529 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9530 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9531 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9534 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9535 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | cat >conftest.$ac_ext <<_ACEOF |
| 9537 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9538 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9539 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9540 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9541 | #ifdef __cplusplus |
| 9542 | extern "C" |
| 9543 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9544 | /* 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] | 9545 | builtin and then its argument prototype would still apply. */ |
| 9546 | char dlopen (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9547 | #ifdef F77_DUMMY_MAIN |
| 9548 | # ifdef __cplusplus |
| 9549 | extern "C" |
| 9550 | # endif |
| 9551 | int F77_DUMMY_MAIN() { return 1; } |
| 9552 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 | int |
| 9554 | main () |
| 9555 | { |
| 9556 | dlopen (); |
| 9557 | ; |
| 9558 | return 0; |
| 9559 | } |
| 9560 | _ACEOF |
| 9561 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9563 | (eval $ac_link) 2>&5 |
| 9564 | ac_status=$? |
| 9565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9566 | (exit $ac_status); } && |
| 9567 | { ac_try='test -s conftest$ac_exeext' |
| 9568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9569 | (eval $ac_try) 2>&5 |
| 9570 | ac_status=$? |
| 9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9572 | (exit $ac_status); }; }; then |
| 9573 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9575 | echo "$as_me: failed program was:" >&5 |
| 9576 | cat conftest.$ac_ext >&5 |
| 9577 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9578 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9579 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9580 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9581 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9582 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9583 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9584 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9585 | cat >>confdefs.h <<_ACEOF |
| 9586 | #define HAVE_LIBDL 1 |
| 9587 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9588 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9589 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9590 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9591 | fi |
| 9592 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | |
| 9594 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9595 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9596 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9598 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9599 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9600 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9601 | cat >conftest.$ac_ext <<_ACEOF |
| 9602 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9603 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9605 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | #ifdef __cplusplus |
| 9607 | extern "C" |
| 9608 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9609 | /* 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] | 9610 | builtin and then its argument prototype would still apply. */ |
| 9611 | char shl_load (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9612 | #ifdef F77_DUMMY_MAIN |
| 9613 | # ifdef __cplusplus |
| 9614 | extern "C" |
| 9615 | # endif |
| 9616 | int F77_DUMMY_MAIN() { return 1; } |
| 9617 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | int |
| 9619 | main () |
| 9620 | { |
| 9621 | shl_load (); |
| 9622 | ; |
| 9623 | return 0; |
| 9624 | } |
| 9625 | _ACEOF |
| 9626 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9628 | (eval $ac_link) 2>&5 |
| 9629 | ac_status=$? |
| 9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9631 | (exit $ac_status); } && |
| 9632 | { ac_try='test -s conftest$ac_exeext' |
| 9633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9634 | (eval $ac_try) 2>&5 |
| 9635 | ac_status=$? |
| 9636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9637 | (exit $ac_status); }; }; then |
| 9638 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9640 | echo "$as_me: failed program was:" >&5 |
| 9641 | cat conftest.$ac_ext >&5 |
| 9642 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9643 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9644 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9645 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9646 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9648 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9649 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9650 | cat >>confdefs.h <<_ACEOF |
| 9651 | #define HAVE_LIBDLD 1 |
| 9652 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9653 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9654 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9655 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9656 | fi |
| 9657 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9658 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9659 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9660 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9662 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9663 | ac_func_search_save_LIBS=$LIBS |
| 9664 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9665 | cat >conftest.$ac_ext <<_ACEOF |
| 9666 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9667 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9669 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | #ifdef __cplusplus |
| 9671 | extern "C" |
| 9672 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9673 | /* 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] | 9674 | builtin and then its argument prototype would still apply. */ |
| 9675 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9676 | #ifdef F77_DUMMY_MAIN |
| 9677 | # ifdef __cplusplus |
| 9678 | extern "C" |
| 9679 | # endif |
| 9680 | int F77_DUMMY_MAIN() { return 1; } |
| 9681 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | int |
| 9683 | main () |
| 9684 | { |
| 9685 | sem_init (); |
| 9686 | ; |
| 9687 | return 0; |
| 9688 | } |
| 9689 | _ACEOF |
| 9690 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9692 | (eval $ac_link) 2>&5 |
| 9693 | ac_status=$? |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); } && |
| 9696 | { ac_try='test -s conftest$ac_exeext' |
| 9697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9698 | (eval $ac_try) 2>&5 |
| 9699 | ac_status=$? |
| 9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9701 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9702 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | echo "$as_me: failed program was:" >&5 |
| 9705 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9706 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | 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] | 9708 | if test "$ac_cv_search_sem_init" = no; then |
| 9709 | for ac_lib in rt posix4; do |
| 9710 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9711 | cat >conftest.$ac_ext <<_ACEOF |
| 9712 | #line $LINENO "configure" |
| 9713 | #include "confdefs.h" |
| 9714 | |
| 9715 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9716 | #ifdef __cplusplus |
| 9717 | extern "C" |
| 9718 | #endif |
| 9719 | /* We use char because int might match the return type of a gcc2 |
| 9720 | builtin and then its argument prototype would still apply. */ |
| 9721 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9722 | #ifdef F77_DUMMY_MAIN |
| 9723 | # ifdef __cplusplus |
| 9724 | extern "C" |
| 9725 | # endif |
| 9726 | int F77_DUMMY_MAIN() { return 1; } |
| 9727 | #endif |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9728 | int |
| 9729 | main () |
| 9730 | { |
| 9731 | sem_init (); |
| 9732 | ; |
| 9733 | return 0; |
| 9734 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9736 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9738 | (eval $ac_link) 2>&5 |
| 9739 | ac_status=$? |
| 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9741 | (exit $ac_status); } && |
| 9742 | { ac_try='test -s conftest$ac_exeext' |
| 9743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9744 | (eval $ac_try) 2>&5 |
| 9745 | ac_status=$? |
| 9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9747 | (exit $ac_status); }; }; then |
| 9748 | ac_cv_search_sem_init="-l$ac_lib" |
| 9749 | break |
| 9750 | else |
| 9751 | echo "$as_me: failed program was:" >&5 |
| 9752 | cat conftest.$ac_ext >&5 |
| 9753 | fi |
| 9754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9755 | done |
| 9756 | fi |
| 9757 | LIBS=$ac_func_search_save_LIBS |
| 9758 | fi |
| 9759 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9760 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9761 | if test "$ac_cv_search_sem_init" != no; then |
| 9762 | 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] | 9763 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9764 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9765 | # 'Real Time' functions on Solaris, |
| 9766 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9767 | |
| 9768 | # checks for system dependent C++ extensions support |
| 9769 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9770 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9771 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9772 | cat >conftest.$ac_ext <<_ACEOF |
| 9773 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9774 | #include "confdefs.h" |
| 9775 | #include "/usr/lpp/xlC/include/load.h" |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9776 | #ifdef F77_DUMMY_MAIN |
| 9777 | # ifdef __cplusplus |
| 9778 | extern "C" |
| 9779 | # endif |
| 9780 | int F77_DUMMY_MAIN() { return 1; } |
| 9781 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 | int |
| 9783 | main () |
| 9784 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9785 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9786 | ; |
| 9787 | return 0; |
| 9788 | } |
| 9789 | _ACEOF |
| 9790 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9792 | (eval $ac_link) 2>&5 |
| 9793 | ac_status=$? |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); } && |
| 9796 | { ac_try='test -s conftest$ac_exeext' |
| 9797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9798 | (eval $ac_try) 2>&5 |
| 9799 | ac_status=$? |
| 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | cat >>confdefs.h <<\_ACEOF |
| 9804 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9805 | _ACEOF |
| 9806 | |
| 9807 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9808 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9810 | echo "$as_me: failed program was:" >&5 |
| 9811 | cat conftest.$ac_ext >&5 |
| 9812 | echo "$as_me:$LINENO: result: no" >&5 |
| 9813 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9816 | *) ;; |
| 9817 | esac |
| 9818 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9819 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 9820 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9821 | # BeOS' sockets are stashed in libnet. |
| 9822 | case "$ac_sys_system" in |
| 9823 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9824 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9825 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9826 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9827 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9831 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | cat >conftest.$ac_ext <<_ACEOF |
| 9833 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9834 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9836 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | #ifdef __cplusplus |
| 9838 | extern "C" |
| 9839 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9840 | /* 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] | 9841 | builtin and then its argument prototype would still apply. */ |
| 9842 | char t_open (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9843 | #ifdef F77_DUMMY_MAIN |
| 9844 | # ifdef __cplusplus |
| 9845 | extern "C" |
| 9846 | # endif |
| 9847 | int F77_DUMMY_MAIN() { return 1; } |
| 9848 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | int |
| 9850 | main () |
| 9851 | { |
| 9852 | t_open (); |
| 9853 | ; |
| 9854 | return 0; |
| 9855 | } |
| 9856 | _ACEOF |
| 9857 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9859 | (eval $ac_link) 2>&5 |
| 9860 | ac_status=$? |
| 9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9862 | (exit $ac_status); } && |
| 9863 | { ac_try='test -s conftest$ac_exeext' |
| 9864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9865 | (eval $ac_try) 2>&5 |
| 9866 | ac_status=$? |
| 9867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9868 | (exit $ac_status); }; }; then |
| 9869 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9871 | echo "$as_me: failed program was:" >&5 |
| 9872 | cat conftest.$ac_ext >&5 |
| 9873 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9874 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9876 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9877 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9879 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9880 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9881 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9882 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9883 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9885 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9886 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9889 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9890 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | cat >conftest.$ac_ext <<_ACEOF |
| 9892 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9893 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9894 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9895 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9896 | #ifdef __cplusplus |
| 9897 | extern "C" |
| 9898 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9899 | /* 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] | 9900 | builtin and then its argument prototype would still apply. */ |
| 9901 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9902 | #ifdef F77_DUMMY_MAIN |
| 9903 | # ifdef __cplusplus |
| 9904 | extern "C" |
| 9905 | # endif |
| 9906 | int F77_DUMMY_MAIN() { return 1; } |
| 9907 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | int |
| 9909 | main () |
| 9910 | { |
| 9911 | socket (); |
| 9912 | ; |
| 9913 | return 0; |
| 9914 | } |
| 9915 | _ACEOF |
| 9916 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9918 | (eval $ac_link) 2>&5 |
| 9919 | ac_status=$? |
| 9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9921 | (exit $ac_status); } && |
| 9922 | { ac_try='test -s conftest$ac_exeext' |
| 9923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9924 | (eval $ac_try) 2>&5 |
| 9925 | ac_status=$? |
| 9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9927 | (exit $ac_status); }; }; then |
| 9928 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | echo "$as_me: failed program was:" >&5 |
| 9931 | cat conftest.$ac_ext >&5 |
| 9932 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9933 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9935 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9936 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9937 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9938 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9939 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9940 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9941 | fi |
| 9942 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9943 | ;; |
| 9944 | esac |
| 9945 | case "$ac_sys_system" in |
| 9946 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9947 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9948 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9949 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9953 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | cat >conftest.$ac_ext <<_ACEOF |
| 9955 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9956 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9957 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9958 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | #ifdef __cplusplus |
| 9960 | extern "C" |
| 9961 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9962 | /* 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] | 9963 | builtin and then its argument prototype would still apply. */ |
| 9964 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9965 | #ifdef F77_DUMMY_MAIN |
| 9966 | # ifdef __cplusplus |
| 9967 | extern "C" |
| 9968 | # endif |
| 9969 | int F77_DUMMY_MAIN() { return 1; } |
| 9970 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9971 | int |
| 9972 | main () |
| 9973 | { |
| 9974 | socket (); |
| 9975 | ; |
| 9976 | return 0; |
| 9977 | } |
| 9978 | _ACEOF |
| 9979 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9981 | (eval $ac_link) 2>&5 |
| 9982 | ac_status=$? |
| 9983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9984 | (exit $ac_status); } && |
| 9985 | { ac_try='test -s conftest$ac_exeext' |
| 9986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9987 | (eval $ac_try) 2>&5 |
| 9988 | ac_status=$? |
| 9989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9990 | (exit $ac_status); }; }; then |
| 9991 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9993 | echo "$as_me: failed program was:" >&5 |
| 9994 | cat conftest.$ac_ext >&5 |
| 9995 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9997 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9998 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10001 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10002 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10003 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10004 | fi |
| 10005 | # BeOS |
| 10006 | ;; |
| 10007 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10009 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10010 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10011 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10012 | # Check whether --with-libs or --without-libs was given. |
| 10013 | if test "${with_libs+set}" = set; then |
| 10014 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10015 | |
| 10016 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10017 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10018 | LIBS="$withval $LIBS" |
| 10019 | |
| 10020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10021 | echo "$as_me:$LINENO: result: no" >&5 |
| 10022 | echo "${ECHO_T}no" >&6 |
| 10023 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10024 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10025 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10026 | |
| 10027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10029 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10030 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10031 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10032 | if test "${with_signal_module+set}" = set; then |
| 10033 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10035 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10036 | |
| 10037 | if test -z "$with_signal_module" |
| 10038 | then with_signal_module="yes" |
| 10039 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10040 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10041 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10042 | |
| 10043 | if test "${with_signal_module}" = "yes"; then |
| 10044 | USE_SIGNAL_MODULE="" |
| 10045 | SIGNAL_OBJS="" |
| 10046 | else |
| 10047 | USE_SIGNAL_MODULE="#" |
| 10048 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10049 | fi |
| 10050 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10051 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10052 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10053 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10055 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10056 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10057 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10058 | |
| 10059 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10060 | if test "${with_dec_threads+set}" = set; then |
| 10061 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10062 | |
| 10063 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10064 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10065 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10066 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10067 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10068 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10069 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10070 | echo "$as_me:$LINENO: result: no" >&5 |
| 10071 | echo "${ECHO_T}no" >&6 |
| 10072 | fi; |
| 10073 | |
| 10074 | # Templates for things AC_DEFINEd more than once. |
| 10075 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10076 | |
| 10077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10078 | |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | |
| 10083 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10084 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10085 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10086 | # Check whether --with-threads or --without-threads was given. |
| 10087 | if test "${with_threads+set}" = set; then |
| 10088 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10091 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10092 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10093 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10094 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10095 | if test "${with_thread+set}" = set; then |
| 10096 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10097 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10098 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10099 | |
| 10100 | if test -z "$with_threads" |
| 10101 | then with_threads="yes" |
| 10102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10104 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10105 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10106 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10107 | if test "$with_threads" = "no" |
| 10108 | then |
| 10109 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10110 | elif test "$ac_cv_pthread_is_default" = yes |
| 10111 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10112 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10113 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10114 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10115 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10116 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10117 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10118 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10120 | |
| 10121 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10122 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10123 | elif test "$ac_cv_kpthread" = "yes" |
| 10124 | then |
| 10125 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10126 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10127 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10129 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10130 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10131 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10132 | else |
| 10133 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10134 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10135 | fi |
| 10136 | if test ! -z "$withval" -a -d "$withval" |
| 10137 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10138 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10139 | |
| 10140 | # According to the POSIX spec, a pthreads implementation must |
| 10141 | # 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] | 10142 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10143 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10144 | cat >conftest.$ac_ext <<_ACEOF |
| 10145 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10146 | #include "confdefs.h" |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10147 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10148 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10149 | #ifdef _POSIX_THREADS |
| 10150 | yes |
| 10151 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | |
| 10153 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10155 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10156 | unistd_defines_pthreads=yes |
| 10157 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10158 | unistd_defines_pthreads=no |
| 10159 | fi |
| 10160 | rm -f conftest* |
| 10161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10162 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10163 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10166 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10167 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10169 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10170 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10171 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10172 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10174 | fi |
| 10175 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10176 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10178 | # Is the header compilable? |
| 10179 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10180 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10181 | cat >conftest.$ac_ext <<_ACEOF |
| 10182 | #line $LINENO "configure" |
| 10183 | #include "confdefs.h" |
| 10184 | $ac_includes_default |
| 10185 | #include <cthreads.h> |
| 10186 | _ACEOF |
| 10187 | rm -f conftest.$ac_objext |
| 10188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10189 | (eval $ac_compile) 2>&5 |
| 10190 | ac_status=$? |
| 10191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10192 | (exit $ac_status); } && |
| 10193 | { ac_try='test -s conftest.$ac_objext' |
| 10194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10195 | (eval $ac_try) 2>&5 |
| 10196 | ac_status=$? |
| 10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10198 | (exit $ac_status); }; }; then |
| 10199 | ac_header_compiler=yes |
| 10200 | else |
| 10201 | echo "$as_me: failed program was:" >&5 |
| 10202 | cat conftest.$ac_ext >&5 |
| 10203 | ac_header_compiler=no |
| 10204 | fi |
| 10205 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10206 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10207 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10208 | |
| 10209 | # Is the header present? |
| 10210 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10211 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10212 | cat >conftest.$ac_ext <<_ACEOF |
| 10213 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10214 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10215 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | _ACEOF |
| 10217 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10218 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10219 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10220 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | rm -f conftest.er1 |
| 10222 | cat conftest.err >&5 |
| 10223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10224 | (exit $ac_status); } >/dev/null; then |
| 10225 | if test -s conftest.err; then |
| 10226 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10227 | else |
| 10228 | ac_cpp_err= |
| 10229 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10231 | ac_cpp_err=yes |
| 10232 | fi |
| 10233 | if test -z "$ac_cpp_err"; then |
| 10234 | ac_header_preproc=yes |
| 10235 | else |
| 10236 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10237 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10238 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10239 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10240 | rm -f conftest.err conftest.$ac_ext |
| 10241 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10242 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10243 | |
| 10244 | # So? What about this header? |
| 10245 | case $ac_header_compiler:$ac_header_preproc in |
| 10246 | yes:no ) |
| 10247 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10248 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10249 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10250 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10251 | no:yes ) |
| 10252 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10253 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10254 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10255 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10256 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10257 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10258 | esac |
| 10259 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10260 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10261 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10263 | else |
| 10264 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10265 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10267 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10268 | |
| 10269 | fi |
| 10270 | if test $ac_cv_header_cthreads_h = yes; then |
| 10271 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10272 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10275 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10276 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10277 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10279 | |
| 10280 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10281 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10282 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10283 | |
| 10284 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10285 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10286 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10289 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10290 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10291 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10293 | fi |
| 10294 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10295 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10297 | # Is the header compilable? |
| 10298 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10299 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10300 | cat >conftest.$ac_ext <<_ACEOF |
| 10301 | #line $LINENO "configure" |
| 10302 | #include "confdefs.h" |
| 10303 | $ac_includes_default |
| 10304 | #include <mach/cthreads.h> |
| 10305 | _ACEOF |
| 10306 | rm -f conftest.$ac_objext |
| 10307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10308 | (eval $ac_compile) 2>&5 |
| 10309 | ac_status=$? |
| 10310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10311 | (exit $ac_status); } && |
| 10312 | { ac_try='test -s conftest.$ac_objext' |
| 10313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10314 | (eval $ac_try) 2>&5 |
| 10315 | ac_status=$? |
| 10316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10317 | (exit $ac_status); }; }; then |
| 10318 | ac_header_compiler=yes |
| 10319 | else |
| 10320 | echo "$as_me: failed program was:" >&5 |
| 10321 | cat conftest.$ac_ext >&5 |
| 10322 | ac_header_compiler=no |
| 10323 | fi |
| 10324 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10326 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10327 | |
| 10328 | # Is the header present? |
| 10329 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10330 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10331 | cat >conftest.$ac_ext <<_ACEOF |
| 10332 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10333 | #include "confdefs.h" |
| 10334 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10335 | _ACEOF |
| 10336 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10337 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10338 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10339 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | rm -f conftest.er1 |
| 10341 | cat conftest.err >&5 |
| 10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10343 | (exit $ac_status); } >/dev/null; then |
| 10344 | if test -s conftest.err; then |
| 10345 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10346 | else |
| 10347 | ac_cpp_err= |
| 10348 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | ac_cpp_err=yes |
| 10351 | fi |
| 10352 | if test -z "$ac_cpp_err"; then |
| 10353 | ac_header_preproc=yes |
| 10354 | else |
| 10355 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10356 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10358 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10359 | rm -f conftest.err conftest.$ac_ext |
| 10360 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10361 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10362 | |
| 10363 | # So? What about this header? |
| 10364 | case $ac_header_compiler:$ac_header_preproc in |
| 10365 | yes:no ) |
| 10366 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10367 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10368 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10369 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10370 | no:yes ) |
| 10371 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10372 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10373 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10374 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10375 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10376 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10377 | esac |
| 10378 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10379 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10380 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10382 | else |
| 10383 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10384 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10386 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10387 | |
| 10388 | fi |
| 10389 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10390 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10391 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10395 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10396 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | |
| 10399 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10400 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10401 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10402 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10403 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10404 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10406 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10407 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10408 | |
| 10409 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10410 | if test "${with_pth+set}" = set; then |
| 10411 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10412 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10414 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | #define WITH_THREAD 1 |
| 10416 | _ACEOF |
| 10417 | |
| 10418 | |
| 10419 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10420 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10421 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10422 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10423 | LIBS="-lpth $LIBS" |
| 10424 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10425 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10426 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10427 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10428 | |
| 10429 | # Just looking for pthread_create in libpthread is not enough: |
| 10430 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10431 | # So we really have to include pthread.h, and then link. |
| 10432 | _libs=$LIBS |
| 10433 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10434 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10435 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10436 | cat >conftest.$ac_ext <<_ACEOF |
| 10437 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10438 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10439 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10440 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10441 | void * start_routine (void *arg) { exit (0); } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10442 | #ifdef F77_DUMMY_MAIN |
| 10443 | # ifdef __cplusplus |
| 10444 | extern "C" |
| 10445 | # endif |
| 10446 | int F77_DUMMY_MAIN() { return 1; } |
| 10447 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | int |
| 10449 | main () |
| 10450 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10451 | |
| 10452 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10453 | ; |
| 10454 | return 0; |
| 10455 | } |
| 10456 | _ACEOF |
| 10457 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10459 | (eval $ac_link) 2>&5 |
| 10460 | ac_status=$? |
| 10461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10462 | (exit $ac_status); } && |
| 10463 | { ac_try='test -s conftest$ac_exeext' |
| 10464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10465 | (eval $ac_try) 2>&5 |
| 10466 | ac_status=$? |
| 10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10468 | (exit $ac_status); }; }; then |
| 10469 | |
| 10470 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10471 | echo "${ECHO_T}yes" >&6 |
| 10472 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10473 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10474 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10475 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10476 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10477 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10479 | echo "$as_me: failed program was:" >&5 |
| 10480 | cat conftest.$ac_ext >&5 |
| 10481 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10482 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10484 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10485 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | cat >conftest.$ac_ext <<_ACEOF |
| 10489 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10490 | #include "confdefs.h" |
| 10491 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10492 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10493 | #include <assert.h> |
| 10494 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10495 | #ifdef __cplusplus |
| 10496 | extern "C" |
| 10497 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10498 | /* 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] | 10499 | builtin and then its argument prototype would still apply. */ |
| 10500 | char pthread_detach (); |
| 10501 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10502 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10503 | #ifdef F77_DUMMY_MAIN |
| 10504 | # ifdef __cplusplus |
| 10505 | extern "C" |
| 10506 | # endif |
| 10507 | int F77_DUMMY_MAIN() { return 1; } |
| 10508 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10509 | int |
| 10510 | main () |
| 10511 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10512 | /* The GNU C library defines this for functions which it implements |
| 10513 | to always fail with ENOSYS. Some functions are actually named |
| 10514 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10515 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10516 | choke me |
| 10517 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10518 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10519 | #endif |
| 10520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10521 | ; |
| 10522 | return 0; |
| 10523 | } |
| 10524 | _ACEOF |
| 10525 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10527 | (eval $ac_link) 2>&5 |
| 10528 | ac_status=$? |
| 10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10530 | (exit $ac_status); } && |
| 10531 | { ac_try='test -s conftest$ac_exeext' |
| 10532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10533 | (eval $ac_try) 2>&5 |
| 10534 | ac_status=$? |
| 10535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10536 | (exit $ac_status); }; }; then |
| 10537 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | echo "$as_me: failed program was:" >&5 |
| 10540 | cat conftest.$ac_ext >&5 |
| 10541 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10542 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10543 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10545 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10546 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10547 | if test $ac_cv_func_pthread_detach = yes; then |
| 10548 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10549 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10550 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10551 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10552 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10553 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10554 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10555 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10556 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10557 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10558 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10559 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10561 | fi |
| 10562 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10563 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10564 | else |
| 10565 | # Is the header compilable? |
| 10566 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10567 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10568 | cat >conftest.$ac_ext <<_ACEOF |
| 10569 | #line $LINENO "configure" |
| 10570 | #include "confdefs.h" |
| 10571 | $ac_includes_default |
| 10572 | #include <atheos/threads.h> |
| 10573 | _ACEOF |
| 10574 | rm -f conftest.$ac_objext |
| 10575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10576 | (eval $ac_compile) 2>&5 |
| 10577 | ac_status=$? |
| 10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10579 | (exit $ac_status); } && |
| 10580 | { ac_try='test -s conftest.$ac_objext' |
| 10581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10582 | (eval $ac_try) 2>&5 |
| 10583 | ac_status=$? |
| 10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10585 | (exit $ac_status); }; }; then |
| 10586 | ac_header_compiler=yes |
| 10587 | else |
| 10588 | echo "$as_me: failed program was:" >&5 |
| 10589 | cat conftest.$ac_ext >&5 |
| 10590 | ac_header_compiler=no |
| 10591 | fi |
| 10592 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10593 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10594 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10595 | |
| 10596 | # Is the header present? |
| 10597 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10598 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10599 | cat >conftest.$ac_ext <<_ACEOF |
| 10600 | #line $LINENO "configure" |
| 10601 | #include "confdefs.h" |
| 10602 | #include <atheos/threads.h> |
| 10603 | _ACEOF |
| 10604 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10605 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10606 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10607 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10608 | rm -f conftest.er1 |
| 10609 | cat conftest.err >&5 |
| 10610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10611 | (exit $ac_status); } >/dev/null; then |
| 10612 | if test -s conftest.err; then |
| 10613 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10614 | else |
| 10615 | ac_cpp_err= |
| 10616 | fi |
| 10617 | else |
| 10618 | ac_cpp_err=yes |
| 10619 | fi |
| 10620 | if test -z "$ac_cpp_err"; then |
| 10621 | ac_header_preproc=yes |
| 10622 | else |
| 10623 | echo "$as_me: failed program was:" >&5 |
| 10624 | cat conftest.$ac_ext >&5 |
| 10625 | ac_header_preproc=no |
| 10626 | fi |
| 10627 | rm -f conftest.err conftest.$ac_ext |
| 10628 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10629 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10630 | |
| 10631 | # So? What about this header? |
| 10632 | case $ac_header_compiler:$ac_header_preproc in |
| 10633 | yes:no ) |
| 10634 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10635 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10636 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10637 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10638 | no:yes ) |
| 10639 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10640 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10641 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10642 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10643 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10644 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10645 | esac |
| 10646 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10647 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10648 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10650 | else |
| 10651 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10652 | fi |
| 10653 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10654 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10655 | |
| 10656 | fi |
| 10657 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10658 | cat >>confdefs.h <<\_ACEOF |
| 10659 | #define WITH_THREAD 1 |
| 10660 | _ACEOF |
| 10661 | |
| 10662 | |
| 10663 | cat >>confdefs.h <<\_ACEOF |
| 10664 | #define ATHEOS_THREADS 1 |
| 10665 | _ACEOF |
| 10666 | |
| 10667 | THREADOBJ="Python/thread.o" |
| 10668 | else |
| 10669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10670 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10671 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10672 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10673 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10675 | fi |
| 10676 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10677 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10679 | # Is the header compilable? |
| 10680 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10681 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10682 | cat >conftest.$ac_ext <<_ACEOF |
| 10683 | #line $LINENO "configure" |
| 10684 | #include "confdefs.h" |
| 10685 | $ac_includes_default |
| 10686 | #include <kernel/OS.h> |
| 10687 | _ACEOF |
| 10688 | rm -f conftest.$ac_objext |
| 10689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10690 | (eval $ac_compile) 2>&5 |
| 10691 | ac_status=$? |
| 10692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10693 | (exit $ac_status); } && |
| 10694 | { ac_try='test -s conftest.$ac_objext' |
| 10695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10696 | (eval $ac_try) 2>&5 |
| 10697 | ac_status=$? |
| 10698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10699 | (exit $ac_status); }; }; then |
| 10700 | ac_header_compiler=yes |
| 10701 | else |
| 10702 | echo "$as_me: failed program was:" >&5 |
| 10703 | cat conftest.$ac_ext >&5 |
| 10704 | ac_header_compiler=no |
| 10705 | fi |
| 10706 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10707 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10708 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10709 | |
| 10710 | # Is the header present? |
| 10711 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10712 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10713 | cat >conftest.$ac_ext <<_ACEOF |
| 10714 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10715 | #include "confdefs.h" |
| 10716 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10717 | _ACEOF |
| 10718 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10719 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10720 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10721 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10722 | rm -f conftest.er1 |
| 10723 | cat conftest.err >&5 |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10725 | (exit $ac_status); } >/dev/null; then |
| 10726 | if test -s conftest.err; then |
| 10727 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10728 | else |
| 10729 | ac_cpp_err= |
| 10730 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10732 | ac_cpp_err=yes |
| 10733 | fi |
| 10734 | if test -z "$ac_cpp_err"; then |
| 10735 | ac_header_preproc=yes |
| 10736 | else |
| 10737 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10738 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10739 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10740 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | rm -f conftest.err conftest.$ac_ext |
| 10742 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10743 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10745 | # So? What about this header? |
| 10746 | case $ac_header_compiler:$ac_header_preproc in |
| 10747 | yes:no ) |
| 10748 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10749 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10750 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10751 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10752 | no:yes ) |
| 10753 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10754 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10755 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10756 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10757 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10758 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10759 | esac |
| 10760 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10761 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10762 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10764 | else |
| 10765 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10766 | fi |
| 10767 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10768 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10769 | |
| 10770 | fi |
| 10771 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10772 | cat >>confdefs.h <<\_ACEOF |
| 10773 | #define WITH_THREAD 1 |
| 10774 | _ACEOF |
| 10775 | |
| 10776 | |
| 10777 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10778 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10779 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10780 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10781 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10782 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10784 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10785 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10786 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10789 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10790 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10791 | cat >conftest.$ac_ext <<_ACEOF |
| 10792 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10793 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10794 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10795 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10796 | #ifdef __cplusplus |
| 10797 | extern "C" |
| 10798 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10799 | /* 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] | 10800 | builtin and then its argument prototype would still apply. */ |
| 10801 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10802 | #ifdef F77_DUMMY_MAIN |
| 10803 | # ifdef __cplusplus |
| 10804 | extern "C" |
| 10805 | # endif |
| 10806 | int F77_DUMMY_MAIN() { return 1; } |
| 10807 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10808 | int |
| 10809 | main () |
| 10810 | { |
| 10811 | pthread_create (); |
| 10812 | ; |
| 10813 | return 0; |
| 10814 | } |
| 10815 | _ACEOF |
| 10816 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10818 | (eval $ac_link) 2>&5 |
| 10819 | ac_status=$? |
| 10820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10821 | (exit $ac_status); } && |
| 10822 | { ac_try='test -s conftest$ac_exeext' |
| 10823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10824 | (eval $ac_try) 2>&5 |
| 10825 | ac_status=$? |
| 10826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10827 | (exit $ac_status); }; }; then |
| 10828 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10830 | echo "$as_me: failed program was:" >&5 |
| 10831 | cat conftest.$ac_ext >&5 |
| 10832 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10834 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10835 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10837 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10838 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10839 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10840 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10841 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10842 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10843 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10844 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10845 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10846 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10847 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10849 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10850 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10851 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10855 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10856 | cat >conftest.$ac_ext <<_ACEOF |
| 10857 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10858 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10859 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10860 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10861 | #ifdef __cplusplus |
| 10862 | extern "C" |
| 10863 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10864 | /* 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] | 10865 | builtin and then its argument prototype would still apply. */ |
| 10866 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10867 | #ifdef F77_DUMMY_MAIN |
| 10868 | # ifdef __cplusplus |
| 10869 | extern "C" |
| 10870 | # endif |
| 10871 | int F77_DUMMY_MAIN() { return 1; } |
| 10872 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10873 | int |
| 10874 | main () |
| 10875 | { |
| 10876 | pthread_create (); |
| 10877 | ; |
| 10878 | return 0; |
| 10879 | } |
| 10880 | _ACEOF |
| 10881 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10883 | (eval $ac_link) 2>&5 |
| 10884 | ac_status=$? |
| 10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10886 | (exit $ac_status); } && |
| 10887 | { ac_try='test -s conftest$ac_exeext' |
| 10888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10889 | (eval $ac_try) 2>&5 |
| 10890 | ac_status=$? |
| 10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10892 | (exit $ac_status); }; }; then |
| 10893 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10894 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10895 | echo "$as_me: failed program was:" >&5 |
| 10896 | cat conftest.$ac_ext >&5 |
| 10897 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10898 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10900 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10902 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10903 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10904 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10905 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10906 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10908 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10909 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10910 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10911 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10912 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10914 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10915 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10916 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10919 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10920 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | cat >conftest.$ac_ext <<_ACEOF |
| 10922 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10923 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10925 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10926 | #ifdef __cplusplus |
| 10927 | extern "C" |
| 10928 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10929 | /* 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] | 10930 | builtin and then its argument prototype would still apply. */ |
| 10931 | char __d6_pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10932 | #ifdef F77_DUMMY_MAIN |
| 10933 | # ifdef __cplusplus |
| 10934 | extern "C" |
| 10935 | # endif |
| 10936 | int F77_DUMMY_MAIN() { return 1; } |
| 10937 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10938 | int |
| 10939 | main () |
| 10940 | { |
| 10941 | __d6_pthread_create (); |
| 10942 | ; |
| 10943 | return 0; |
| 10944 | } |
| 10945 | _ACEOF |
| 10946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10948 | (eval $ac_link) 2>&5 |
| 10949 | ac_status=$? |
| 10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10951 | (exit $ac_status); } && |
| 10952 | { ac_try='test -s conftest$ac_exeext' |
| 10953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10954 | (eval $ac_try) 2>&5 |
| 10955 | ac_status=$? |
| 10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10957 | (exit $ac_status); }; }; then |
| 10958 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10960 | echo "$as_me: failed program was:" >&5 |
| 10961 | cat conftest.$ac_ext >&5 |
| 10962 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10964 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10965 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10966 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10967 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10968 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10969 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10970 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10971 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10972 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10973 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 10974 | echo Systems with __d6_pthread_create are not supported anymore. |
| 10975 | echo See README |
| 10976 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10977 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10978 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10979 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10980 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10983 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10984 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10987 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10988 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | cat >conftest.$ac_ext <<_ACEOF |
| 10990 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10991 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10993 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 | #ifdef __cplusplus |
| 10995 | extern "C" |
| 10996 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10997 | /* 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] | 10998 | builtin and then its argument prototype would still apply. */ |
| 10999 | char __pthread_create_system (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11000 | #ifdef F77_DUMMY_MAIN |
| 11001 | # ifdef __cplusplus |
| 11002 | extern "C" |
| 11003 | # endif |
| 11004 | int F77_DUMMY_MAIN() { return 1; } |
| 11005 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11006 | int |
| 11007 | main () |
| 11008 | { |
| 11009 | __pthread_create_system (); |
| 11010 | ; |
| 11011 | return 0; |
| 11012 | } |
| 11013 | _ACEOF |
| 11014 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11016 | (eval $ac_link) 2>&5 |
| 11017 | ac_status=$? |
| 11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11019 | (exit $ac_status); } && |
| 11020 | { ac_try='test -s conftest$ac_exeext' |
| 11021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11022 | (eval $ac_try) 2>&5 |
| 11023 | ac_status=$? |
| 11024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11025 | (exit $ac_status); }; }; then |
| 11026 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | echo "$as_me: failed program was:" >&5 |
| 11029 | cat conftest.$ac_ext >&5 |
| 11030 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11031 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11033 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11034 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11035 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11036 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11037 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11038 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11039 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11041 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11042 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11043 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11044 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11045 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11048 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11049 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11051 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11052 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11053 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11054 | cat >conftest.$ac_ext <<_ACEOF |
| 11055 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11056 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11057 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11058 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | #ifdef __cplusplus |
| 11060 | extern "C" |
| 11061 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11062 | /* 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] | 11063 | builtin and then its argument prototype would still apply. */ |
| 11064 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11065 | #ifdef F77_DUMMY_MAIN |
| 11066 | # ifdef __cplusplus |
| 11067 | extern "C" |
| 11068 | # endif |
| 11069 | int F77_DUMMY_MAIN() { return 1; } |
| 11070 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11071 | int |
| 11072 | main () |
| 11073 | { |
| 11074 | pthread_create (); |
| 11075 | ; |
| 11076 | return 0; |
| 11077 | } |
| 11078 | _ACEOF |
| 11079 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11081 | (eval $ac_link) 2>&5 |
| 11082 | ac_status=$? |
| 11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11084 | (exit $ac_status); } && |
| 11085 | { ac_try='test -s conftest$ac_exeext' |
| 11086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11087 | (eval $ac_try) 2>&5 |
| 11088 | ac_status=$? |
| 11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11090 | (exit $ac_status); }; }; then |
| 11091 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11093 | echo "$as_me: failed program was:" >&5 |
| 11094 | cat conftest.$ac_ext >&5 |
| 11095 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11098 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11099 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11100 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 11101 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 11102 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 11103 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11104 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11106 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11107 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11108 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11109 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11110 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11111 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11112 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11113 | fi |
| 11114 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11115 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11116 | fi |
| 11117 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11118 | fi |
| 11119 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11120 | fi |
| 11121 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11122 | fi |
| 11123 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11124 | fi |
| 11125 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11126 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11127 | fi |
| 11128 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11129 | |
| 11130 | fi |
| 11131 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11134 | fi; |
| 11135 | fi |
| 11136 | |
| 11137 | |
| 11138 | fi |
| 11139 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11140 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11141 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11142 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11143 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | |
| 11145 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11146 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11147 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11148 | |
| 11149 | fi |
| 11150 | |
Martin v. Löwis | dfc33fd | 2003-01-21 10:14:41 +0000 | [diff] [blame] | 11151 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 11152 | case $ac_sys_system/$ac_sys_release in |
| 11153 | SunOS/5.8) |
| 11154 | cat >>confdefs.h <<\_ACEOF |
| 11155 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 11156 | _ACEOF |
| 11157 | ;; |
| 11158 | esac |
| 11159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11160 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11161 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11162 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11164 | else |
| 11165 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11166 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11168 | cat >conftest.$ac_ext <<_ACEOF |
| 11169 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11170 | #include "confdefs.h" |
| 11171 | #include <pthread.h> |
| 11172 | void *foo(void *parm) { |
| 11173 | return NULL; |
| 11174 | } |
| 11175 | main() { |
| 11176 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11177 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11178 | if (pthread_attr_init(&attr)) exit(-1); |
| 11179 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11180 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11181 | exit(0); |
| 11182 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | _ACEOF |
| 11184 | rm -f conftest$ac_exeext |
| 11185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11186 | (eval $ac_link) 2>&5 |
| 11187 | ac_status=$? |
| 11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11189 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11191 | (eval $ac_try) 2>&5 |
| 11192 | ac_status=$? |
| 11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11194 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11195 | ac_cv_pthread_system_supported=yes |
| 11196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11198 | echo "$as_me: failed program was:" >&5 |
| 11199 | cat conftest.$ac_ext >&5 |
| 11200 | ( exit $ac_status ) |
| 11201 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11202 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11203 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11204 | fi |
| 11205 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11206 | fi |
| 11207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11208 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11209 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11210 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | |
| 11212 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11213 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11215 | |
| 11216 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11217 | |
| 11218 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11219 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11221 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11223 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11226 | cat >conftest.$ac_ext <<_ACEOF |
| 11227 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11228 | #include "confdefs.h" |
| 11229 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11230 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11231 | #include <assert.h> |
| 11232 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | #ifdef __cplusplus |
| 11234 | extern "C" |
| 11235 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11236 | /* 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] | 11237 | builtin and then its argument prototype would still apply. */ |
| 11238 | char $ac_func (); |
| 11239 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11240 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11241 | #ifdef F77_DUMMY_MAIN |
| 11242 | # ifdef __cplusplus |
| 11243 | extern "C" |
| 11244 | # endif |
| 11245 | int F77_DUMMY_MAIN() { return 1; } |
| 11246 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | int |
| 11248 | main () |
| 11249 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11250 | /* The GNU C library defines this for functions which it implements |
| 11251 | to always fail with ENOSYS. Some functions are actually named |
| 11252 | something starting with __ and the normal name is an alias. */ |
| 11253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11254 | choke me |
| 11255 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11257 | #endif |
| 11258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | ; |
| 11260 | return 0; |
| 11261 | } |
| 11262 | _ACEOF |
| 11263 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11265 | (eval $ac_link) 2>&5 |
| 11266 | ac_status=$? |
| 11267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11268 | (exit $ac_status); } && |
| 11269 | { ac_try='test -s conftest$ac_exeext' |
| 11270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11271 | (eval $ac_try) 2>&5 |
| 11272 | ac_status=$? |
| 11273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11274 | (exit $ac_status); }; }; then |
| 11275 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11277 | echo "$as_me: failed program was:" >&5 |
| 11278 | cat conftest.$ac_ext >&5 |
| 11279 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11280 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11284 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11285 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11286 | cat >>confdefs.h <<_ACEOF |
| 11287 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11288 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11289 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11290 | fi |
| 11291 | done |
| 11292 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11293 | fi |
| 11294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11296 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11297 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11300 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11301 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | cat >conftest.$ac_ext <<_ACEOF |
| 11303 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11304 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11305 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11306 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | #ifdef __cplusplus |
| 11308 | extern "C" |
| 11309 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11310 | /* 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] | 11311 | builtin and then its argument prototype would still apply. */ |
| 11312 | char usconfig (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11313 | #ifdef F77_DUMMY_MAIN |
| 11314 | # ifdef __cplusplus |
| 11315 | extern "C" |
| 11316 | # endif |
| 11317 | int F77_DUMMY_MAIN() { return 1; } |
| 11318 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11319 | int |
| 11320 | main () |
| 11321 | { |
| 11322 | usconfig (); |
| 11323 | ; |
| 11324 | return 0; |
| 11325 | } |
| 11326 | _ACEOF |
| 11327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11329 | (eval $ac_link) 2>&5 |
| 11330 | ac_status=$? |
| 11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11332 | (exit $ac_status); } && |
| 11333 | { ac_try='test -s conftest$ac_exeext' |
| 11334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11335 | (eval $ac_try) 2>&5 |
| 11336 | ac_status=$? |
| 11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11338 | (exit $ac_status); }; }; then |
| 11339 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11340 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11341 | echo "$as_me: failed program was:" >&5 |
| 11342 | cat conftest.$ac_ext >&5 |
| 11343 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11344 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11346 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11347 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11348 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11349 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11350 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11351 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11352 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11354 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11355 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11356 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11357 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11358 | fi |
| 11359 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11360 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11361 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11362 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11363 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11364 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11366 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11368 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11369 | cat >conftest.$ac_ext <<_ACEOF |
| 11370 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11371 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11373 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | #ifdef __cplusplus |
| 11375 | extern "C" |
| 11376 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11377 | /* 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] | 11378 | builtin and then its argument prototype would still apply. */ |
| 11379 | char thr_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11380 | #ifdef F77_DUMMY_MAIN |
| 11381 | # ifdef __cplusplus |
| 11382 | extern "C" |
| 11383 | # endif |
| 11384 | int F77_DUMMY_MAIN() { return 1; } |
| 11385 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11386 | int |
| 11387 | main () |
| 11388 | { |
| 11389 | thr_create (); |
| 11390 | ; |
| 11391 | return 0; |
| 11392 | } |
| 11393 | _ACEOF |
| 11394 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11396 | (eval $ac_link) 2>&5 |
| 11397 | ac_status=$? |
| 11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11399 | (exit $ac_status); } && |
| 11400 | { ac_try='test -s conftest$ac_exeext' |
| 11401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11402 | (eval $ac_try) 2>&5 |
| 11403 | ac_status=$? |
| 11404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11405 | (exit $ac_status); }; }; then |
| 11406 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 | echo "$as_me: failed program was:" >&5 |
| 11409 | cat conftest.$ac_ext >&5 |
| 11410 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11411 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11412 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11413 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11414 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11415 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11416 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11417 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11418 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11419 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11420 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11421 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11422 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11423 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11424 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11425 | fi |
| 11426 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11427 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11428 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11429 | if test "$USE_THREAD_MODULE" != "#" |
| 11430 | then |
| 11431 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11432 | # needs this '-threads' argument during linking. |
| 11433 | case $ac_sys_system in |
| 11434 | OSF1) LDLAST=-threads;; |
| 11435 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11436 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11437 | |
| 11438 | if test "$posix_threads" = yes -a \ |
| 11439 | "$ac_sys_system" = "SunOS" -a \ |
| 11440 | "$ac_sys_release" = "5.6"; then |
| 11441 | |
| 11442 | cat >>confdefs.h <<\_ACEOF |
| 11443 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11444 | _ACEOF |
| 11445 | |
| 11446 | fi |
| 11447 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11448 | fi |
| 11449 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11450 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11451 | |
| 11452 | |
| 11453 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11454 | 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] | 11455 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11456 | if test "${enable_ipv6+set}" = set; then |
| 11457 | enableval="$enable_ipv6" |
| 11458 | case "$enableval" in |
| 11459 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | echo "$as_me:$LINENO: result: no" >&5 |
| 11461 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11462 | ipv6=no |
| 11463 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11464 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11465 | echo "${ECHO_T}yes" >&6 |
| 11466 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11467 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11468 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11469 | |
| 11470 | ipv6=yes |
| 11471 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11474 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11475 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11476 | echo "$as_me:$LINENO: result: no" >&5 |
| 11477 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11478 | ipv6=no |
| 11479 | |
| 11480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 | cat >conftest.$ac_ext <<_ACEOF |
| 11482 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11483 | #include "confdefs.h" |
| 11484 | /* AF_INET6 available check */ |
| 11485 | #include <sys/types.h> |
| 11486 | #include <sys/socket.h> |
| 11487 | main() |
| 11488 | { |
| 11489 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11490 | exit(1); |
| 11491 | else |
| 11492 | exit(0); |
| 11493 | } |
| 11494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | _ACEOF |
| 11496 | rm -f conftest$ac_exeext |
| 11497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11498 | (eval $ac_link) 2>&5 |
| 11499 | ac_status=$? |
| 11500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11501 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11503 | (eval $ac_try) 2>&5 |
| 11504 | ac_status=$? |
| 11505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11506 | (exit $ac_status); }; }; then |
| 11507 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11508 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11509 | ipv6=yes |
| 11510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11511 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11512 | echo "$as_me: failed program was:" >&5 |
| 11513 | cat conftest.$ac_ext >&5 |
| 11514 | ( exit $ac_status ) |
| 11515 | echo "$as_me:$LINENO: result: no" >&5 |
| 11516 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11517 | ipv6=no |
| 11518 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11519 | 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] | 11520 | fi |
| 11521 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11522 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11523 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11524 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11525 | cat >conftest.$ac_ext <<_ACEOF |
| 11526 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11527 | #include "confdefs.h" |
| 11528 | #include <sys/types.h> |
| 11529 | #include <netinet/in.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11530 | #ifdef F77_DUMMY_MAIN |
| 11531 | # ifdef __cplusplus |
| 11532 | extern "C" |
| 11533 | # endif |
| 11534 | int F77_DUMMY_MAIN() { return 1; } |
| 11535 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11536 | int |
| 11537 | main () |
| 11538 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11539 | struct sockaddr_in6 x; |
| 11540 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11541 | ; |
| 11542 | return 0; |
| 11543 | } |
| 11544 | _ACEOF |
| 11545 | rm -f conftest.$ac_objext |
| 11546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11547 | (eval $ac_compile) 2>&5 |
| 11548 | ac_status=$? |
| 11549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11550 | (exit $ac_status); } && |
| 11551 | { ac_try='test -s conftest.$ac_objext' |
| 11552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11553 | (eval $ac_try) 2>&5 |
| 11554 | ac_status=$? |
| 11555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11556 | (exit $ac_status); }; }; then |
| 11557 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11558 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11559 | ipv6=yes |
| 11560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | echo "$as_me: failed program was:" >&5 |
| 11562 | cat conftest.$ac_ext >&5 |
| 11563 | echo "$as_me:$LINENO: result: no" >&5 |
| 11564 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11565 | ipv6=no |
| 11566 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11568 | fi |
| 11569 | |
| 11570 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11571 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11572 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11573 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11574 | |
| 11575 | fi |
| 11576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11577 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11578 | |
| 11579 | ipv6type=unknown |
| 11580 | ipv6lib=none |
| 11581 | ipv6trylibc=no |
| 11582 | |
| 11583 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11584 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11585 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11586 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11587 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11588 | case $i in |
| 11589 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11590 | cat >conftest.$ac_ext <<_ACEOF |
| 11591 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11592 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11593 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11594 | #include <netinet/in.h> |
| 11595 | #ifdef IPV6_INRIA_VERSION |
| 11596 | yes |
| 11597 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11600 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11601 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11602 | fi |
| 11603 | rm -f conftest* |
| 11604 | |
| 11605 | ;; |
| 11606 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 | cat >conftest.$ac_ext <<_ACEOF |
| 11608 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11609 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11610 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11611 | #include <netinet/in.h> |
| 11612 | #ifdef __KAME__ |
| 11613 | yes |
| 11614 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11615 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11617 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11618 | ipv6type=$i; |
| 11619 | ipv6lib=inet6 |
| 11620 | ipv6libdir=/usr/local/v6/lib |
| 11621 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11622 | fi |
| 11623 | rm -f conftest* |
| 11624 | |
| 11625 | ;; |
| 11626 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 | cat >conftest.$ac_ext <<_ACEOF |
| 11628 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11629 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11630 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11631 | #include <features.h> |
| 11632 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11633 | yes |
| 11634 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11635 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11636 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11637 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11638 | ipv6type=$i; |
| 11639 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11640 | fi |
| 11641 | rm -f conftest* |
| 11642 | |
| 11643 | ;; |
| 11644 | linux-inet6) |
| 11645 | if test -d /usr/inet6; then |
| 11646 | ipv6type=$i |
| 11647 | ipv6lib=inet6 |
| 11648 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11649 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11650 | fi |
| 11651 | ;; |
| 11652 | solaris) |
| 11653 | if test -f /etc/netconfig; then |
| 11654 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11655 | ipv6type=$i |
| 11656 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11657 | fi |
| 11658 | fi |
| 11659 | ;; |
| 11660 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11661 | cat >conftest.$ac_ext <<_ACEOF |
| 11662 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11663 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11664 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11665 | #include <sys/param.h> |
| 11666 | #ifdef _TOSHIBA_INET6 |
| 11667 | yes |
| 11668 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11669 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11670 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11671 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11672 | ipv6type=$i; |
| 11673 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11674 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11675 | fi |
| 11676 | rm -f conftest* |
| 11677 | |
| 11678 | ;; |
| 11679 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11680 | cat >conftest.$ac_ext <<_ACEOF |
| 11681 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11682 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11683 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11684 | #include </usr/local/v6/include/sys/v6config.h> |
| 11685 | #ifdef __V6D__ |
| 11686 | yes |
| 11687 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11690 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11691 | ipv6type=$i; |
| 11692 | ipv6lib=v6; |
| 11693 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11694 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11695 | fi |
| 11696 | rm -f conftest* |
| 11697 | |
| 11698 | ;; |
| 11699 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11700 | cat >conftest.$ac_ext <<_ACEOF |
| 11701 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11702 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11703 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11704 | #include <sys/param.h> |
| 11705 | #ifdef _ZETA_MINAMI_INET6 |
| 11706 | yes |
| 11707 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11709 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11710 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11711 | ipv6type=$i; |
| 11712 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11713 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11714 | fi |
| 11715 | rm -f conftest* |
| 11716 | |
| 11717 | ;; |
| 11718 | esac |
| 11719 | if test "$ipv6type" != "unknown"; then |
| 11720 | break |
| 11721 | fi |
| 11722 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11723 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11724 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11725 | fi |
| 11726 | |
| 11727 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11728 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11729 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11730 | echo "using lib$ipv6lib" |
| 11731 | else |
| 11732 | if test $ipv6trylibc = "yes"; then |
| 11733 | echo "using libc" |
| 11734 | else |
| 11735 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11736 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11737 | echo 'ipv6 kit and compile beforehand.' |
| 11738 | exit 1 |
| 11739 | fi |
| 11740 | fi |
| 11741 | fi |
| 11742 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11743 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11744 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11745 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11746 | |
| 11747 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11748 | if test "${with_universal_newlines+set}" = set; then |
| 11749 | withval="$with_universal_newlines" |
| 11750 | |
| 11751 | fi; |
| 11752 | |
| 11753 | if test -z "$with_universal_newlines" |
| 11754 | then with_universal_newlines="yes" |
| 11755 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11756 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11757 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11758 | echo --without-universal-newlines is unsupported, see README |
| 11759 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11760 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11761 | |
| 11762 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11763 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11764 | _ACEOF |
| 11765 | |
| 11766 | fi |
| 11767 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11768 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11769 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11770 | # Check for --with-doc-strings |
| 11771 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11772 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11773 | |
| 11774 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11775 | if test "${with_doc_strings+set}" = set; then |
| 11776 | withval="$with_doc_strings" |
| 11777 | |
| 11778 | fi; |
| 11779 | |
| 11780 | if test -z "$with_doc_strings" |
| 11781 | then with_doc_strings="yes" |
| 11782 | fi |
| 11783 | if test "$with_doc_strings" != "no" |
| 11784 | then |
| 11785 | |
| 11786 | cat >>confdefs.h <<\_ACEOF |
| 11787 | #define WITH_DOC_STRINGS 1 |
| 11788 | _ACEOF |
| 11789 | |
| 11790 | fi |
| 11791 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11792 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11793 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11794 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11796 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11797 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11798 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11799 | if test "${with_pymalloc+set}" = set; then |
| 11800 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11802 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11803 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11804 | if test -z "$with_pymalloc" |
| 11805 | then with_pymalloc="yes" |
| 11806 | fi |
| 11807 | if test "$with_pymalloc" != "no" |
| 11808 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11809 | |
| 11810 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11811 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11812 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11813 | |
| 11814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11815 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11816 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11817 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11818 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11819 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11820 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11821 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11822 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11823 | if test "${with_wctype_functions+set}" = set; then |
| 11824 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11825 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11826 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | then |
| 11828 | |
| 11829 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11830 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11831 | _ACEOF |
| 11832 | |
| 11833 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11834 | echo "${ECHO_T}yes" >&6 |
| 11835 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11836 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11837 | fi |
| 11838 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11839 | echo "$as_me:$LINENO: result: no" >&5 |
| 11840 | echo "${ECHO_T}no" >&6 |
| 11841 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11842 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11843 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11844 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11845 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11847 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11848 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11849 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11850 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11851 | if test "${with_sgi_dl+set}" = set; then |
| 11852 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11853 | |
| 11854 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11855 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11856 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11857 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | |
| 11859 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11860 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11861 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11862 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11863 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11864 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11865 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11866 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11867 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11868 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11869 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11870 | fi |
| 11871 | DLINCLDIR=${dldir} |
| 11872 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11873 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 | echo "$as_me:$LINENO: result: no" >&5 |
| 11875 | echo "${ECHO_T}no" >&6 |
| 11876 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11878 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11879 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11880 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11881 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11882 | if test "${with_dl_dld+set}" = set; then |
| 11883 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11884 | |
| 11885 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11886 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11887 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11888 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 | |
| 11890 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11891 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11893 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11894 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11895 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11896 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11897 | 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] | 11898 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11899 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11900 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11901 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11902 | fi |
| 11903 | DLINCLDIR=${dldir} |
| 11904 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11906 | echo "$as_me:$LINENO: result: no" >&5 |
| 11907 | echo "${ECHO_T}no" >&6 |
| 11908 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11909 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11910 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11911 | # 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] | 11912 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11913 | for ac_func in dlopen |
| 11914 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11915 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11916 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11917 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11918 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11921 | cat >conftest.$ac_ext <<_ACEOF |
| 11922 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11923 | #include "confdefs.h" |
| 11924 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11925 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11926 | #include <assert.h> |
| 11927 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11928 | #ifdef __cplusplus |
| 11929 | extern "C" |
| 11930 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11931 | /* 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] | 11932 | builtin and then its argument prototype would still apply. */ |
| 11933 | char $ac_func (); |
| 11934 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11935 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11936 | #ifdef F77_DUMMY_MAIN |
| 11937 | # ifdef __cplusplus |
| 11938 | extern "C" |
| 11939 | # endif |
| 11940 | int F77_DUMMY_MAIN() { return 1; } |
| 11941 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11942 | int |
| 11943 | main () |
| 11944 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11945 | /* The GNU C library defines this for functions which it implements |
| 11946 | to always fail with ENOSYS. Some functions are actually named |
| 11947 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11948 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11949 | choke me |
| 11950 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11951 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11952 | #endif |
| 11953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11954 | ; |
| 11955 | return 0; |
| 11956 | } |
| 11957 | _ACEOF |
| 11958 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11960 | (eval $ac_link) 2>&5 |
| 11961 | ac_status=$? |
| 11962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11963 | (exit $ac_status); } && |
| 11964 | { ac_try='test -s conftest$ac_exeext' |
| 11965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11966 | (eval $ac_try) 2>&5 |
| 11967 | ac_status=$? |
| 11968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11969 | (exit $ac_status); }; }; then |
| 11970 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11972 | echo "$as_me: failed program was:" >&5 |
| 11973 | cat conftest.$ac_ext >&5 |
| 11974 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11975 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11976 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11977 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11979 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11980 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11981 | cat >>confdefs.h <<_ACEOF |
| 11982 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11983 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11984 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11985 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11986 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11987 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11988 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11989 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11990 | # loading of modules. |
| 11991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11992 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11993 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11994 | if test -z "$DYNLOADFILE" |
| 11995 | then |
| 11996 | case $ac_sys_system/$ac_sys_release in |
| 11997 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11998 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11999 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12000 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12001 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12002 | *) |
| 12003 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12004 | # out any dynamic loading |
| 12005 | if test "$ac_cv_func_dlopen" = yes |
| 12006 | then DYNLOADFILE="dynload_shlib.o" |
| 12007 | else DYNLOADFILE="dynload_stub.o" |
| 12008 | fi |
| 12009 | ;; |
| 12010 | esac |
| 12011 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12012 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 12013 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12014 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12015 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12016 | |
| 12017 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12018 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12019 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12020 | |
| 12021 | fi |
| 12022 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12023 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12024 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12026 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 12027 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12028 | if test -z "$MACHDEP_OBJS" |
| 12029 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12030 | MACHDEP_OBJS=$extra_machdep_objs |
| 12031 | else |
| 12032 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12033 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12034 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 12035 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12036 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12037 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12038 | |
| 12039 | |
| 12040 | |
| 12041 | |
| 12042 | |
| 12043 | |
| 12044 | |
| 12045 | |
| 12046 | |
| 12047 | |
| 12048 | |
| 12049 | |
| 12050 | |
| 12051 | |
| 12052 | |
| 12053 | |
| 12054 | |
| 12055 | |
| 12056 | |
| 12057 | |
| 12058 | |
| 12059 | |
| 12060 | |
| 12061 | |
| 12062 | |
| 12063 | |
| 12064 | |
| 12065 | |
| 12066 | |
| 12067 | |
| 12068 | |
| 12069 | |
| 12070 | |
| 12071 | |
| 12072 | |
| 12073 | |
| 12074 | |
| 12075 | |
| 12076 | |
| 12077 | |
| 12078 | |
| 12079 | |
| 12080 | |
| 12081 | |
| 12082 | |
| 12083 | |
| 12084 | |
| 12085 | |
| 12086 | |
| 12087 | |
| 12088 | |
| 12089 | |
| 12090 | |
| 12091 | |
| 12092 | |
| 12093 | |
| 12094 | |
| 12095 | |
| 12096 | |
| 12097 | |
| 12098 | |
| 12099 | |
| 12100 | |
| 12101 | |
| 12102 | |
| 12103 | |
| 12104 | |
| 12105 | |
| 12106 | |
| 12107 | |
| 12108 | |
| 12109 | |
| 12110 | |
Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 12111 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12112 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12113 | fchdir fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12114 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 12115 | getpriority getpwent getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame^] | 12116 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 12117 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 12118 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12119 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 12120 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12121 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12122 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12123 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12124 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12125 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12126 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12127 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12128 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12131 | cat >conftest.$ac_ext <<_ACEOF |
| 12132 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12133 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12134 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12135 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12136 | #include <assert.h> |
| 12137 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | #ifdef __cplusplus |
| 12139 | extern "C" |
| 12140 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12141 | /* 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] | 12142 | builtin and then its argument prototype would still apply. */ |
| 12143 | char $ac_func (); |
| 12144 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12145 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12146 | #ifdef F77_DUMMY_MAIN |
| 12147 | # ifdef __cplusplus |
| 12148 | extern "C" |
| 12149 | # endif |
| 12150 | int F77_DUMMY_MAIN() { return 1; } |
| 12151 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12152 | int |
| 12153 | main () |
| 12154 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12155 | /* The GNU C library defines this for functions which it implements |
| 12156 | to always fail with ENOSYS. Some functions are actually named |
| 12157 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12159 | choke me |
| 12160 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12162 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | ; |
| 12165 | return 0; |
| 12166 | } |
| 12167 | _ACEOF |
| 12168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12170 | (eval $ac_link) 2>&5 |
| 12171 | ac_status=$? |
| 12172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12173 | (exit $ac_status); } && |
| 12174 | { ac_try='test -s conftest$ac_exeext' |
| 12175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12176 | (eval $ac_try) 2>&5 |
| 12177 | ac_status=$? |
| 12178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12179 | (exit $ac_status); }; }; then |
| 12180 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | echo "$as_me: failed program was:" >&5 |
| 12183 | cat conftest.$ac_ext >&5 |
| 12184 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12185 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12186 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12187 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12189 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12190 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12191 | cat >>confdefs.h <<_ACEOF |
| 12192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12193 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12194 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12195 | fi |
| 12196 | done |
| 12197 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12198 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12199 | # For some functions, having a definition is not sufficient, since |
| 12200 | # we want to take their address. |
| 12201 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12202 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12203 | cat >conftest.$ac_ext <<_ACEOF |
| 12204 | #line $LINENO "configure" |
| 12205 | #include "confdefs.h" |
| 12206 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12207 | #ifdef F77_DUMMY_MAIN |
| 12208 | # ifdef __cplusplus |
| 12209 | extern "C" |
| 12210 | # endif |
| 12211 | int F77_DUMMY_MAIN() { return 1; } |
| 12212 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12213 | int |
| 12214 | main () |
| 12215 | { |
| 12216 | void *x=chroot |
| 12217 | ; |
| 12218 | return 0; |
| 12219 | } |
| 12220 | _ACEOF |
| 12221 | rm -f conftest.$ac_objext |
| 12222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12223 | (eval $ac_compile) 2>&5 |
| 12224 | ac_status=$? |
| 12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12226 | (exit $ac_status); } && |
| 12227 | { ac_try='test -s conftest.$ac_objext' |
| 12228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12229 | (eval $ac_try) 2>&5 |
| 12230 | ac_status=$? |
| 12231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12232 | (exit $ac_status); }; }; then |
| 12233 | |
| 12234 | cat >>confdefs.h <<\_ACEOF |
| 12235 | #define HAVE_CHROOT 1 |
| 12236 | _ACEOF |
| 12237 | |
| 12238 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12239 | echo "${ECHO_T}yes" >&6 |
| 12240 | else |
| 12241 | echo "$as_me: failed program was:" >&5 |
| 12242 | cat conftest.$ac_ext >&5 |
| 12243 | echo "$as_me:$LINENO: result: no" >&5 |
| 12244 | echo "${ECHO_T}no" >&6 |
| 12245 | |
| 12246 | fi |
| 12247 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12248 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12249 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12250 | cat >conftest.$ac_ext <<_ACEOF |
| 12251 | #line $LINENO "configure" |
| 12252 | #include "confdefs.h" |
| 12253 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12254 | #ifdef F77_DUMMY_MAIN |
| 12255 | # ifdef __cplusplus |
| 12256 | extern "C" |
| 12257 | # endif |
| 12258 | int F77_DUMMY_MAIN() { return 1; } |
| 12259 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12260 | int |
| 12261 | main () |
| 12262 | { |
| 12263 | void *x=link |
| 12264 | ; |
| 12265 | return 0; |
| 12266 | } |
| 12267 | _ACEOF |
| 12268 | rm -f conftest.$ac_objext |
| 12269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12270 | (eval $ac_compile) 2>&5 |
| 12271 | ac_status=$? |
| 12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12273 | (exit $ac_status); } && |
| 12274 | { ac_try='test -s conftest.$ac_objext' |
| 12275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12276 | (eval $ac_try) 2>&5 |
| 12277 | ac_status=$? |
| 12278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12279 | (exit $ac_status); }; }; then |
| 12280 | |
| 12281 | cat >>confdefs.h <<\_ACEOF |
| 12282 | #define HAVE_LINK 1 |
| 12283 | _ACEOF |
| 12284 | |
| 12285 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12286 | echo "${ECHO_T}yes" >&6 |
| 12287 | else |
| 12288 | echo "$as_me: failed program was:" >&5 |
| 12289 | cat conftest.$ac_ext >&5 |
| 12290 | echo "$as_me:$LINENO: result: no" >&5 |
| 12291 | echo "${ECHO_T}no" >&6 |
| 12292 | |
| 12293 | fi |
| 12294 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12295 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12296 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12297 | cat >conftest.$ac_ext <<_ACEOF |
| 12298 | #line $LINENO "configure" |
| 12299 | #include "confdefs.h" |
| 12300 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12301 | #ifdef F77_DUMMY_MAIN |
| 12302 | # ifdef __cplusplus |
| 12303 | extern "C" |
| 12304 | # endif |
| 12305 | int F77_DUMMY_MAIN() { return 1; } |
| 12306 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12307 | int |
| 12308 | main () |
| 12309 | { |
| 12310 | void *x=symlink |
| 12311 | ; |
| 12312 | return 0; |
| 12313 | } |
| 12314 | _ACEOF |
| 12315 | rm -f conftest.$ac_objext |
| 12316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12317 | (eval $ac_compile) 2>&5 |
| 12318 | ac_status=$? |
| 12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12320 | (exit $ac_status); } && |
| 12321 | { ac_try='test -s conftest.$ac_objext' |
| 12322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12323 | (eval $ac_try) 2>&5 |
| 12324 | ac_status=$? |
| 12325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12326 | (exit $ac_status); }; }; then |
| 12327 | |
| 12328 | cat >>confdefs.h <<\_ACEOF |
| 12329 | #define HAVE_SYMLINK 1 |
| 12330 | _ACEOF |
| 12331 | |
| 12332 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12333 | echo "${ECHO_T}yes" >&6 |
| 12334 | else |
| 12335 | echo "$as_me: failed program was:" >&5 |
| 12336 | cat conftest.$ac_ext >&5 |
| 12337 | echo "$as_me:$LINENO: result: no" >&5 |
| 12338 | echo "${ECHO_T}no" >&6 |
| 12339 | |
| 12340 | fi |
| 12341 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12342 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12343 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 12344 | # functions ctermid_r, setgroups in the library, but no prototype |
| 12345 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 12346 | # address to avoid compiler warnings and potential miscompilations |
| 12347 | # because of the missing prototypes. |
| 12348 | |
| 12349 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 12350 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 12351 | cat >conftest.$ac_ext <<_ACEOF |
| 12352 | #line $LINENO "configure" |
| 12353 | #include "confdefs.h" |
| 12354 | |
| 12355 | #include "confdefs.h" |
| 12356 | #include <stdio.h> |
| 12357 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12358 | #ifdef F77_DUMMY_MAIN |
| 12359 | # ifdef __cplusplus |
| 12360 | extern "C" |
| 12361 | # endif |
| 12362 | int F77_DUMMY_MAIN() { return 1; } |
| 12363 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12364 | int |
| 12365 | main () |
| 12366 | { |
| 12367 | void* p = ctermid_r |
| 12368 | ; |
| 12369 | return 0; |
| 12370 | } |
| 12371 | _ACEOF |
| 12372 | rm -f conftest.$ac_objext |
| 12373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12374 | (eval $ac_compile) 2>&5 |
| 12375 | ac_status=$? |
| 12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); } && |
| 12378 | { ac_try='test -s conftest.$ac_objext' |
| 12379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12380 | (eval $ac_try) 2>&5 |
| 12381 | ac_status=$? |
| 12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12383 | (exit $ac_status); }; }; then |
| 12384 | |
| 12385 | cat >>confdefs.h <<\_ACEOF |
| 12386 | #define HAVE_CTERMID_R 1 |
| 12387 | _ACEOF |
| 12388 | |
| 12389 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12390 | echo "${ECHO_T}yes" >&6 |
| 12391 | else |
| 12392 | echo "$as_me: failed program was:" >&5 |
| 12393 | cat conftest.$ac_ext >&5 |
| 12394 | echo "$as_me:$LINENO: result: no" >&5 |
| 12395 | echo "${ECHO_T}no" >&6 |
| 12396 | |
| 12397 | fi |
| 12398 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12399 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12400 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 12401 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 12402 | cat >conftest.$ac_ext <<_ACEOF |
| 12403 | #line $LINENO "configure" |
| 12404 | #include "confdefs.h" |
| 12405 | |
| 12406 | #include "confdefs.h" |
| 12407 | #include <sys/file.h> |
| 12408 | |
| 12409 | #ifdef F77_DUMMY_MAIN |
| 12410 | # ifdef __cplusplus |
| 12411 | extern "C" |
| 12412 | # endif |
| 12413 | int F77_DUMMY_MAIN() { return 1; } |
| 12414 | #endif |
| 12415 | int |
| 12416 | main () |
| 12417 | { |
| 12418 | void* p = flock |
| 12419 | ; |
| 12420 | return 0; |
| 12421 | } |
| 12422 | _ACEOF |
| 12423 | rm -f conftest.$ac_objext |
| 12424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12425 | (eval $ac_compile) 2>&5 |
| 12426 | ac_status=$? |
| 12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12428 | (exit $ac_status); } && |
| 12429 | { ac_try='test -s conftest.$ac_objext' |
| 12430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12431 | (eval $ac_try) 2>&5 |
| 12432 | ac_status=$? |
| 12433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12434 | (exit $ac_status); }; }; then |
| 12435 | |
| 12436 | cat >>confdefs.h <<\_ACEOF |
| 12437 | #define HAVE_FLOCK 1 |
| 12438 | _ACEOF |
| 12439 | |
| 12440 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12441 | echo "${ECHO_T}yes" >&6 |
| 12442 | else |
| 12443 | echo "$as_me: failed program was:" >&5 |
| 12444 | cat conftest.$ac_ext >&5 |
| 12445 | echo "$as_me:$LINENO: result: no" >&5 |
| 12446 | echo "${ECHO_T}no" >&6 |
| 12447 | |
| 12448 | fi |
| 12449 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12450 | |
| 12451 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 12452 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 12453 | cat >conftest.$ac_ext <<_ACEOF |
| 12454 | #line $LINENO "configure" |
| 12455 | #include "confdefs.h" |
| 12456 | |
| 12457 | #include "confdefs.h" |
| 12458 | #include <unistd.h> |
| 12459 | |
| 12460 | #ifdef F77_DUMMY_MAIN |
| 12461 | # ifdef __cplusplus |
| 12462 | extern "C" |
| 12463 | # endif |
| 12464 | int F77_DUMMY_MAIN() { return 1; } |
| 12465 | #endif |
| 12466 | int |
| 12467 | main () |
| 12468 | { |
| 12469 | void* p = getpagesize |
| 12470 | ; |
| 12471 | return 0; |
| 12472 | } |
| 12473 | _ACEOF |
| 12474 | rm -f conftest.$ac_objext |
| 12475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12476 | (eval $ac_compile) 2>&5 |
| 12477 | ac_status=$? |
| 12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12479 | (exit $ac_status); } && |
| 12480 | { ac_try='test -s conftest.$ac_objext' |
| 12481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12482 | (eval $ac_try) 2>&5 |
| 12483 | ac_status=$? |
| 12484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12485 | (exit $ac_status); }; }; then |
| 12486 | |
| 12487 | cat >>confdefs.h <<\_ACEOF |
| 12488 | #define HAVE_GETPAGESIZE 1 |
| 12489 | _ACEOF |
| 12490 | |
| 12491 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12492 | echo "${ECHO_T}yes" >&6 |
| 12493 | else |
| 12494 | echo "$as_me: failed program was:" >&5 |
| 12495 | cat conftest.$ac_ext >&5 |
| 12496 | echo "$as_me:$LINENO: result: no" >&5 |
| 12497 | echo "${ECHO_T}no" >&6 |
| 12498 | |
| 12499 | fi |
| 12500 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12501 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame^] | 12502 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 12503 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 12504 | cat >conftest.$ac_ext <<_ACEOF |
| 12505 | #line $LINENO "configure" |
| 12506 | #include "confdefs.h" |
| 12507 | |
| 12508 | #include "confdefs.h" |
| 12509 | #include <netdb.h> |
| 12510 | |
| 12511 | #ifdef F77_DUMMY_MAIN |
| 12512 | # ifdef __cplusplus |
| 12513 | extern "C" |
| 12514 | # endif |
| 12515 | int F77_DUMMY_MAIN() { return 1; } |
| 12516 | #endif |
| 12517 | int |
| 12518 | main () |
| 12519 | { |
| 12520 | void* p = hstrerror |
| 12521 | ; |
| 12522 | return 0; |
| 12523 | } |
| 12524 | _ACEOF |
| 12525 | rm -f conftest.$ac_objext |
| 12526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12527 | (eval $ac_compile) 2>&5 |
| 12528 | ac_status=$? |
| 12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12530 | (exit $ac_status); } && |
| 12531 | { ac_try='test -s conftest.$ac_objext' |
| 12532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12533 | (eval $ac_try) 2>&5 |
| 12534 | ac_status=$? |
| 12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12536 | (exit $ac_status); }; }; then |
| 12537 | |
| 12538 | cat >>confdefs.h <<\_ACEOF |
| 12539 | #define HAVE_HSTRERROR 1 |
| 12540 | _ACEOF |
| 12541 | |
| 12542 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12543 | echo "${ECHO_T}yes" >&6 |
| 12544 | else |
| 12545 | echo "$as_me: failed program was:" >&5 |
| 12546 | cat conftest.$ac_ext >&5 |
| 12547 | echo "$as_me:$LINENO: result: no" >&5 |
| 12548 | echo "${ECHO_T}no" >&6 |
| 12549 | |
| 12550 | fi |
| 12551 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12552 | |
| 12553 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 12554 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 12555 | cat >conftest.$ac_ext <<_ACEOF |
| 12556 | #line $LINENO "configure" |
| 12557 | #include "confdefs.h" |
| 12558 | |
| 12559 | #include "confdefs.h" |
| 12560 | #include <sys/socket.h> |
| 12561 | #include <netinet/in.h> |
| 12562 | #include <arpa/inet.h> |
| 12563 | |
| 12564 | #ifdef F77_DUMMY_MAIN |
| 12565 | # ifdef __cplusplus |
| 12566 | extern "C" |
| 12567 | # endif |
| 12568 | int F77_DUMMY_MAIN() { return 1; } |
| 12569 | #endif |
| 12570 | int |
| 12571 | main () |
| 12572 | { |
| 12573 | void* p = inet_aton |
| 12574 | ; |
| 12575 | return 0; |
| 12576 | } |
| 12577 | _ACEOF |
| 12578 | rm -f conftest.$ac_objext |
| 12579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12580 | (eval $ac_compile) 2>&5 |
| 12581 | ac_status=$? |
| 12582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12583 | (exit $ac_status); } && |
| 12584 | { ac_try='test -s conftest.$ac_objext' |
| 12585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12586 | (eval $ac_try) 2>&5 |
| 12587 | ac_status=$? |
| 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12589 | (exit $ac_status); }; }; then |
| 12590 | |
| 12591 | cat >>confdefs.h <<\_ACEOF |
| 12592 | #define HAVE_INET_ATON 1 |
| 12593 | _ACEOF |
| 12594 | |
| 12595 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12596 | echo "${ECHO_T}yes" >&6 |
| 12597 | else |
| 12598 | echo "$as_me: failed program was:" >&5 |
| 12599 | cat conftest.$ac_ext >&5 |
| 12600 | echo "$as_me:$LINENO: result: no" >&5 |
| 12601 | echo "${ECHO_T}no" >&6 |
| 12602 | |
| 12603 | fi |
| 12604 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12605 | |
| 12606 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 12607 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 12608 | cat >conftest.$ac_ext <<_ACEOF |
| 12609 | #line $LINENO "configure" |
| 12610 | #include "confdefs.h" |
| 12611 | |
| 12612 | #include "confdefs.h" |
| 12613 | #include <sys/socket.h> |
| 12614 | #include <netinet/in.h> |
| 12615 | #include <arpa/inet.h> |
| 12616 | |
| 12617 | #ifdef F77_DUMMY_MAIN |
| 12618 | # ifdef __cplusplus |
| 12619 | extern "C" |
| 12620 | # endif |
| 12621 | int F77_DUMMY_MAIN() { return 1; } |
| 12622 | #endif |
| 12623 | int |
| 12624 | main () |
| 12625 | { |
| 12626 | void* p = inet_pton |
| 12627 | ; |
| 12628 | return 0; |
| 12629 | } |
| 12630 | _ACEOF |
| 12631 | rm -f conftest.$ac_objext |
| 12632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12633 | (eval $ac_compile) 2>&5 |
| 12634 | ac_status=$? |
| 12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12636 | (exit $ac_status); } && |
| 12637 | { ac_try='test -s conftest.$ac_objext' |
| 12638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12639 | (eval $ac_try) 2>&5 |
| 12640 | ac_status=$? |
| 12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12642 | (exit $ac_status); }; }; then |
| 12643 | |
| 12644 | cat >>confdefs.h <<\_ACEOF |
| 12645 | #define HAVE_INET_PTON 1 |
| 12646 | _ACEOF |
| 12647 | |
| 12648 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12649 | echo "${ECHO_T}yes" >&6 |
| 12650 | else |
| 12651 | echo "$as_me: failed program was:" >&5 |
| 12652 | cat conftest.$ac_ext >&5 |
| 12653 | echo "$as_me:$LINENO: result: no" >&5 |
| 12654 | echo "${ECHO_T}no" >&6 |
| 12655 | |
| 12656 | fi |
| 12657 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12658 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12659 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 12660 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 12661 | cat >conftest.$ac_ext <<_ACEOF |
| 12662 | #line $LINENO "configure" |
| 12663 | #include "confdefs.h" |
| 12664 | |
| 12665 | #include "confdefs.h" |
| 12666 | #include <unistd.h.h> |
| 12667 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12668 | #ifdef F77_DUMMY_MAIN |
| 12669 | # ifdef __cplusplus |
| 12670 | extern "C" |
| 12671 | # endif |
| 12672 | int F77_DUMMY_MAIN() { return 1; } |
| 12673 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12674 | int |
| 12675 | main () |
| 12676 | { |
| 12677 | void* p = setgroups |
| 12678 | ; |
| 12679 | return 0; |
| 12680 | } |
| 12681 | _ACEOF |
| 12682 | rm -f conftest.$ac_objext |
| 12683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12684 | (eval $ac_compile) 2>&5 |
| 12685 | ac_status=$? |
| 12686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12687 | (exit $ac_status); } && |
| 12688 | { ac_try='test -s conftest.$ac_objext' |
| 12689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12690 | (eval $ac_try) 2>&5 |
| 12691 | ac_status=$? |
| 12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12693 | (exit $ac_status); }; }; then |
| 12694 | |
| 12695 | cat >>confdefs.h <<\_ACEOF |
| 12696 | #define HAVE_SETGROUPS 1 |
| 12697 | _ACEOF |
| 12698 | |
| 12699 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12700 | echo "${ECHO_T}yes" >&6 |
| 12701 | else |
| 12702 | echo "$as_me: failed program was:" >&5 |
| 12703 | cat conftest.$ac_ext >&5 |
| 12704 | echo "$as_me:$LINENO: result: no" >&5 |
| 12705 | echo "${ECHO_T}no" >&6 |
| 12706 | |
| 12707 | fi |
| 12708 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12709 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12710 | # check for openpty and forkpty |
| 12711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12712 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12713 | for ac_func in openpty |
| 12714 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12715 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12716 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12717 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12718 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12721 | cat >conftest.$ac_ext <<_ACEOF |
| 12722 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12723 | #include "confdefs.h" |
| 12724 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12725 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12726 | #include <assert.h> |
| 12727 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 | #ifdef __cplusplus |
| 12729 | extern "C" |
| 12730 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12731 | /* 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] | 12732 | builtin and then its argument prototype would still apply. */ |
| 12733 | char $ac_func (); |
| 12734 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12735 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12736 | #ifdef F77_DUMMY_MAIN |
| 12737 | # ifdef __cplusplus |
| 12738 | extern "C" |
| 12739 | # endif |
| 12740 | int F77_DUMMY_MAIN() { return 1; } |
| 12741 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12742 | int |
| 12743 | main () |
| 12744 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12745 | /* The GNU C library defines this for functions which it implements |
| 12746 | to always fail with ENOSYS. Some functions are actually named |
| 12747 | something starting with __ and the normal name is an alias. */ |
| 12748 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12749 | choke me |
| 12750 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12752 | #endif |
| 12753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12754 | ; |
| 12755 | return 0; |
| 12756 | } |
| 12757 | _ACEOF |
| 12758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12760 | (eval $ac_link) 2>&5 |
| 12761 | ac_status=$? |
| 12762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12763 | (exit $ac_status); } && |
| 12764 | { ac_try='test -s conftest$ac_exeext' |
| 12765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12766 | (eval $ac_try) 2>&5 |
| 12767 | ac_status=$? |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); }; }; then |
| 12770 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12771 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12772 | echo "$as_me: failed program was:" >&5 |
| 12773 | cat conftest.$ac_ext >&5 |
| 12774 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12775 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12776 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12779 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12780 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12781 | cat >>confdefs.h <<_ACEOF |
| 12782 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12783 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12784 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12786 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12787 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12788 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12792 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12793 | cat >conftest.$ac_ext <<_ACEOF |
| 12794 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12795 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12796 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12797 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | #ifdef __cplusplus |
| 12799 | extern "C" |
| 12800 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12801 | /* 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] | 12802 | builtin and then its argument prototype would still apply. */ |
| 12803 | char openpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12804 | #ifdef F77_DUMMY_MAIN |
| 12805 | # ifdef __cplusplus |
| 12806 | extern "C" |
| 12807 | # endif |
| 12808 | int F77_DUMMY_MAIN() { return 1; } |
| 12809 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 | int |
| 12811 | main () |
| 12812 | { |
| 12813 | openpty (); |
| 12814 | ; |
| 12815 | return 0; |
| 12816 | } |
| 12817 | _ACEOF |
| 12818 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12820 | (eval $ac_link) 2>&5 |
| 12821 | ac_status=$? |
| 12822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12823 | (exit $ac_status); } && |
| 12824 | { ac_try='test -s conftest$ac_exeext' |
| 12825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12826 | (eval $ac_try) 2>&5 |
| 12827 | ac_status=$? |
| 12828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12829 | (exit $ac_status); }; }; then |
| 12830 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12832 | echo "$as_me: failed program was:" >&5 |
| 12833 | cat conftest.$ac_ext >&5 |
| 12834 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12837 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12838 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12840 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12841 | if test $ac_cv_lib_util_openpty = yes; then |
| 12842 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12843 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12844 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12845 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12846 | fi |
| 12847 | |
| 12848 | fi |
| 12849 | done |
| 12850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12851 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12852 | for ac_func in forkpty |
| 12853 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12854 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12855 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12856 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12857 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | cat >conftest.$ac_ext <<_ACEOF |
| 12861 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12862 | #include "confdefs.h" |
| 12863 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12865 | #include <assert.h> |
| 12866 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12867 | #ifdef __cplusplus |
| 12868 | extern "C" |
| 12869 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12870 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12871 | builtin and then its argument prototype would still apply. */ |
| 12872 | char $ac_func (); |
| 12873 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12874 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12875 | #ifdef F77_DUMMY_MAIN |
| 12876 | # ifdef __cplusplus |
| 12877 | extern "C" |
| 12878 | # endif |
| 12879 | int F77_DUMMY_MAIN() { return 1; } |
| 12880 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12881 | int |
| 12882 | main () |
| 12883 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12884 | /* The GNU C library defines this for functions which it implements |
| 12885 | to always fail with ENOSYS. Some functions are actually named |
| 12886 | something starting with __ and the normal name is an alias. */ |
| 12887 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12888 | choke me |
| 12889 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12890 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12891 | #endif |
| 12892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | ; |
| 12894 | return 0; |
| 12895 | } |
| 12896 | _ACEOF |
| 12897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12899 | (eval $ac_link) 2>&5 |
| 12900 | ac_status=$? |
| 12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12902 | (exit $ac_status); } && |
| 12903 | { ac_try='test -s conftest$ac_exeext' |
| 12904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12905 | (eval $ac_try) 2>&5 |
| 12906 | ac_status=$? |
| 12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12908 | (exit $ac_status); }; }; then |
| 12909 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 | echo "$as_me: failed program was:" >&5 |
| 12912 | cat conftest.$ac_ext >&5 |
| 12913 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12916 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12918 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12919 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12920 | cat >>confdefs.h <<_ACEOF |
| 12921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12922 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12923 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12924 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12926 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12927 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12931 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12932 | cat >conftest.$ac_ext <<_ACEOF |
| 12933 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12934 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12936 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12937 | #ifdef __cplusplus |
| 12938 | extern "C" |
| 12939 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12940 | /* 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] | 12941 | builtin and then its argument prototype would still apply. */ |
| 12942 | char forkpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12943 | #ifdef F77_DUMMY_MAIN |
| 12944 | # ifdef __cplusplus |
| 12945 | extern "C" |
| 12946 | # endif |
| 12947 | int F77_DUMMY_MAIN() { return 1; } |
| 12948 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | int |
| 12950 | main () |
| 12951 | { |
| 12952 | forkpty (); |
| 12953 | ; |
| 12954 | return 0; |
| 12955 | } |
| 12956 | _ACEOF |
| 12957 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12959 | (eval $ac_link) 2>&5 |
| 12960 | ac_status=$? |
| 12961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12962 | (exit $ac_status); } && |
| 12963 | { ac_try='test -s conftest$ac_exeext' |
| 12964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12965 | (eval $ac_try) 2>&5 |
| 12966 | ac_status=$? |
| 12967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12968 | (exit $ac_status); }; }; then |
| 12969 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 | echo "$as_me: failed program was:" >&5 |
| 12972 | cat conftest.$ac_ext >&5 |
| 12973 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12974 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12976 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12977 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12978 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12979 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12980 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12981 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12982 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12983 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12984 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12985 | fi |
| 12986 | |
| 12987 | fi |
| 12988 | done |
| 12989 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12990 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12991 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12992 | |
| 12993 | |
| 12994 | |
| 12995 | |
| 12996 | |
| 12997 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12998 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12999 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13001 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13003 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13006 | cat >conftest.$ac_ext <<_ACEOF |
| 13007 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13008 | #include "confdefs.h" |
| 13009 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13010 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13011 | #include <assert.h> |
| 13012 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13013 | #ifdef __cplusplus |
| 13014 | extern "C" |
| 13015 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13016 | /* 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] | 13017 | builtin and then its argument prototype would still apply. */ |
| 13018 | char $ac_func (); |
| 13019 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13020 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13021 | #ifdef F77_DUMMY_MAIN |
| 13022 | # ifdef __cplusplus |
| 13023 | extern "C" |
| 13024 | # endif |
| 13025 | int F77_DUMMY_MAIN() { return 1; } |
| 13026 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | int |
| 13028 | main () |
| 13029 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13030 | /* The GNU C library defines this for functions which it implements |
| 13031 | to always fail with ENOSYS. Some functions are actually named |
| 13032 | something starting with __ and the normal name is an alias. */ |
| 13033 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13034 | choke me |
| 13035 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13037 | #endif |
| 13038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13039 | ; |
| 13040 | return 0; |
| 13041 | } |
| 13042 | _ACEOF |
| 13043 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13045 | (eval $ac_link) 2>&5 |
| 13046 | ac_status=$? |
| 13047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13048 | (exit $ac_status); } && |
| 13049 | { ac_try='test -s conftest$ac_exeext' |
| 13050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13051 | (eval $ac_try) 2>&5 |
| 13052 | ac_status=$? |
| 13053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13054 | (exit $ac_status); }; }; then |
| 13055 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13057 | echo "$as_me: failed program was:" >&5 |
| 13058 | cat conftest.$ac_ext >&5 |
| 13059 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13061 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13062 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13064 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13065 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13066 | cat >>confdefs.h <<_ACEOF |
| 13067 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13068 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13069 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13070 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13071 | done |
| 13072 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | |
| 13075 | |
| 13076 | |
| 13077 | |
| 13078 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13079 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13080 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13082 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13083 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13084 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13087 | cat >conftest.$ac_ext <<_ACEOF |
| 13088 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13089 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13090 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13091 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13092 | #include <assert.h> |
| 13093 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13094 | #ifdef __cplusplus |
| 13095 | extern "C" |
| 13096 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13097 | /* 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] | 13098 | builtin and then its argument prototype would still apply. */ |
| 13099 | char $ac_func (); |
| 13100 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13101 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13102 | #ifdef F77_DUMMY_MAIN |
| 13103 | # ifdef __cplusplus |
| 13104 | extern "C" |
| 13105 | # endif |
| 13106 | int F77_DUMMY_MAIN() { return 1; } |
| 13107 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13108 | int |
| 13109 | main () |
| 13110 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13111 | /* The GNU C library defines this for functions which it implements |
| 13112 | to always fail with ENOSYS. Some functions are actually named |
| 13113 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13114 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13115 | choke me |
| 13116 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13117 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13118 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13120 | ; |
| 13121 | return 0; |
| 13122 | } |
| 13123 | _ACEOF |
| 13124 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13126 | (eval $ac_link) 2>&5 |
| 13127 | ac_status=$? |
| 13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13129 | (exit $ac_status); } && |
| 13130 | { ac_try='test -s conftest$ac_exeext' |
| 13131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13132 | (eval $ac_try) 2>&5 |
| 13133 | ac_status=$? |
| 13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13135 | (exit $ac_status); }; }; then |
| 13136 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13137 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13138 | echo "$as_me: failed program was:" >&5 |
| 13139 | cat conftest.$ac_ext >&5 |
| 13140 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13142 | 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] | 13143 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13145 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13146 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13147 | cat >>confdefs.h <<_ACEOF |
| 13148 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13149 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13150 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13152 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13153 | fi |
| 13154 | done |
| 13155 | |
| 13156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13157 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13158 | for ac_func in getpgrp |
| 13159 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13161 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13162 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13163 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13166 | cat >conftest.$ac_ext <<_ACEOF |
| 13167 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13168 | #include "confdefs.h" |
| 13169 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13171 | #include <assert.h> |
| 13172 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | #ifdef __cplusplus |
| 13174 | extern "C" |
| 13175 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13176 | /* 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] | 13177 | builtin and then its argument prototype would still apply. */ |
| 13178 | char $ac_func (); |
| 13179 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13180 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13181 | #ifdef F77_DUMMY_MAIN |
| 13182 | # ifdef __cplusplus |
| 13183 | extern "C" |
| 13184 | # endif |
| 13185 | int F77_DUMMY_MAIN() { return 1; } |
| 13186 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | int |
| 13188 | main () |
| 13189 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13190 | /* The GNU C library defines this for functions which it implements |
| 13191 | to always fail with ENOSYS. Some functions are actually named |
| 13192 | something starting with __ and the normal name is an alias. */ |
| 13193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13194 | choke me |
| 13195 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13197 | #endif |
| 13198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13199 | ; |
| 13200 | return 0; |
| 13201 | } |
| 13202 | _ACEOF |
| 13203 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13205 | (eval $ac_link) 2>&5 |
| 13206 | ac_status=$? |
| 13207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13208 | (exit $ac_status); } && |
| 13209 | { ac_try='test -s conftest$ac_exeext' |
| 13210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13211 | (eval $ac_try) 2>&5 |
| 13212 | ac_status=$? |
| 13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13214 | (exit $ac_status); }; }; then |
| 13215 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 | echo "$as_me: failed program was:" >&5 |
| 13218 | cat conftest.$ac_ext >&5 |
| 13219 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13220 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13221 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13222 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13224 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13225 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13226 | cat >>confdefs.h <<_ACEOF |
| 13227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13228 | _ACEOF |
| 13229 | cat >conftest.$ac_ext <<_ACEOF |
| 13230 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13231 | #include "confdefs.h" |
| 13232 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13233 | #ifdef F77_DUMMY_MAIN |
| 13234 | # ifdef __cplusplus |
| 13235 | extern "C" |
| 13236 | # endif |
| 13237 | int F77_DUMMY_MAIN() { return 1; } |
| 13238 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | int |
| 13240 | main () |
| 13241 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13242 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13243 | ; |
| 13244 | return 0; |
| 13245 | } |
| 13246 | _ACEOF |
| 13247 | rm -f conftest.$ac_objext |
| 13248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13249 | (eval $ac_compile) 2>&5 |
| 13250 | ac_status=$? |
| 13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13252 | (exit $ac_status); } && |
| 13253 | { ac_try='test -s conftest.$ac_objext' |
| 13254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13255 | (eval $ac_try) 2>&5 |
| 13256 | ac_status=$? |
| 13257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13258 | (exit $ac_status); }; }; then |
| 13259 | |
| 13260 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13261 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13262 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13264 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 | echo "$as_me: failed program was:" >&5 |
| 13267 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13269 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13270 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13271 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13272 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13273 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13274 | |
| 13275 | for ac_func in setpgrp |
| 13276 | do |
| 13277 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13278 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13279 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13280 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | cat >conftest.$ac_ext <<_ACEOF |
| 13284 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13285 | #include "confdefs.h" |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13286 | /* System header to define __stub macros and hopefully few prototypes, |
| 13287 | which can conflict with char $ac_func (); below. */ |
| 13288 | #include <assert.h> |
| 13289 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13290 | #ifdef __cplusplus |
| 13291 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13292 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13293 | /* We use char because int might match the return type of a gcc2 |
| 13294 | builtin and then its argument prototype would still apply. */ |
| 13295 | char $ac_func (); |
| 13296 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13297 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13298 | #ifdef F77_DUMMY_MAIN |
| 13299 | # ifdef __cplusplus |
| 13300 | extern "C" |
| 13301 | # endif |
| 13302 | int F77_DUMMY_MAIN() { return 1; } |
| 13303 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13304 | int |
| 13305 | main () |
| 13306 | { |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13307 | /* The GNU C library defines this for functions which it implements |
| 13308 | to always fail with ENOSYS. Some functions are actually named |
| 13309 | something starting with __ and the normal name is an alias. */ |
| 13310 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13311 | choke me |
| 13312 | #else |
| 13313 | f = $ac_func; |
| 13314 | #endif |
| 13315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13316 | ; |
| 13317 | return 0; |
| 13318 | } |
| 13319 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13320 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13322 | (eval $ac_link) 2>&5 |
| 13323 | ac_status=$? |
| 13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13325 | (exit $ac_status); } && |
| 13326 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13328 | (eval $ac_try) 2>&5 |
| 13329 | ac_status=$? |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13332 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13333 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13334 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13335 | cat conftest.$ac_ext >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13336 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13337 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13338 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13339 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13340 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13341 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13342 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13343 | cat >>confdefs.h <<_ACEOF |
| 13344 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13345 | _ACEOF |
| 13346 | cat >conftest.$ac_ext <<_ACEOF |
| 13347 | #line $LINENO "configure" |
| 13348 | #include "confdefs.h" |
| 13349 | #include <unistd.h> |
| 13350 | #ifdef F77_DUMMY_MAIN |
| 13351 | # ifdef __cplusplus |
| 13352 | extern "C" |
| 13353 | # endif |
| 13354 | int F77_DUMMY_MAIN() { return 1; } |
| 13355 | #endif |
| 13356 | int |
| 13357 | main () |
| 13358 | { |
| 13359 | setpgrp(0,0); |
| 13360 | ; |
| 13361 | return 0; |
| 13362 | } |
| 13363 | _ACEOF |
| 13364 | rm -f conftest.$ac_objext |
| 13365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13366 | (eval $ac_compile) 2>&5 |
| 13367 | ac_status=$? |
| 13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13369 | (exit $ac_status); } && |
| 13370 | { ac_try='test -s conftest.$ac_objext' |
| 13371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13372 | (eval $ac_try) 2>&5 |
| 13373 | ac_status=$? |
| 13374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13375 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13376 | |
| 13377 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13378 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13379 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13380 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13381 | |
| 13382 | else |
| 13383 | echo "$as_me: failed program was:" >&5 |
| 13384 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13385 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13386 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13387 | |
| 13388 | fi |
| 13389 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13391 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13392 | for ac_func in gettimeofday |
| 13393 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13394 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13395 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13396 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13397 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13400 | cat >conftest.$ac_ext <<_ACEOF |
| 13401 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13402 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13403 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13404 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13405 | #include <assert.h> |
| 13406 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | #ifdef __cplusplus |
| 13408 | extern "C" |
| 13409 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13410 | /* 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] | 13411 | builtin and then its argument prototype would still apply. */ |
| 13412 | char $ac_func (); |
| 13413 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13414 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13415 | #ifdef F77_DUMMY_MAIN |
| 13416 | # ifdef __cplusplus |
| 13417 | extern "C" |
| 13418 | # endif |
| 13419 | int F77_DUMMY_MAIN() { return 1; } |
| 13420 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13421 | int |
| 13422 | main () |
| 13423 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13424 | /* The GNU C library defines this for functions which it implements |
| 13425 | to always fail with ENOSYS. Some functions are actually named |
| 13426 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13428 | choke me |
| 13429 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13431 | #endif |
| 13432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13433 | ; |
| 13434 | return 0; |
| 13435 | } |
| 13436 | _ACEOF |
| 13437 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13439 | (eval $ac_link) 2>&5 |
| 13440 | ac_status=$? |
| 13441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13442 | (exit $ac_status); } && |
| 13443 | { ac_try='test -s conftest$ac_exeext' |
| 13444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13445 | (eval $ac_try) 2>&5 |
| 13446 | ac_status=$? |
| 13447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13448 | (exit $ac_status); }; }; then |
| 13449 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13451 | echo "$as_me: failed program was:" >&5 |
| 13452 | cat conftest.$ac_ext >&5 |
| 13453 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13455 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13456 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13458 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13459 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13460 | cat >>confdefs.h <<_ACEOF |
| 13461 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13462 | _ACEOF |
| 13463 | cat >conftest.$ac_ext <<_ACEOF |
| 13464 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13465 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13466 | #include <sys/time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13467 | #ifdef F77_DUMMY_MAIN |
| 13468 | # ifdef __cplusplus |
| 13469 | extern "C" |
| 13470 | # endif |
| 13471 | int F77_DUMMY_MAIN() { return 1; } |
| 13472 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13473 | int |
| 13474 | main () |
| 13475 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13476 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13477 | ; |
| 13478 | return 0; |
| 13479 | } |
| 13480 | _ACEOF |
| 13481 | rm -f conftest.$ac_objext |
| 13482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13483 | (eval $ac_compile) 2>&5 |
| 13484 | ac_status=$? |
| 13485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13486 | (exit $ac_status); } && |
| 13487 | { ac_try='test -s conftest.$ac_objext' |
| 13488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13489 | (eval $ac_try) 2>&5 |
| 13490 | ac_status=$? |
| 13491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13492 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13493 | : |
| 13494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13495 | echo "$as_me: failed program was:" >&5 |
| 13496 | cat conftest.$ac_ext >&5 |
| 13497 | |
| 13498 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13499 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13503 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13504 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13505 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13506 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13507 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13508 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13509 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13510 | echo "$as_me:$LINENO: checking for major" >&5 |
| 13511 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 13512 | cat >conftest.$ac_ext <<_ACEOF |
| 13513 | #line $LINENO "configure" |
| 13514 | #include "confdefs.h" |
| 13515 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13516 | #if defined(MAJOR_IN_MKDEV) |
| 13517 | #include <sys/mkdev.h> |
| 13518 | #elif defined(MAJOR_IN_SYSMACROS) |
| 13519 | #include <sys/sysmacros.h> |
| 13520 | #else |
| 13521 | #include <sys/types.h> |
| 13522 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13523 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13524 | #ifdef F77_DUMMY_MAIN |
| 13525 | # ifdef __cplusplus |
| 13526 | extern "C" |
| 13527 | # endif |
| 13528 | int F77_DUMMY_MAIN() { return 1; } |
| 13529 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13530 | int |
| 13531 | main () |
| 13532 | { |
| 13533 | |
| 13534 | makedev(major(0),minor(0)); |
| 13535 | |
| 13536 | ; |
| 13537 | return 0; |
| 13538 | } |
| 13539 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13540 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13542 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13543 | ac_status=$? |
| 13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13545 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13546 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13548 | (eval $ac_try) 2>&5 |
| 13549 | ac_status=$? |
| 13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13551 | (exit $ac_status); }; }; then |
| 13552 | |
| 13553 | |
| 13554 | cat >>confdefs.h <<\_ACEOF |
| 13555 | #define HAVE_DEVICE_MACROS 1 |
| 13556 | _ACEOF |
| 13557 | |
| 13558 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13559 | echo "${ECHO_T}yes" >&6 |
| 13560 | |
| 13561 | else |
| 13562 | echo "$as_me: failed program was:" >&5 |
| 13563 | cat conftest.$ac_ext >&5 |
| 13564 | |
| 13565 | echo "$as_me:$LINENO: result: no" >&5 |
| 13566 | echo "${ECHO_T}no" >&6 |
| 13567 | |
| 13568 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13569 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13570 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13571 | # 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] | 13572 | # for [no]getaddrinfo in netdb.h. |
| 13573 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 13574 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 13575 | cat >conftest.$ac_ext <<_ACEOF |
| 13576 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13577 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13578 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13579 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13580 | #include <sys/socket.h> |
| 13581 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13582 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13583 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13584 | #ifdef F77_DUMMY_MAIN |
| 13585 | # ifdef __cplusplus |
| 13586 | extern "C" |
| 13587 | # endif |
| 13588 | int F77_DUMMY_MAIN() { return 1; } |
| 13589 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | int |
| 13591 | main () |
| 13592 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13593 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13594 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 | ; |
| 13597 | return 0; |
| 13598 | } |
| 13599 | _ACEOF |
| 13600 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13602 | (eval $ac_link) 2>&5 |
| 13603 | ac_status=$? |
| 13604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13605 | (exit $ac_status); } && |
| 13606 | { ac_try='test -s conftest$ac_exeext' |
| 13607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13608 | (eval $ac_try) 2>&5 |
| 13609 | ac_status=$? |
| 13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13611 | (exit $ac_status); }; }; then |
| 13612 | |
| 13613 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13614 | echo "${ECHO_T}yes" >&6 |
| 13615 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 13616 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13617 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13618 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13619 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13620 | buggygetaddrinfo=yes |
| 13621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 | cat >conftest.$ac_ext <<_ACEOF |
| 13623 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13624 | #include "confdefs.h" |
| 13625 | |
| 13626 | #include <sys/types.h> |
| 13627 | #include <netdb.h> |
| 13628 | #include <string.h> |
| 13629 | #include <sys/socket.h> |
| 13630 | #include <netinet/in.h> |
| 13631 | |
| 13632 | main() |
| 13633 | { |
| 13634 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 13635 | struct addrinfo hints, *ai, *aitop; |
| 13636 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 13637 | |
| 13638 | for (passive = 0; passive <= 1; passive++) { |
| 13639 | memset(&hints, 0, sizeof(hints)); |
| 13640 | hints.ai_family = AF_UNSPEC; |
| 13641 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 13642 | hints.ai_socktype = SOCK_STREAM; |
| 13643 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 13644 | (void)gai_strerror(gaierr); |
| 13645 | goto bad; |
| 13646 | } |
| 13647 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 13648 | if (ai->ai_addr == NULL || |
| 13649 | ai->ai_addrlen == 0 || |
| 13650 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 13651 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 13652 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 13653 | goto bad; |
| 13654 | } |
| 13655 | switch (ai->ai_family) { |
| 13656 | case AF_INET: |
| 13657 | if (strcmp(strport, "54321") != 0) { |
| 13658 | goto bad; |
| 13659 | } |
| 13660 | if (passive) { |
| 13661 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 13662 | goto bad; |
| 13663 | } |
| 13664 | } else { |
| 13665 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 13666 | goto bad; |
| 13667 | } |
| 13668 | } |
| 13669 | inet4++; |
| 13670 | break; |
| 13671 | case AF_INET6: |
| 13672 | if (strcmp(strport, "54321") != 0) { |
| 13673 | goto bad; |
| 13674 | } |
| 13675 | if (passive) { |
| 13676 | if (strcmp(straddr, "::") != 0) { |
| 13677 | goto bad; |
| 13678 | } |
| 13679 | } else { |
| 13680 | if (strcmp(straddr, "::1") != 0) { |
| 13681 | goto bad; |
| 13682 | } |
| 13683 | } |
| 13684 | inet6++; |
| 13685 | break; |
| 13686 | case AF_UNSPEC: |
| 13687 | goto bad; |
| 13688 | break; |
| 13689 | default: |
| 13690 | /* another family support? */ |
| 13691 | break; |
| 13692 | } |
| 13693 | } |
| 13694 | } |
| 13695 | |
| 13696 | if (!(inet4 == 0 || inet4 == 2)) |
| 13697 | goto bad; |
| 13698 | if (!(inet6 == 0 || inet6 == 2)) |
| 13699 | goto bad; |
| 13700 | |
| 13701 | if (aitop) |
| 13702 | freeaddrinfo(aitop); |
| 13703 | exit(0); |
| 13704 | |
| 13705 | bad: |
| 13706 | if (aitop) |
| 13707 | freeaddrinfo(aitop); |
| 13708 | exit(1); |
| 13709 | } |
| 13710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13711 | _ACEOF |
| 13712 | rm -f conftest$ac_exeext |
| 13713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13714 | (eval $ac_link) 2>&5 |
| 13715 | ac_status=$? |
| 13716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13719 | (eval $ac_try) 2>&5 |
| 13720 | ac_status=$? |
| 13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13722 | (exit $ac_status); }; }; then |
| 13723 | echo "$as_me:$LINENO: result: good" >&5 |
| 13724 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13725 | buggygetaddrinfo=no |
| 13726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13727 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13728 | echo "$as_me: failed program was:" >&5 |
| 13729 | cat conftest.$ac_ext >&5 |
| 13730 | ( exit $ac_status ) |
| 13731 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13732 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13733 | buggygetaddrinfo=yes |
| 13734 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13735 | 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] | 13736 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13738 | echo "$as_me: failed program was:" >&5 |
| 13739 | cat conftest.$ac_ext >&5 |
| 13740 | |
| 13741 | echo "$as_me:$LINENO: result: no" >&5 |
| 13742 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13743 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13744 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13746 | 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] | 13747 | |
| 13748 | if test "$buggygetaddrinfo" = "yes"; then |
| 13749 | if test "$ipv6" = "yes"; then |
| 13750 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13751 | echo ' or you can specify "--disable-ipv6"'. |
| 13752 | exit 1 |
| 13753 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13755 | |
| 13756 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13757 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13758 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13759 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13760 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13761 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13762 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13763 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13764 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13765 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13767 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | cat >conftest.$ac_ext <<_ACEOF |
| 13771 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13772 | #include "confdefs.h" |
| 13773 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13774 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13775 | #include <assert.h> |
| 13776 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13777 | #ifdef __cplusplus |
| 13778 | extern "C" |
| 13779 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13780 | /* 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] | 13781 | builtin and then its argument prototype would still apply. */ |
| 13782 | char $ac_func (); |
| 13783 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13784 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13785 | #ifdef F77_DUMMY_MAIN |
| 13786 | # ifdef __cplusplus |
| 13787 | extern "C" |
| 13788 | # endif |
| 13789 | int F77_DUMMY_MAIN() { return 1; } |
| 13790 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13791 | int |
| 13792 | main () |
| 13793 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13794 | /* The GNU C library defines this for functions which it implements |
| 13795 | to always fail with ENOSYS. Some functions are actually named |
| 13796 | something starting with __ and the normal name is an alias. */ |
| 13797 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13798 | choke me |
| 13799 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13800 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13801 | #endif |
| 13802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13803 | ; |
| 13804 | return 0; |
| 13805 | } |
| 13806 | _ACEOF |
| 13807 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13809 | (eval $ac_link) 2>&5 |
| 13810 | ac_status=$? |
| 13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13812 | (exit $ac_status); } && |
| 13813 | { ac_try='test -s conftest$ac_exeext' |
| 13814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13815 | (eval $ac_try) 2>&5 |
| 13816 | ac_status=$? |
| 13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13818 | (exit $ac_status); }; }; then |
| 13819 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | echo "$as_me: failed program was:" >&5 |
| 13822 | cat conftest.$ac_ext >&5 |
| 13823 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13824 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13825 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13828 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13829 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13830 | cat >>confdefs.h <<_ACEOF |
| 13831 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13832 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13833 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13834 | fi |
| 13835 | done |
| 13836 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13837 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13838 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13839 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13840 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13841 | if test "${ac_cv_header_time+set}" = set; then |
| 13842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13843 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13844 | cat >conftest.$ac_ext <<_ACEOF |
| 13845 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13846 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13847 | #include <sys/types.h> |
| 13848 | #include <sys/time.h> |
| 13849 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13850 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13851 | #ifdef F77_DUMMY_MAIN |
| 13852 | # ifdef __cplusplus |
| 13853 | extern "C" |
| 13854 | # endif |
| 13855 | int F77_DUMMY_MAIN() { return 1; } |
| 13856 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13857 | int |
| 13858 | main () |
| 13859 | { |
| 13860 | if ((struct tm *) 0) |
| 13861 | return 0; |
| 13862 | ; |
| 13863 | return 0; |
| 13864 | } |
| 13865 | _ACEOF |
| 13866 | rm -f conftest.$ac_objext |
| 13867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13868 | (eval $ac_compile) 2>&5 |
| 13869 | ac_status=$? |
| 13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13871 | (exit $ac_status); } && |
| 13872 | { ac_try='test -s conftest.$ac_objext' |
| 13873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13874 | (eval $ac_try) 2>&5 |
| 13875 | ac_status=$? |
| 13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13877 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13878 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13880 | echo "$as_me: failed program was:" >&5 |
| 13881 | cat conftest.$ac_ext >&5 |
| 13882 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13884 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13886 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13887 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13888 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13889 | |
| 13890 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13891 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13892 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13893 | |
| 13894 | fi |
| 13895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13896 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13897 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13898 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13901 | cat >conftest.$ac_ext <<_ACEOF |
| 13902 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13903 | #include "confdefs.h" |
| 13904 | #include <sys/types.h> |
| 13905 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13906 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13907 | #ifdef F77_DUMMY_MAIN |
| 13908 | # ifdef __cplusplus |
| 13909 | extern "C" |
| 13910 | # endif |
| 13911 | int F77_DUMMY_MAIN() { return 1; } |
| 13912 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | int |
| 13914 | main () |
| 13915 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13916 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13917 | ; |
| 13918 | return 0; |
| 13919 | } |
| 13920 | _ACEOF |
| 13921 | rm -f conftest.$ac_objext |
| 13922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13923 | (eval $ac_compile) 2>&5 |
| 13924 | ac_status=$? |
| 13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13926 | (exit $ac_status); } && |
| 13927 | { ac_try='test -s conftest.$ac_objext' |
| 13928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13929 | (eval $ac_try) 2>&5 |
| 13930 | ac_status=$? |
| 13931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13932 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13933 | ac_cv_struct_tm=time.h |
| 13934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13935 | echo "$as_me: failed program was:" >&5 |
| 13936 | cat conftest.$ac_ext >&5 |
| 13937 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13938 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13939 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13940 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13941 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13942 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13943 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | |
| 13945 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13946 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13947 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13948 | |
| 13949 | fi |
| 13950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13951 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13952 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13953 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 13954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13955 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | cat >conftest.$ac_ext <<_ACEOF |
| 13957 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13958 | #include "confdefs.h" |
| 13959 | #include <sys/types.h> |
| 13960 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13961 | |
| 13962 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13963 | #ifdef F77_DUMMY_MAIN |
| 13964 | # ifdef __cplusplus |
| 13965 | extern "C" |
| 13966 | # endif |
| 13967 | int F77_DUMMY_MAIN() { return 1; } |
| 13968 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | int |
| 13970 | main () |
| 13971 | { |
| 13972 | static struct tm ac_aggr; |
| 13973 | if (ac_aggr.tm_zone) |
| 13974 | return 0; |
| 13975 | ; |
| 13976 | return 0; |
| 13977 | } |
| 13978 | _ACEOF |
| 13979 | rm -f conftest.$ac_objext |
| 13980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13981 | (eval $ac_compile) 2>&5 |
| 13982 | ac_status=$? |
| 13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13984 | (exit $ac_status); } && |
| 13985 | { ac_try='test -s conftest.$ac_objext' |
| 13986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13987 | (eval $ac_try) 2>&5 |
| 13988 | ac_status=$? |
| 13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13990 | (exit $ac_status); }; }; then |
| 13991 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13993 | echo "$as_me: failed program was:" >&5 |
| 13994 | cat conftest.$ac_ext >&5 |
| 13995 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13998 | fi |
| 13999 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 14000 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 14001 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 14002 | |
| 14003 | cat >>confdefs.h <<_ACEOF |
| 14004 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 14005 | _ACEOF |
| 14006 | |
| 14007 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14008 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14010 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 14011 | |
| 14012 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14013 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14015 | |
| 14016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14017 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 14018 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 14019 | if test "${ac_cv_var_tzname+set}" = set; then |
| 14020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14022 | cat >conftest.$ac_ext <<_ACEOF |
| 14023 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14024 | #include "confdefs.h" |
| 14025 | #include <time.h> |
| 14026 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14027 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14028 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14030 | #ifdef F77_DUMMY_MAIN |
| 14031 | # ifdef __cplusplus |
| 14032 | extern "C" |
| 14033 | # endif |
| 14034 | int F77_DUMMY_MAIN() { return 1; } |
| 14035 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14036 | int |
| 14037 | main () |
| 14038 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14039 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | ; |
| 14041 | return 0; |
| 14042 | } |
| 14043 | _ACEOF |
| 14044 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14046 | (eval $ac_link) 2>&5 |
| 14047 | ac_status=$? |
| 14048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14049 | (exit $ac_status); } && |
| 14050 | { ac_try='test -s conftest$ac_exeext' |
| 14051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14052 | (eval $ac_try) 2>&5 |
| 14053 | ac_status=$? |
| 14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14055 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14056 | ac_cv_var_tzname=yes |
| 14057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | echo "$as_me: failed program was:" >&5 |
| 14059 | cat conftest.$ac_ext >&5 |
| 14060 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14062 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 14065 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14066 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14067 | |
| 14068 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14069 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14070 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14071 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14072 | fi |
| 14073 | fi |
| 14074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14075 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 14076 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 14077 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 14078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14079 | else |
| 14080 | cat >conftest.$ac_ext <<_ACEOF |
| 14081 | #line $LINENO "configure" |
| 14082 | #include "confdefs.h" |
| 14083 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14084 | #ifdef F77_DUMMY_MAIN |
| 14085 | # ifdef __cplusplus |
| 14086 | extern "C" |
| 14087 | # endif |
| 14088 | int F77_DUMMY_MAIN() { return 1; } |
| 14089 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | int |
| 14091 | main () |
| 14092 | { |
| 14093 | static struct stat ac_aggr; |
| 14094 | if (ac_aggr.st_rdev) |
| 14095 | return 0; |
| 14096 | ; |
| 14097 | return 0; |
| 14098 | } |
| 14099 | _ACEOF |
| 14100 | rm -f conftest.$ac_objext |
| 14101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14102 | (eval $ac_compile) 2>&5 |
| 14103 | ac_status=$? |
| 14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14105 | (exit $ac_status); } && |
| 14106 | { ac_try='test -s conftest.$ac_objext' |
| 14107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14108 | (eval $ac_try) 2>&5 |
| 14109 | ac_status=$? |
| 14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14111 | (exit $ac_status); }; }; then |
| 14112 | ac_cv_member_struct_stat_st_rdev=yes |
| 14113 | else |
| 14114 | echo "$as_me: failed program was:" >&5 |
| 14115 | cat conftest.$ac_ext >&5 |
| 14116 | ac_cv_member_struct_stat_st_rdev=no |
| 14117 | fi |
| 14118 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14119 | fi |
| 14120 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 14121 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 14122 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 14123 | |
| 14124 | cat >>confdefs.h <<_ACEOF |
| 14125 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 14126 | _ACEOF |
| 14127 | |
| 14128 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14129 | fi |
| 14130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14131 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 14132 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 14133 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 14134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 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" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14138 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14139 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14140 | #ifdef F77_DUMMY_MAIN |
| 14141 | # ifdef __cplusplus |
| 14142 | extern "C" |
| 14143 | # endif |
| 14144 | int F77_DUMMY_MAIN() { return 1; } |
| 14145 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | int |
| 14147 | main () |
| 14148 | { |
| 14149 | static struct stat ac_aggr; |
| 14150 | if (ac_aggr.st_blksize) |
| 14151 | return 0; |
| 14152 | ; |
| 14153 | return 0; |
| 14154 | } |
| 14155 | _ACEOF |
| 14156 | rm -f conftest.$ac_objext |
| 14157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14158 | (eval $ac_compile) 2>&5 |
| 14159 | ac_status=$? |
| 14160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14161 | (exit $ac_status); } && |
| 14162 | { ac_try='test -s conftest.$ac_objext' |
| 14163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14164 | (eval $ac_try) 2>&5 |
| 14165 | ac_status=$? |
| 14166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14167 | (exit $ac_status); }; }; then |
| 14168 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14170 | echo "$as_me: failed program was:" >&5 |
| 14171 | cat conftest.$ac_ext >&5 |
| 14172 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14174 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14175 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14176 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 14177 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 14178 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14180 | cat >>confdefs.h <<_ACEOF |
| 14181 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 14182 | _ACEOF |
| 14183 | |
| 14184 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14185 | fi |
| 14186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14187 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 14188 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 14189 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 14190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14191 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14192 | cat >conftest.$ac_ext <<_ACEOF |
| 14193 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14194 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14195 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14196 | #ifdef F77_DUMMY_MAIN |
| 14197 | # ifdef __cplusplus |
| 14198 | extern "C" |
| 14199 | # endif |
| 14200 | int F77_DUMMY_MAIN() { return 1; } |
| 14201 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14202 | int |
| 14203 | main () |
| 14204 | { |
| 14205 | static struct stat ac_aggr; |
| 14206 | if (ac_aggr.st_blocks) |
| 14207 | return 0; |
| 14208 | ; |
| 14209 | return 0; |
| 14210 | } |
| 14211 | _ACEOF |
| 14212 | rm -f conftest.$ac_objext |
| 14213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14214 | (eval $ac_compile) 2>&5 |
| 14215 | ac_status=$? |
| 14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14217 | (exit $ac_status); } && |
| 14218 | { ac_try='test -s conftest.$ac_objext' |
| 14219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14220 | (eval $ac_try) 2>&5 |
| 14221 | ac_status=$? |
| 14222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14223 | (exit $ac_status); }; }; then |
| 14224 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14226 | echo "$as_me: failed program was:" >&5 |
| 14227 | cat conftest.$ac_ext >&5 |
| 14228 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14229 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14230 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14231 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14232 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 14233 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 14234 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14236 | cat >>confdefs.h <<_ACEOF |
| 14237 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14238 | _ACEOF |
| 14239 | |
| 14240 | |
| 14241 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14242 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14243 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14244 | |
| 14245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14246 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14247 | fi |
| 14248 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | |
| 14251 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 14252 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 14253 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 14254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14256 | cat >conftest.$ac_ext <<_ACEOF |
| 14257 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14258 | #include "confdefs.h" |
| 14259 | #include <time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14260 | #ifdef F77_DUMMY_MAIN |
| 14261 | # ifdef __cplusplus |
| 14262 | extern "C" |
| 14263 | # endif |
| 14264 | int F77_DUMMY_MAIN() { return 1; } |
| 14265 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14266 | int |
| 14267 | main () |
| 14268 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14269 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14270 | ; |
| 14271 | return 0; |
| 14272 | } |
| 14273 | _ACEOF |
| 14274 | rm -f conftest.$ac_objext |
| 14275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14276 | (eval $ac_compile) 2>&5 |
| 14277 | ac_status=$? |
| 14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14279 | (exit $ac_status); } && |
| 14280 | { ac_try='test -s conftest.$ac_objext' |
| 14281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14282 | (eval $ac_try) 2>&5 |
| 14283 | ac_status=$? |
| 14284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14285 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14286 | ac_cv_header_time_altzone=yes |
| 14287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14288 | echo "$as_me: failed program was:" >&5 |
| 14289 | cat conftest.$ac_ext >&5 |
| 14290 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14291 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14292 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14293 | fi |
| 14294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14295 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 14296 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14297 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14298 | |
| 14299 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14300 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14301 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14302 | |
| 14303 | fi |
| 14304 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14305 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14306 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 14307 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14308 | cat >conftest.$ac_ext <<_ACEOF |
| 14309 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14310 | #include "confdefs.h" |
| 14311 | |
| 14312 | #include <sys/types.h> |
| 14313 | #include <sys/select.h> |
| 14314 | #include <sys/time.h> |
| 14315 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14316 | #ifdef F77_DUMMY_MAIN |
| 14317 | # ifdef __cplusplus |
| 14318 | extern "C" |
| 14319 | # endif |
| 14320 | int F77_DUMMY_MAIN() { return 1; } |
| 14321 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14322 | int |
| 14323 | main () |
| 14324 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14325 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | ; |
| 14327 | return 0; |
| 14328 | } |
| 14329 | _ACEOF |
| 14330 | rm -f conftest.$ac_objext |
| 14331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14332 | (eval $ac_compile) 2>&5 |
| 14333 | ac_status=$? |
| 14334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14335 | (exit $ac_status); } && |
| 14336 | { ac_try='test -s conftest.$ac_objext' |
| 14337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14338 | (eval $ac_try) 2>&5 |
| 14339 | ac_status=$? |
| 14340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14341 | (exit $ac_status); }; }; then |
| 14342 | |
| 14343 | |
| 14344 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14345 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | _ACEOF |
| 14347 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14348 | was_it_defined=yes |
| 14349 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14351 | echo "$as_me: failed program was:" >&5 |
| 14352 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14353 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14354 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14355 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 14356 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14357 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14358 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 14359 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 14360 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 14361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14363 | cat >conftest.$ac_ext <<_ACEOF |
| 14364 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14365 | #include "confdefs.h" |
| 14366 | |
| 14367 | # include <netdb.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14368 | #ifdef F77_DUMMY_MAIN |
| 14369 | # ifdef __cplusplus |
| 14370 | extern "C" |
| 14371 | # endif |
| 14372 | int F77_DUMMY_MAIN() { return 1; } |
| 14373 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14374 | int |
| 14375 | main () |
| 14376 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14377 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | ; |
| 14379 | return 0; |
| 14380 | } |
| 14381 | _ACEOF |
| 14382 | rm -f conftest.$ac_objext |
| 14383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14384 | (eval $ac_compile) 2>&5 |
| 14385 | ac_status=$? |
| 14386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14387 | (exit $ac_status); } && |
| 14388 | { ac_try='test -s conftest.$ac_objext' |
| 14389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14390 | (eval $ac_try) 2>&5 |
| 14391 | ac_status=$? |
| 14392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14393 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14394 | ac_cv_struct_addrinfo=yes |
| 14395 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14396 | echo "$as_me: failed program was:" >&5 |
| 14397 | cat conftest.$ac_ext >&5 |
| 14398 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14401 | fi |
| 14402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 14404 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14405 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14406 | |
| 14407 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14408 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14409 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14410 | |
| 14411 | fi |
| 14412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 14414 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 14415 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 14416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14418 | cat >conftest.$ac_ext <<_ACEOF |
| 14419 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14420 | #include "confdefs.h" |
| 14421 | |
| 14422 | # include <sys/types.h> |
| 14423 | # include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14424 | #ifdef F77_DUMMY_MAIN |
| 14425 | # ifdef __cplusplus |
| 14426 | extern "C" |
| 14427 | # endif |
| 14428 | int F77_DUMMY_MAIN() { return 1; } |
| 14429 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14430 | int |
| 14431 | main () |
| 14432 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14433 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | ; |
| 14435 | return 0; |
| 14436 | } |
| 14437 | _ACEOF |
| 14438 | rm -f conftest.$ac_objext |
| 14439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14440 | (eval $ac_compile) 2>&5 |
| 14441 | ac_status=$? |
| 14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14443 | (exit $ac_status); } && |
| 14444 | { ac_try='test -s conftest.$ac_objext' |
| 14445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14446 | (eval $ac_try) 2>&5 |
| 14447 | ac_status=$? |
| 14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14449 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14450 | ac_cv_struct_sockaddr_storage=yes |
| 14451 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14452 | echo "$as_me: failed program was:" >&5 |
| 14453 | cat conftest.$ac_ext >&5 |
| 14454 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14455 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14456 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14457 | fi |
| 14458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14459 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 14460 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14461 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14462 | |
| 14463 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14464 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14466 | |
| 14467 | fi |
| 14468 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14469 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14470 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14471 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14472 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 14473 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 14474 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 14475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14477 | cat >conftest.$ac_ext <<_ACEOF |
| 14478 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14479 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14480 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14481 | #ifdef F77_DUMMY_MAIN |
| 14482 | # ifdef __cplusplus |
| 14483 | extern "C" |
| 14484 | # endif |
| 14485 | int F77_DUMMY_MAIN() { return 1; } |
| 14486 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14487 | int |
| 14488 | main () |
| 14489 | { |
| 14490 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 14491 | test_array [0] = 0 |
| 14492 | |
| 14493 | ; |
| 14494 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14495 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14496 | _ACEOF |
| 14497 | rm -f conftest.$ac_objext |
| 14498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14499 | (eval $ac_compile) 2>&5 |
| 14500 | ac_status=$? |
| 14501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14502 | (exit $ac_status); } && |
| 14503 | { ac_try='test -s conftest.$ac_objext' |
| 14504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14505 | (eval $ac_try) 2>&5 |
| 14506 | ac_status=$? |
| 14507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14508 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14509 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | else |
| 14511 | echo "$as_me: failed program was:" >&5 |
| 14512 | cat conftest.$ac_ext >&5 |
| 14513 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14514 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14515 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14516 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 14518 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14519 | 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] | 14520 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14521 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14523 | |
| 14524 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14525 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14526 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 14527 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 14528 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 14529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14530 | else |
| 14531 | ac_cv_prog_cc_stdc=no |
| 14532 | ac_save_CC=$CC |
| 14533 | cat >conftest.$ac_ext <<_ACEOF |
| 14534 | #line $LINENO "configure" |
| 14535 | #include "confdefs.h" |
| 14536 | #include <stdarg.h> |
| 14537 | #include <stdio.h> |
| 14538 | #include <sys/types.h> |
| 14539 | #include <sys/stat.h> |
| 14540 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 14541 | struct buf { int x; }; |
| 14542 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 14543 | static char *e (p, i) |
| 14544 | char **p; |
| 14545 | int i; |
| 14546 | { |
| 14547 | return p[i]; |
| 14548 | } |
| 14549 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 14550 | { |
| 14551 | char *s; |
| 14552 | va_list v; |
| 14553 | va_start (v,p); |
| 14554 | s = g (p, va_arg (v,int)); |
| 14555 | va_end (v); |
| 14556 | return s; |
| 14557 | } |
| 14558 | int test (int i, double x); |
| 14559 | struct s1 {int (*f) (int a);}; |
| 14560 | struct s2 {int (*f) (double a);}; |
| 14561 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 14562 | int argc; |
| 14563 | char **argv; |
| 14564 | #ifdef F77_DUMMY_MAIN |
| 14565 | # ifdef __cplusplus |
| 14566 | extern "C" |
| 14567 | # endif |
| 14568 | int F77_DUMMY_MAIN() { return 1; } |
| 14569 | #endif |
| 14570 | int |
| 14571 | main () |
| 14572 | { |
| 14573 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 14574 | ; |
| 14575 | return 0; |
| 14576 | } |
| 14577 | _ACEOF |
| 14578 | # Don't try gcc -ansi; that turns off useful extensions and |
| 14579 | # breaks some systems' header files. |
| 14580 | # AIX -qlanglvl=ansi |
| 14581 | # Ultrix and OSF/1 -std1 |
| 14582 | # HP-UX 10.20 and later -Ae |
| 14583 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 14584 | # SVR4 -Xc -D__EXTENSIONS__ |
| 14585 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 14586 | do |
| 14587 | CC="$ac_save_CC $ac_arg" |
| 14588 | rm -f conftest.$ac_objext |
| 14589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14590 | (eval $ac_compile) 2>&5 |
| 14591 | ac_status=$? |
| 14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14593 | (exit $ac_status); } && |
| 14594 | { ac_try='test -s conftest.$ac_objext' |
| 14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14596 | (eval $ac_try) 2>&5 |
| 14597 | ac_status=$? |
| 14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14599 | (exit $ac_status); }; }; then |
| 14600 | ac_cv_prog_cc_stdc=$ac_arg |
| 14601 | break |
| 14602 | else |
| 14603 | echo "$as_me: failed program was:" >&5 |
| 14604 | cat conftest.$ac_ext >&5 |
| 14605 | fi |
| 14606 | rm -f conftest.$ac_objext |
| 14607 | done |
| 14608 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 14609 | CC=$ac_save_CC |
| 14610 | |
| 14611 | fi |
| 14612 | |
| 14613 | case "x$ac_cv_prog_cc_stdc" in |
| 14614 | x|xno) |
| 14615 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 14616 | echo "${ECHO_T}none needed" >&6 ;; |
| 14617 | *) |
| 14618 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 14619 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 14620 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 14621 | esac |
| 14622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14624 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14625 | if test "${ac_cv_c_const+set}" = set; then |
| 14626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14627 | else |
| 14628 | cat >conftest.$ac_ext <<_ACEOF |
| 14629 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14630 | #include "confdefs.h" |
| 14631 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14632 | #ifdef F77_DUMMY_MAIN |
| 14633 | # ifdef __cplusplus |
| 14634 | extern "C" |
| 14635 | # endif |
| 14636 | int F77_DUMMY_MAIN() { return 1; } |
| 14637 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14638 | int |
| 14639 | main () |
| 14640 | { |
| 14641 | /* FIXME: Include the comments suggested by Paul. */ |
| 14642 | #ifndef __cplusplus |
| 14643 | /* Ultrix mips cc rejects this. */ |
| 14644 | typedef int charset[2]; |
| 14645 | const charset x; |
| 14646 | /* SunOS 4.1.1 cc rejects this. */ |
| 14647 | char const *const *ccp; |
| 14648 | char **p; |
| 14649 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14650 | struct point {int x, y;}; |
| 14651 | static struct point const zero = {0,0}; |
| 14652 | /* AIX XL C 1.02.0.0 rejects this. |
| 14653 | It does not let you subtract one const X* pointer from another in |
| 14654 | an arm of an if-expression whose if-part is not a constant |
| 14655 | expression */ |
| 14656 | const char *g = "string"; |
| 14657 | ccp = &g + (g ? g-g : 0); |
| 14658 | /* HPUX 7.0 cc rejects these. */ |
| 14659 | ++ccp; |
| 14660 | p = (char**) ccp; |
| 14661 | ccp = (char const *const *) p; |
| 14662 | { /* SCO 3.2v4 cc rejects this. */ |
| 14663 | char *t; |
| 14664 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14666 | *t++ = 0; |
| 14667 | } |
| 14668 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14669 | int x[] = {25, 17}; |
| 14670 | const int *foo = &x[0]; |
| 14671 | ++foo; |
| 14672 | } |
| 14673 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14674 | typedef const int *iptr; |
| 14675 | iptr p = 0; |
| 14676 | ++p; |
| 14677 | } |
| 14678 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14679 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14680 | struct s { int j; const int *ap[3]; }; |
| 14681 | struct s *b; b->j = 5; |
| 14682 | } |
| 14683 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14684 | const int foo = 10; |
| 14685 | } |
| 14686 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | ; |
| 14689 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14690 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14691 | _ACEOF |
| 14692 | rm -f conftest.$ac_objext |
| 14693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14694 | (eval $ac_compile) 2>&5 |
| 14695 | ac_status=$? |
| 14696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14697 | (exit $ac_status); } && |
| 14698 | { ac_try='test -s conftest.$ac_objext' |
| 14699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14700 | (eval $ac_try) 2>&5 |
| 14701 | ac_status=$? |
| 14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14703 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14704 | ac_cv_c_const=yes |
| 14705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14706 | echo "$as_me: failed program was:" >&5 |
| 14707 | cat conftest.$ac_ext >&5 |
| 14708 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14709 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14710 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14712 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14713 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14714 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14715 | |
| 14716 | cat >>confdefs.h <<\_ACEOF |
| 14717 | #define const |
| 14718 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14719 | |
| 14720 | fi |
| 14721 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14722 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14723 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14724 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14725 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14726 | cat >conftest.$ac_ext <<_ACEOF |
| 14727 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14728 | #include "confdefs.h" |
| 14729 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14730 | #ifdef F77_DUMMY_MAIN |
| 14731 | # ifdef __cplusplus |
| 14732 | extern "C" |
| 14733 | # endif |
| 14734 | int F77_DUMMY_MAIN() { return 1; } |
| 14735 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14736 | int |
| 14737 | main () |
| 14738 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14739 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | ; |
| 14741 | return 0; |
| 14742 | } |
| 14743 | _ACEOF |
| 14744 | rm -f conftest.$ac_objext |
| 14745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14746 | (eval $ac_compile) 2>&5 |
| 14747 | ac_status=$? |
| 14748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14749 | (exit $ac_status); } && |
| 14750 | { ac_try='test -s conftest.$ac_objext' |
| 14751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14752 | (eval $ac_try) 2>&5 |
| 14753 | ac_status=$? |
| 14754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14755 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14756 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14758 | echo "$as_me: failed program was:" >&5 |
| 14759 | cat conftest.$ac_ext >&5 |
| 14760 | |
| 14761 | cat >>confdefs.h <<\_ACEOF |
| 14762 | #define volatile |
| 14763 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14764 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14765 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14766 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14767 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14768 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14769 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14770 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14771 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14772 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14773 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14774 | cat >conftest.$ac_ext <<_ACEOF |
| 14775 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14776 | #include "confdefs.h" |
| 14777 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14778 | #ifdef F77_DUMMY_MAIN |
| 14779 | # ifdef __cplusplus |
| 14780 | extern "C" |
| 14781 | # endif |
| 14782 | int F77_DUMMY_MAIN() { return 1; } |
| 14783 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 | int |
| 14785 | main () |
| 14786 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14787 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | ; |
| 14789 | return 0; |
| 14790 | } |
| 14791 | _ACEOF |
| 14792 | rm -f conftest.$ac_objext |
| 14793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14794 | (eval $ac_compile) 2>&5 |
| 14795 | ac_status=$? |
| 14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14797 | (exit $ac_status); } && |
| 14798 | { ac_try='test -s conftest.$ac_objext' |
| 14799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14800 | (eval $ac_try) 2>&5 |
| 14801 | ac_status=$? |
| 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14803 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14804 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | echo "$as_me: failed program was:" >&5 |
| 14807 | cat conftest.$ac_ext >&5 |
| 14808 | |
| 14809 | cat >>confdefs.h <<\_ACEOF |
| 14810 | #define signed |
| 14811 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14812 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14813 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14816 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14817 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14818 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14819 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14821 | echo $ECHO_N "checking for prototypes... $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" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14825 | int foo(int x) { return 0; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14826 | #ifdef F77_DUMMY_MAIN |
| 14827 | # ifdef __cplusplus |
| 14828 | extern "C" |
| 14829 | # endif |
| 14830 | int F77_DUMMY_MAIN() { return 1; } |
| 14831 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | int |
| 14833 | main () |
| 14834 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14835 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | ; |
| 14837 | return 0; |
| 14838 | } |
| 14839 | _ACEOF |
| 14840 | rm -f conftest.$ac_objext |
| 14841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14842 | (eval $ac_compile) 2>&5 |
| 14843 | ac_status=$? |
| 14844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14845 | (exit $ac_status); } && |
| 14846 | { ac_try='test -s conftest.$ac_objext' |
| 14847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14848 | (eval $ac_try) 2>&5 |
| 14849 | ac_status=$? |
| 14850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14851 | (exit $ac_status); }; }; then |
| 14852 | |
| 14853 | |
| 14854 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14855 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14856 | _ACEOF |
| 14857 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14858 | have_prototypes=yes |
| 14859 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14861 | echo "$as_me: failed program was:" >&5 |
| 14862 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14863 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14864 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14865 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14866 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14867 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14868 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14869 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14870 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14871 | cat >conftest.$ac_ext <<_ACEOF |
| 14872 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14873 | #include "confdefs.h" |
| 14874 | |
| 14875 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14876 | int foo(int x, ...) { |
| 14877 | va_list va; |
| 14878 | va_start(va, x); |
| 14879 | va_arg(va, int); |
| 14880 | va_arg(va, char *); |
| 14881 | va_arg(va, double); |
| 14882 | return 0; |
| 14883 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14884 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14885 | #ifdef F77_DUMMY_MAIN |
| 14886 | # ifdef __cplusplus |
| 14887 | extern "C" |
| 14888 | # endif |
| 14889 | int F77_DUMMY_MAIN() { return 1; } |
| 14890 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14891 | int |
| 14892 | main () |
| 14893 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14894 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14895 | ; |
| 14896 | return 0; |
| 14897 | } |
| 14898 | _ACEOF |
| 14899 | rm -f conftest.$ac_objext |
| 14900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14901 | (eval $ac_compile) 2>&5 |
| 14902 | ac_status=$? |
| 14903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14904 | (exit $ac_status); } && |
| 14905 | { ac_try='test -s conftest.$ac_objext' |
| 14906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14907 | (eval $ac_try) 2>&5 |
| 14908 | ac_status=$? |
| 14909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14910 | (exit $ac_status); }; }; then |
| 14911 | |
| 14912 | |
| 14913 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14914 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14915 | _ACEOF |
| 14916 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14917 | works=yes |
| 14918 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14920 | echo "$as_me: failed program was:" >&5 |
| 14921 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14922 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14924 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14925 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14926 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14927 | if test "$have_prototypes" = yes; then |
| 14928 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14929 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14930 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14931 | cat >conftest.$ac_ext <<_ACEOF |
| 14932 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14933 | #include "confdefs.h" |
| 14934 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14935 | #ifdef F77_DUMMY_MAIN |
| 14936 | # ifdef __cplusplus |
| 14937 | extern "C" |
| 14938 | # endif |
| 14939 | int F77_DUMMY_MAIN() { return 1; } |
| 14940 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | int |
| 14942 | main () |
| 14943 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14944 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14945 | ; |
| 14946 | return 0; |
| 14947 | } |
| 14948 | _ACEOF |
| 14949 | rm -f conftest.$ac_objext |
| 14950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14951 | (eval $ac_compile) 2>&5 |
| 14952 | ac_status=$? |
| 14953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14954 | (exit $ac_status); } && |
| 14955 | { ac_try='test -s conftest.$ac_objext' |
| 14956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14957 | (eval $ac_try) 2>&5 |
| 14958 | ac_status=$? |
| 14959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14960 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14961 | : |
| 14962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14963 | echo "$as_me: failed program was:" >&5 |
| 14964 | cat conftest.$ac_ext >&5 |
| 14965 | |
| 14966 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14967 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14968 | _ACEOF |
| 14969 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14970 | bad_prototypes=yes |
| 14971 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14974 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14975 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14976 | fi |
| 14977 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14978 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14979 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14980 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14981 | cat >conftest.$ac_ext <<_ACEOF |
| 14982 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14983 | #include "confdefs.h" |
| 14984 | #include <sys/types.h> |
| 14985 | #include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14986 | #ifdef F77_DUMMY_MAIN |
| 14987 | # ifdef __cplusplus |
| 14988 | extern "C" |
| 14989 | # endif |
| 14990 | int F77_DUMMY_MAIN() { return 1; } |
| 14991 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14992 | int |
| 14993 | main () |
| 14994 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14995 | struct sockaddr x; |
| 14996 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14997 | ; |
| 14998 | return 0; |
| 14999 | } |
| 15000 | _ACEOF |
| 15001 | rm -f conftest.$ac_objext |
| 15002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15003 | (eval $ac_compile) 2>&5 |
| 15004 | ac_status=$? |
| 15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15006 | (exit $ac_status); } && |
| 15007 | { ac_try='test -s conftest.$ac_objext' |
| 15008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15009 | (eval $ac_try) 2>&5 |
| 15010 | ac_status=$? |
| 15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15012 | (exit $ac_status); }; }; then |
| 15013 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15014 | echo "${ECHO_T}yes" >&6 |
| 15015 | |
| 15016 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15017 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15018 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15019 | |
| 15020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | echo "$as_me: failed program was:" >&5 |
| 15022 | cat conftest.$ac_ext >&5 |
| 15023 | echo "$as_me:$LINENO: result: no" >&5 |
| 15024 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15027 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15028 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 15030 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 15031 | cat >conftest.$ac_ext <<_ACEOF |
| 15032 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15033 | #include "confdefs.h" |
| 15034 | |
| 15035 | #ifdef HAVE_STDARG_PROTOTYPES |
| 15036 | #include <stdarg.h> |
| 15037 | #else |
| 15038 | #include <varargs.h> |
| 15039 | #endif |
| 15040 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15041 | #ifdef F77_DUMMY_MAIN |
| 15042 | # ifdef __cplusplus |
| 15043 | extern "C" |
| 15044 | # endif |
| 15045 | int F77_DUMMY_MAIN() { return 1; } |
| 15046 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15047 | int |
| 15048 | main () |
| 15049 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15050 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15051 | ; |
| 15052 | return 0; |
| 15053 | } |
| 15054 | _ACEOF |
| 15055 | rm -f conftest.$ac_objext |
| 15056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15057 | (eval $ac_compile) 2>&5 |
| 15058 | ac_status=$? |
| 15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15060 | (exit $ac_status); } && |
| 15061 | { ac_try='test -s conftest.$ac_objext' |
| 15062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15063 | (eval $ac_try) 2>&5 |
| 15064 | ac_status=$? |
| 15065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15066 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15067 | : |
| 15068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15069 | echo "$as_me: failed program was:" >&5 |
| 15070 | cat conftest.$ac_ext >&5 |
| 15071 | |
| 15072 | |
| 15073 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15074 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15075 | _ACEOF |
| 15076 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15077 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15078 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15079 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15081 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 15082 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15083 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15084 | # 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] | 15085 | |
| 15086 | |
| 15087 | |
| 15088 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 15089 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 15090 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 15091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15093 | cat >conftest.$ac_ext <<_ACEOF |
| 15094 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15095 | #include "confdefs.h" |
| 15096 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15098 | #include <assert.h> |
| 15099 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | #ifdef __cplusplus |
| 15101 | extern "C" |
| 15102 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15103 | /* 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] | 15104 | builtin and then its argument prototype would still apply. */ |
| 15105 | char gethostbyname_r (); |
| 15106 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15107 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15108 | #ifdef F77_DUMMY_MAIN |
| 15109 | # ifdef __cplusplus |
| 15110 | extern "C" |
| 15111 | # endif |
| 15112 | int F77_DUMMY_MAIN() { return 1; } |
| 15113 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15114 | int |
| 15115 | main () |
| 15116 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15117 | /* The GNU C library defines this for functions which it implements |
| 15118 | to always fail with ENOSYS. Some functions are actually named |
| 15119 | something starting with __ and the normal name is an alias. */ |
| 15120 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 15121 | choke me |
| 15122 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15124 | #endif |
| 15125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | ; |
| 15127 | return 0; |
| 15128 | } |
| 15129 | _ACEOF |
| 15130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15132 | (eval $ac_link) 2>&5 |
| 15133 | ac_status=$? |
| 15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15135 | (exit $ac_status); } && |
| 15136 | { ac_try='test -s conftest$ac_exeext' |
| 15137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15138 | (eval $ac_try) 2>&5 |
| 15139 | ac_status=$? |
| 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15141 | (exit $ac_status); }; }; then |
| 15142 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 | echo "$as_me: failed program was:" >&5 |
| 15145 | cat conftest.$ac_ext >&5 |
| 15146 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15147 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 15151 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 15152 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15154 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15155 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 15159 | 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] | 15160 | OLD_CFLAGS=$CFLAGS |
| 15161 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 | cat >conftest.$ac_ext <<_ACEOF |
| 15163 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15164 | #include "confdefs.h" |
| 15165 | |
| 15166 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15167 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15168 | #ifdef F77_DUMMY_MAIN |
| 15169 | # ifdef __cplusplus |
| 15170 | extern "C" |
| 15171 | # endif |
| 15172 | int F77_DUMMY_MAIN() { return 1; } |
| 15173 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15174 | int |
| 15175 | main () |
| 15176 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15177 | |
| 15178 | char *name; |
| 15179 | struct hostent *he, *res; |
| 15180 | char buffer[2048]; |
| 15181 | int buflen = 2048; |
| 15182 | int h_errnop; |
| 15183 | |
| 15184 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15185 | |
| 15186 | ; |
| 15187 | return 0; |
| 15188 | } |
| 15189 | _ACEOF |
| 15190 | rm -f conftest.$ac_objext |
| 15191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15192 | (eval $ac_compile) 2>&5 |
| 15193 | ac_status=$? |
| 15194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15195 | (exit $ac_status); } && |
| 15196 | { ac_try='test -s conftest.$ac_objext' |
| 15197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15198 | (eval $ac_try) 2>&5 |
| 15199 | ac_status=$? |
| 15200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15201 | (exit $ac_status); }; }; then |
| 15202 | |
| 15203 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15204 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15207 | |
| 15208 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15209 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15210 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15212 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15213 | echo "${ECHO_T}yes" >&6 |
| 15214 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | echo "$as_me: failed program was:" >&5 |
| 15217 | cat conftest.$ac_ext >&5 |
| 15218 | |
| 15219 | echo "$as_me:$LINENO: result: no" >&5 |
| 15220 | echo "${ECHO_T}no" >&6 |
| 15221 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 15222 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 15223 | cat >conftest.$ac_ext <<_ACEOF |
| 15224 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15225 | #include "confdefs.h" |
| 15226 | |
| 15227 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15228 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15229 | #ifdef F77_DUMMY_MAIN |
| 15230 | # ifdef __cplusplus |
| 15231 | extern "C" |
| 15232 | # endif |
| 15233 | int F77_DUMMY_MAIN() { return 1; } |
| 15234 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15235 | int |
| 15236 | main () |
| 15237 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15238 | |
| 15239 | char *name; |
| 15240 | struct hostent *he; |
| 15241 | char buffer[2048]; |
| 15242 | int buflen = 2048; |
| 15243 | int h_errnop; |
| 15244 | |
| 15245 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15246 | |
| 15247 | ; |
| 15248 | return 0; |
| 15249 | } |
| 15250 | _ACEOF |
| 15251 | rm -f conftest.$ac_objext |
| 15252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15253 | (eval $ac_compile) 2>&5 |
| 15254 | ac_status=$? |
| 15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15256 | (exit $ac_status); } && |
| 15257 | { ac_try='test -s conftest.$ac_objext' |
| 15258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15259 | (eval $ac_try) 2>&5 |
| 15260 | ac_status=$? |
| 15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15262 | (exit $ac_status); }; }; then |
| 15263 | |
| 15264 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15265 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15266 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15268 | |
| 15269 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15270 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15271 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15273 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15274 | echo "${ECHO_T}yes" >&6 |
| 15275 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15277 | echo "$as_me: failed program was:" >&5 |
| 15278 | cat conftest.$ac_ext >&5 |
| 15279 | |
| 15280 | echo "$as_me:$LINENO: result: no" >&5 |
| 15281 | echo "${ECHO_T}no" >&6 |
| 15282 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 15283 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 15284 | cat >conftest.$ac_ext <<_ACEOF |
| 15285 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15286 | #include "confdefs.h" |
| 15287 | |
| 15288 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15289 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15290 | #ifdef F77_DUMMY_MAIN |
| 15291 | # ifdef __cplusplus |
| 15292 | extern "C" |
| 15293 | # endif |
| 15294 | int F77_DUMMY_MAIN() { return 1; } |
| 15295 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15296 | int |
| 15297 | main () |
| 15298 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15299 | |
| 15300 | char *name; |
| 15301 | struct hostent *he; |
| 15302 | struct hostent_data data; |
| 15303 | |
| 15304 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15305 | |
| 15306 | ; |
| 15307 | return 0; |
| 15308 | } |
| 15309 | _ACEOF |
| 15310 | rm -f conftest.$ac_objext |
| 15311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15312 | (eval $ac_compile) 2>&5 |
| 15313 | ac_status=$? |
| 15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15315 | (exit $ac_status); } && |
| 15316 | { ac_try='test -s conftest.$ac_objext' |
| 15317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15318 | (eval $ac_try) 2>&5 |
| 15319 | ac_status=$? |
| 15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15321 | (exit $ac_status); }; }; then |
| 15322 | |
| 15323 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15324 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15325 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 | |
| 15328 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15329 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15330 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15332 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15333 | echo "${ECHO_T}yes" >&6 |
| 15334 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15335 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | echo "$as_me: failed program was:" >&5 |
| 15337 | cat conftest.$ac_ext >&5 |
| 15338 | |
| 15339 | echo "$as_me:$LINENO: result: no" >&5 |
| 15340 | echo "${ECHO_T}no" >&6 |
| 15341 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15342 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15344 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15346 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15347 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15349 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15350 | CFLAGS=$OLD_CFLAGS |
| 15351 | |
| 15352 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15354 | |
| 15355 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15356 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15358 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15359 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15360 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | cat >conftest.$ac_ext <<_ACEOF |
| 15364 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15365 | #include "confdefs.h" |
| 15366 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15367 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15368 | #include <assert.h> |
| 15369 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | #ifdef __cplusplus |
| 15371 | extern "C" |
| 15372 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15373 | /* 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] | 15374 | builtin and then its argument prototype would still apply. */ |
| 15375 | char $ac_func (); |
| 15376 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15377 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15378 | #ifdef F77_DUMMY_MAIN |
| 15379 | # ifdef __cplusplus |
| 15380 | extern "C" |
| 15381 | # endif |
| 15382 | int F77_DUMMY_MAIN() { return 1; } |
| 15383 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15384 | int |
| 15385 | main () |
| 15386 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15387 | /* The GNU C library defines this for functions which it implements |
| 15388 | to always fail with ENOSYS. Some functions are actually named |
| 15389 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15390 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15391 | choke me |
| 15392 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15393 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15394 | #endif |
| 15395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15396 | ; |
| 15397 | return 0; |
| 15398 | } |
| 15399 | _ACEOF |
| 15400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15402 | (eval $ac_link) 2>&5 |
| 15403 | ac_status=$? |
| 15404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15405 | (exit $ac_status); } && |
| 15406 | { ac_try='test -s conftest$ac_exeext' |
| 15407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15408 | (eval $ac_try) 2>&5 |
| 15409 | ac_status=$? |
| 15410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15411 | (exit $ac_status); }; }; then |
| 15412 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15414 | echo "$as_me: failed program was:" >&5 |
| 15415 | cat conftest.$ac_ext >&5 |
| 15416 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15417 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15418 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15419 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15421 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15422 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15423 | cat >>confdefs.h <<_ACEOF |
| 15424 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15425 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15426 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15427 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15428 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15429 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15430 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15431 | fi |
| 15432 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15433 | |
| 15434 | |
| 15435 | |
| 15436 | |
| 15437 | |
| 15438 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15439 | # checks for system services |
| 15440 | # (none yet) |
| 15441 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15442 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 15444 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 15445 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 15446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15448 | cat >conftest.$ac_ext <<_ACEOF |
| 15449 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15450 | #include "confdefs.h" |
| 15451 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15452 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15453 | #include <assert.h> |
| 15454 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | #ifdef __cplusplus |
| 15456 | extern "C" |
| 15457 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15458 | /* 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] | 15459 | builtin and then its argument prototype would still apply. */ |
| 15460 | char __fpu_control (); |
| 15461 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15462 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15463 | #ifdef F77_DUMMY_MAIN |
| 15464 | # ifdef __cplusplus |
| 15465 | extern "C" |
| 15466 | # endif |
| 15467 | int F77_DUMMY_MAIN() { return 1; } |
| 15468 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15469 | int |
| 15470 | main () |
| 15471 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15472 | /* The GNU C library defines this for functions which it implements |
| 15473 | to always fail with ENOSYS. Some functions are actually named |
| 15474 | something starting with __ and the normal name is an alias. */ |
| 15475 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 15476 | choke me |
| 15477 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15478 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15479 | #endif |
| 15480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15481 | ; |
| 15482 | return 0; |
| 15483 | } |
| 15484 | _ACEOF |
| 15485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15487 | (eval $ac_link) 2>&5 |
| 15488 | ac_status=$? |
| 15489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15490 | (exit $ac_status); } && |
| 15491 | { ac_try='test -s conftest$ac_exeext' |
| 15492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15493 | (eval $ac_try) 2>&5 |
| 15494 | ac_status=$? |
| 15495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15496 | (exit $ac_status); }; }; then |
| 15497 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15499 | echo "$as_me: failed program was:" >&5 |
| 15500 | cat conftest.$ac_ext >&5 |
| 15501 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15502 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15504 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15505 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 15506 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 15507 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15508 | : |
| 15509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | |
| 15511 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 15512 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 15513 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 15514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15517 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15518 | cat >conftest.$ac_ext <<_ACEOF |
| 15519 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15520 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15521 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15522 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15523 | #ifdef __cplusplus |
| 15524 | extern "C" |
| 15525 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15526 | /* 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] | 15527 | builtin and then its argument prototype would still apply. */ |
| 15528 | char __fpu_control (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15529 | #ifdef F77_DUMMY_MAIN |
| 15530 | # ifdef __cplusplus |
| 15531 | extern "C" |
| 15532 | # endif |
| 15533 | int F77_DUMMY_MAIN() { return 1; } |
| 15534 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | int |
| 15536 | main () |
| 15537 | { |
| 15538 | __fpu_control (); |
| 15539 | ; |
| 15540 | return 0; |
| 15541 | } |
| 15542 | _ACEOF |
| 15543 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15545 | (eval $ac_link) 2>&5 |
| 15546 | ac_status=$? |
| 15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15548 | (exit $ac_status); } && |
| 15549 | { ac_try='test -s conftest$ac_exeext' |
| 15550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15551 | (eval $ac_try) 2>&5 |
| 15552 | ac_status=$? |
| 15553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15554 | (exit $ac_status); }; }; then |
| 15555 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15557 | echo "$as_me: failed program was:" >&5 |
| 15558 | cat conftest.$ac_ext >&5 |
| 15559 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15560 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15561 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15562 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 15565 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 15566 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 15567 | cat >>confdefs.h <<_ACEOF |
| 15568 | #define HAVE_LIBIEEE 1 |
| 15569 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15570 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15571 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15572 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15573 | fi |
| 15574 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15575 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15576 | fi |
| 15577 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15578 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15579 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15580 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 15581 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 15582 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15583 | # Check whether --with-fpectl or --without-fpectl was given. |
| 15584 | if test "${with_fpectl+set}" = set; then |
| 15585 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15587 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15588 | then |
| 15589 | |
| 15590 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15591 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15592 | _ACEOF |
| 15593 | |
| 15594 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15595 | echo "${ECHO_T}yes" >&6 |
| 15596 | else echo "$as_me:$LINENO: result: no" >&5 |
| 15597 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15598 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15600 | echo "$as_me:$LINENO: result: no" >&5 |
| 15601 | echo "${ECHO_T}no" >&6 |
| 15602 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15603 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15604 | # check for --with-libm=... |
| 15605 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15606 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 15607 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15608 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15609 | *) LIBM=-lm |
| 15610 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15611 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 15612 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 15613 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15614 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15615 | if test "${with_libm+set}" = set; then |
| 15616 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15617 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15618 | if test "$withval" = no |
| 15619 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15620 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 15621 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15622 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15623 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 15625 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 15626 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 15627 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 15628 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15629 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 15632 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 15633 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15634 | |
| 15635 | # check for --with-libc=... |
| 15636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15637 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 15638 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 15639 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15640 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15641 | if test "${with_libc+set}" = set; then |
| 15642 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15643 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15644 | if test "$withval" = no |
| 15645 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15646 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 15647 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15648 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15649 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15650 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 15651 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 15652 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 15653 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 15654 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15655 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 15658 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 15659 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15660 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15661 | # check for hypot() in math library |
| 15662 | LIBS_SAVE=$LIBS |
| 15663 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15665 | for ac_func in hypot |
| 15666 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15667 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15668 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15669 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15670 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15673 | cat >conftest.$ac_ext <<_ACEOF |
| 15674 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15675 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15676 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15677 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15678 | #include <assert.h> |
| 15679 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15680 | #ifdef __cplusplus |
| 15681 | extern "C" |
| 15682 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15683 | /* 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] | 15684 | builtin and then its argument prototype would still apply. */ |
| 15685 | char $ac_func (); |
| 15686 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15687 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15688 | #ifdef F77_DUMMY_MAIN |
| 15689 | # ifdef __cplusplus |
| 15690 | extern "C" |
| 15691 | # endif |
| 15692 | int F77_DUMMY_MAIN() { return 1; } |
| 15693 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 | int |
| 15695 | main () |
| 15696 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15697 | /* The GNU C library defines this for functions which it implements |
| 15698 | to always fail with ENOSYS. Some functions are actually named |
| 15699 | something starting with __ and the normal name is an alias. */ |
| 15700 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15701 | choke me |
| 15702 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15703 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15704 | #endif |
| 15705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15706 | ; |
| 15707 | return 0; |
| 15708 | } |
| 15709 | _ACEOF |
| 15710 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15712 | (eval $ac_link) 2>&5 |
| 15713 | ac_status=$? |
| 15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15715 | (exit $ac_status); } && |
| 15716 | { ac_try='test -s conftest$ac_exeext' |
| 15717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15718 | (eval $ac_try) 2>&5 |
| 15719 | ac_status=$? |
| 15720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15721 | (exit $ac_status); }; }; then |
| 15722 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15723 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15724 | echo "$as_me: failed program was:" >&5 |
| 15725 | cat conftest.$ac_ext >&5 |
| 15726 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15727 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15728 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15729 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15731 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15732 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15733 | cat >>confdefs.h <<_ACEOF |
| 15734 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15735 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15738 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15739 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15740 | done |
| 15741 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15742 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15743 | LIBS=$LIBS_SAVE |
| 15744 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15745 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15746 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15747 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15748 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15749 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15751 | fi |
| 15752 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15753 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | # Is the header compilable? |
| 15756 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15757 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15758 | cat >conftest.$ac_ext <<_ACEOF |
| 15759 | #line $LINENO "configure" |
| 15760 | #include "confdefs.h" |
| 15761 | $ac_includes_default |
| 15762 | #include <wchar.h> |
| 15763 | _ACEOF |
| 15764 | rm -f conftest.$ac_objext |
| 15765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15766 | (eval $ac_compile) 2>&5 |
| 15767 | ac_status=$? |
| 15768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15769 | (exit $ac_status); } && |
| 15770 | { ac_try='test -s conftest.$ac_objext' |
| 15771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15772 | (eval $ac_try) 2>&5 |
| 15773 | ac_status=$? |
| 15774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15775 | (exit $ac_status); }; }; then |
| 15776 | ac_header_compiler=yes |
| 15777 | else |
| 15778 | echo "$as_me: failed program was:" >&5 |
| 15779 | cat conftest.$ac_ext >&5 |
| 15780 | ac_header_compiler=no |
| 15781 | fi |
| 15782 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15783 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15784 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15785 | |
| 15786 | # Is the header present? |
| 15787 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15788 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15789 | cat >conftest.$ac_ext <<_ACEOF |
| 15790 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15791 | #include "confdefs.h" |
| 15792 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15793 | _ACEOF |
| 15794 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15795 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15796 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15797 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15798 | rm -f conftest.er1 |
| 15799 | cat conftest.err >&5 |
| 15800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15801 | (exit $ac_status); } >/dev/null; then |
| 15802 | if test -s conftest.err; then |
| 15803 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15804 | else |
| 15805 | ac_cpp_err= |
| 15806 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15808 | ac_cpp_err=yes |
| 15809 | fi |
| 15810 | if test -z "$ac_cpp_err"; then |
| 15811 | ac_header_preproc=yes |
| 15812 | else |
| 15813 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15814 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15816 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | rm -f conftest.err conftest.$ac_ext |
| 15818 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15819 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15820 | |
| 15821 | # So? What about this header? |
| 15822 | case $ac_header_compiler:$ac_header_preproc in |
| 15823 | yes:no ) |
| 15824 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15825 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15826 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15827 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15828 | no:yes ) |
| 15829 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15830 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15831 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15832 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15833 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15834 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15835 | esac |
| 15836 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15837 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15838 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15840 | else |
| 15841 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15842 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15843 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15844 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15845 | |
| 15846 | fi |
| 15847 | if test $ac_cv_header_wchar_h = yes; then |
| 15848 | |
| 15849 | |
| 15850 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15851 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | _ACEOF |
| 15853 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15854 | wchar_h="yes" |
| 15855 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15858 | |
| 15859 | fi |
| 15860 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15862 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15863 | # determine wchar_t size |
| 15864 | if test "$wchar_h" = yes |
| 15865 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15866 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15867 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15868 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15870 | else |
| 15871 | cat >conftest.$ac_ext <<_ACEOF |
| 15872 | #line $LINENO "configure" |
| 15873 | #include "confdefs.h" |
| 15874 | #include <wchar.h> |
| 15875 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15876 | #ifdef F77_DUMMY_MAIN |
| 15877 | # ifdef __cplusplus |
| 15878 | extern "C" |
| 15879 | # endif |
| 15880 | int F77_DUMMY_MAIN() { return 1; } |
| 15881 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | int |
| 15883 | main () |
| 15884 | { |
| 15885 | if ((wchar_t *) 0) |
| 15886 | return 0; |
| 15887 | if (sizeof (wchar_t)) |
| 15888 | return 0; |
| 15889 | ; |
| 15890 | return 0; |
| 15891 | } |
| 15892 | _ACEOF |
| 15893 | rm -f conftest.$ac_objext |
| 15894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15895 | (eval $ac_compile) 2>&5 |
| 15896 | ac_status=$? |
| 15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15898 | (exit $ac_status); } && |
| 15899 | { ac_try='test -s conftest.$ac_objext' |
| 15900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15901 | (eval $ac_try) 2>&5 |
| 15902 | ac_status=$? |
| 15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15904 | (exit $ac_status); }; }; then |
| 15905 | ac_cv_type_wchar_t=yes |
| 15906 | else |
| 15907 | echo "$as_me: failed program was:" >&5 |
| 15908 | cat conftest.$ac_ext >&5 |
| 15909 | ac_cv_type_wchar_t=no |
| 15910 | fi |
| 15911 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15912 | fi |
| 15913 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15914 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15915 | |
| 15916 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15917 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15918 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15920 | else |
| 15921 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15922 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15923 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15924 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15925 | # This bug is HP SR number 8606223364. |
| 15926 | if test "$cross_compiling" = yes; then |
| 15927 | # Depending upon the size, compute the lo and hi bounds. |
| 15928 | cat >conftest.$ac_ext <<_ACEOF |
| 15929 | #line $LINENO "configure" |
| 15930 | #include "confdefs.h" |
| 15931 | #include <wchar.h> |
| 15932 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15933 | #ifdef F77_DUMMY_MAIN |
| 15934 | # ifdef __cplusplus |
| 15935 | extern "C" |
| 15936 | # endif |
| 15937 | int F77_DUMMY_MAIN() { return 1; } |
| 15938 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 | int |
| 15940 | main () |
| 15941 | { |
| 15942 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 15943 | test_array [0] = 0 |
| 15944 | |
| 15945 | ; |
| 15946 | return 0; |
| 15947 | } |
| 15948 | _ACEOF |
| 15949 | rm -f conftest.$ac_objext |
| 15950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15951 | (eval $ac_compile) 2>&5 |
| 15952 | ac_status=$? |
| 15953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15954 | (exit $ac_status); } && |
| 15955 | { ac_try='test -s conftest.$ac_objext' |
| 15956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15957 | (eval $ac_try) 2>&5 |
| 15958 | ac_status=$? |
| 15959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15960 | (exit $ac_status); }; }; then |
| 15961 | ac_lo=0 ac_mid=0 |
| 15962 | while :; do |
| 15963 | cat >conftest.$ac_ext <<_ACEOF |
| 15964 | #line $LINENO "configure" |
| 15965 | #include "confdefs.h" |
| 15966 | #include <wchar.h> |
| 15967 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15968 | #ifdef F77_DUMMY_MAIN |
| 15969 | # ifdef __cplusplus |
| 15970 | extern "C" |
| 15971 | # endif |
| 15972 | int F77_DUMMY_MAIN() { return 1; } |
| 15973 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15974 | int |
| 15975 | main () |
| 15976 | { |
| 15977 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15978 | test_array [0] = 0 |
| 15979 | |
| 15980 | ; |
| 15981 | return 0; |
| 15982 | } |
| 15983 | _ACEOF |
| 15984 | rm -f conftest.$ac_objext |
| 15985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15986 | (eval $ac_compile) 2>&5 |
| 15987 | ac_status=$? |
| 15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15989 | (exit $ac_status); } && |
| 15990 | { ac_try='test -s conftest.$ac_objext' |
| 15991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15992 | (eval $ac_try) 2>&5 |
| 15993 | ac_status=$? |
| 15994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15995 | (exit $ac_status); }; }; then |
| 15996 | ac_hi=$ac_mid; break |
| 15997 | else |
| 15998 | echo "$as_me: failed program was:" >&5 |
| 15999 | cat conftest.$ac_ext >&5 |
| 16000 | ac_lo=`expr $ac_mid + 1` |
| 16001 | if test $ac_lo -le $ac_mid; then |
| 16002 | ac_lo= ac_hi= |
| 16003 | break |
| 16004 | fi |
| 16005 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 16006 | fi |
| 16007 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16008 | done |
| 16009 | else |
| 16010 | echo "$as_me: failed program was:" >&5 |
| 16011 | cat conftest.$ac_ext >&5 |
| 16012 | cat >conftest.$ac_ext <<_ACEOF |
| 16013 | #line $LINENO "configure" |
| 16014 | #include "confdefs.h" |
| 16015 | #include <wchar.h> |
| 16016 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16017 | #ifdef F77_DUMMY_MAIN |
| 16018 | # ifdef __cplusplus |
| 16019 | extern "C" |
| 16020 | # endif |
| 16021 | int F77_DUMMY_MAIN() { return 1; } |
| 16022 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16023 | int |
| 16024 | main () |
| 16025 | { |
| 16026 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 16027 | test_array [0] = 0 |
| 16028 | |
| 16029 | ; |
| 16030 | return 0; |
| 16031 | } |
| 16032 | _ACEOF |
| 16033 | rm -f conftest.$ac_objext |
| 16034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16035 | (eval $ac_compile) 2>&5 |
| 16036 | ac_status=$? |
| 16037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16038 | (exit $ac_status); } && |
| 16039 | { ac_try='test -s conftest.$ac_objext' |
| 16040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16041 | (eval $ac_try) 2>&5 |
| 16042 | ac_status=$? |
| 16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16044 | (exit $ac_status); }; }; then |
| 16045 | ac_hi=-1 ac_mid=-1 |
| 16046 | while :; do |
| 16047 | cat >conftest.$ac_ext <<_ACEOF |
| 16048 | #line $LINENO "configure" |
| 16049 | #include "confdefs.h" |
| 16050 | #include <wchar.h> |
| 16051 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16052 | #ifdef F77_DUMMY_MAIN |
| 16053 | # ifdef __cplusplus |
| 16054 | extern "C" |
| 16055 | # endif |
| 16056 | int F77_DUMMY_MAIN() { return 1; } |
| 16057 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16058 | int |
| 16059 | main () |
| 16060 | { |
| 16061 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 16062 | test_array [0] = 0 |
| 16063 | |
| 16064 | ; |
| 16065 | return 0; |
| 16066 | } |
| 16067 | _ACEOF |
| 16068 | rm -f conftest.$ac_objext |
| 16069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16070 | (eval $ac_compile) 2>&5 |
| 16071 | ac_status=$? |
| 16072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16073 | (exit $ac_status); } && |
| 16074 | { ac_try='test -s conftest.$ac_objext' |
| 16075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16076 | (eval $ac_try) 2>&5 |
| 16077 | ac_status=$? |
| 16078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16079 | (exit $ac_status); }; }; then |
| 16080 | ac_lo=$ac_mid; break |
| 16081 | else |
| 16082 | echo "$as_me: failed program was:" >&5 |
| 16083 | cat conftest.$ac_ext >&5 |
| 16084 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 16085 | if test $ac_mid -le $ac_hi; then |
| 16086 | ac_lo= ac_hi= |
| 16087 | break |
| 16088 | fi |
| 16089 | ac_mid=`expr 2 '*' $ac_mid` |
| 16090 | fi |
| 16091 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16092 | done |
| 16093 | else |
| 16094 | echo "$as_me: failed program was:" >&5 |
| 16095 | cat conftest.$ac_ext >&5 |
| 16096 | ac_lo= ac_hi= |
| 16097 | fi |
| 16098 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16099 | fi |
| 16100 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16101 | # Binary search between lo and hi bounds. |
| 16102 | while test "x$ac_lo" != "x$ac_hi"; do |
| 16103 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 16104 | cat >conftest.$ac_ext <<_ACEOF |
| 16105 | #line $LINENO "configure" |
| 16106 | #include "confdefs.h" |
| 16107 | #include <wchar.h> |
| 16108 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16109 | #ifdef F77_DUMMY_MAIN |
| 16110 | # ifdef __cplusplus |
| 16111 | extern "C" |
| 16112 | # endif |
| 16113 | int F77_DUMMY_MAIN() { return 1; } |
| 16114 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16115 | int |
| 16116 | main () |
| 16117 | { |
| 16118 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16119 | test_array [0] = 0 |
| 16120 | |
| 16121 | ; |
| 16122 | return 0; |
| 16123 | } |
| 16124 | _ACEOF |
| 16125 | rm -f conftest.$ac_objext |
| 16126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16127 | (eval $ac_compile) 2>&5 |
| 16128 | ac_status=$? |
| 16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16130 | (exit $ac_status); } && |
| 16131 | { ac_try='test -s conftest.$ac_objext' |
| 16132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16133 | (eval $ac_try) 2>&5 |
| 16134 | ac_status=$? |
| 16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16136 | (exit $ac_status); }; }; then |
| 16137 | ac_hi=$ac_mid |
| 16138 | else |
| 16139 | echo "$as_me: failed program was:" >&5 |
| 16140 | cat conftest.$ac_ext >&5 |
| 16141 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 16142 | fi |
| 16143 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16144 | done |
| 16145 | case $ac_lo in |
| 16146 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 16147 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 16148 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 16149 | { (exit 1); exit 1; }; } ;; |
| 16150 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16151 | else |
| 16152 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16153 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 16154 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 16155 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | cat >conftest.$ac_ext <<_ACEOF |
| 16158 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16159 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16160 | #include <wchar.h> |
| 16161 | |
| 16162 | long longval () { return (long) (sizeof (wchar_t)); } |
| 16163 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16164 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16165 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16166 | #ifdef F77_DUMMY_MAIN |
| 16167 | # ifdef __cplusplus |
| 16168 | extern "C" |
| 16169 | # endif |
| 16170 | int F77_DUMMY_MAIN() { return 1; } |
| 16171 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16172 | int |
| 16173 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16174 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16175 | |
| 16176 | FILE *f = fopen ("conftest.val", "w"); |
| 16177 | if (! f) |
| 16178 | exit (1); |
| 16179 | if (((long) (sizeof (wchar_t))) < 0) |
| 16180 | { |
| 16181 | long i = longval (); |
| 16182 | if (i != ((long) (sizeof (wchar_t)))) |
| 16183 | exit (1); |
| 16184 | fprintf (f, "%ld\n", i); |
| 16185 | } |
| 16186 | else |
| 16187 | { |
| 16188 | unsigned long i = ulongval (); |
| 16189 | if (i != ((long) (sizeof (wchar_t)))) |
| 16190 | exit (1); |
| 16191 | fprintf (f, "%lu\n", i); |
| 16192 | } |
| 16193 | exit (ferror (f) || fclose (f) != 0); |
| 16194 | |
| 16195 | ; |
| 16196 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16197 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16198 | _ACEOF |
| 16199 | rm -f conftest$ac_exeext |
| 16200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16201 | (eval $ac_link) 2>&5 |
| 16202 | ac_status=$? |
| 16203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16206 | (eval $ac_try) 2>&5 |
| 16207 | ac_status=$? |
| 16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16209 | (exit $ac_status); }; }; then |
| 16210 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16213 | echo "$as_me: failed program was:" >&5 |
| 16214 | cat conftest.$ac_ext >&5 |
| 16215 | ( exit $ac_status ) |
| 16216 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 16217 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 16218 | { (exit 1); exit 1; }; } |
| 16219 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16220 | 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] | 16221 | fi |
| 16222 | fi |
| 16223 | rm -f conftest.val |
| 16224 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16225 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16226 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16227 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16228 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 16229 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 16230 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16231 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16232 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16233 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16234 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16235 | fi |
| 16236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16237 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 16238 | 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] | 16239 | # Check whether --enable-unicode or --disable-unicode was given. |
| 16240 | if test "${enable_unicode+set}" = set; then |
| 16241 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16242 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16243 | else |
| 16244 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16245 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16246 | |
| 16247 | if test $enable_unicode = yes |
| 16248 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 16249 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 16250 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16251 | fi |
| 16252 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16253 | |
| 16254 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16255 | case "$enable_unicode" in |
| 16256 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16257 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16258 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16259 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16260 | |
| 16261 | ;; |
| 16262 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16263 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16264 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16265 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16266 | |
| 16267 | ;; |
| 16268 | esac |
| 16269 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16271 | |
| 16272 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16273 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16274 | if test "$enable_unicode" = "no" |
| 16275 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16276 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16277 | echo "$as_me:$LINENO: result: not used" >&5 |
| 16278 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16279 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16280 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16281 | |
| 16282 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16283 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16285 | |
| 16286 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 16287 | then |
| 16288 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | cat >>confdefs.h <<\_ACEOF |
| 16291 | #define HAVE_USABLE_WCHAR_T 1 |
| 16292 | _ACEOF |
| 16293 | |
| 16294 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16295 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16296 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16297 | |
| 16298 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 16299 | then |
| 16300 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16301 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16302 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16303 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16304 | |
| 16305 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 16306 | then |
| 16307 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16308 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16309 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16310 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16311 | |
| 16312 | else |
| 16313 | PY_UNICODE_TYPE="no type found" |
| 16314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16315 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 16316 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16317 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16318 | |
| 16319 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16320 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 16321 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 16322 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 16323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16324 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16325 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16326 | cat >conftest.$ac_ext <<_ACEOF |
| 16327 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16328 | #include "confdefs.h" |
| 16329 | #include <sys/types.h> |
| 16330 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16331 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16332 | #ifdef F77_DUMMY_MAIN |
| 16333 | # ifdef __cplusplus |
| 16334 | extern "C" |
| 16335 | # endif |
| 16336 | int F77_DUMMY_MAIN() { return 1; } |
| 16337 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16338 | int |
| 16339 | main () |
| 16340 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16341 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 16342 | bogus endian macros |
| 16343 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16344 | |
| 16345 | ; |
| 16346 | return 0; |
| 16347 | } |
| 16348 | _ACEOF |
| 16349 | rm -f conftest.$ac_objext |
| 16350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16351 | (eval $ac_compile) 2>&5 |
| 16352 | ac_status=$? |
| 16353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16354 | (exit $ac_status); } && |
| 16355 | { ac_try='test -s conftest.$ac_objext' |
| 16356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16357 | (eval $ac_try) 2>&5 |
| 16358 | ac_status=$? |
| 16359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16360 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16361 | # 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] | 16362 | cat >conftest.$ac_ext <<_ACEOF |
| 16363 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16364 | #include "confdefs.h" |
| 16365 | #include <sys/types.h> |
| 16366 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16367 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16368 | #ifdef F77_DUMMY_MAIN |
| 16369 | # ifdef __cplusplus |
| 16370 | extern "C" |
| 16371 | # endif |
| 16372 | int F77_DUMMY_MAIN() { return 1; } |
| 16373 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16374 | int |
| 16375 | main () |
| 16376 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16377 | #if BYTE_ORDER != BIG_ENDIAN |
| 16378 | not big endian |
| 16379 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | |
| 16381 | ; |
| 16382 | return 0; |
| 16383 | } |
| 16384 | _ACEOF |
| 16385 | rm -f conftest.$ac_objext |
| 16386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16387 | (eval $ac_compile) 2>&5 |
| 16388 | ac_status=$? |
| 16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16390 | (exit $ac_status); } && |
| 16391 | { ac_try='test -s conftest.$ac_objext' |
| 16392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16393 | (eval $ac_try) 2>&5 |
| 16394 | ac_status=$? |
| 16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16396 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16397 | ac_cv_c_bigendian=yes |
| 16398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16399 | echo "$as_me: failed program was:" >&5 |
| 16400 | cat conftest.$ac_ext >&5 |
| 16401 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16402 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16403 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | echo "$as_me: failed program was:" >&5 |
| 16406 | cat conftest.$ac_ext >&5 |
| 16407 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16408 | if test "$cross_compiling" = yes; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16409 | # 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] | 16410 | ac_cv_c_bigendian=unknown |
| 16411 | cat >conftest.$ac_ext <<_ACEOF |
| 16412 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16413 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16414 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16415 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16416 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 16417 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16418 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16419 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16420 | #ifdef F77_DUMMY_MAIN |
| 16421 | # ifdef __cplusplus |
| 16422 | extern "C" |
| 16423 | # endif |
| 16424 | int F77_DUMMY_MAIN() { return 1; } |
| 16425 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16426 | int |
| 16427 | main () |
| 16428 | { |
| 16429 | _ascii (); _ebcdic (); |
| 16430 | ; |
| 16431 | return 0; |
| 16432 | } |
| 16433 | _ACEOF |
| 16434 | rm -f conftest.$ac_objext |
| 16435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16436 | (eval $ac_compile) 2>&5 |
| 16437 | ac_status=$? |
| 16438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16439 | (exit $ac_status); } && |
| 16440 | { ac_try='test -s conftest.$ac_objext' |
| 16441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16442 | (eval $ac_try) 2>&5 |
| 16443 | ac_status=$? |
| 16444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16445 | (exit $ac_status); }; }; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16446 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16447 | ac_cv_c_bigendian=yes |
| 16448 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16449 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16450 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16451 | ac_cv_c_bigendian=no |
| 16452 | else |
| 16453 | # finding both strings is unlikely to happen, but who knows? |
| 16454 | ac_cv_c_bigendian=unknown |
| 16455 | fi |
| 16456 | fi |
| 16457 | else |
| 16458 | echo "$as_me: failed program was:" >&5 |
| 16459 | cat conftest.$ac_ext >&5 |
| 16460 | fi |
| 16461 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16462 | else |
| 16463 | cat >conftest.$ac_ext <<_ACEOF |
| 16464 | #line $LINENO "configure" |
| 16465 | #include "confdefs.h" |
| 16466 | int |
| 16467 | main () |
| 16468 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16469 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16470 | union |
| 16471 | { |
| 16472 | long l; |
| 16473 | char c[sizeof (long)]; |
| 16474 | } u; |
| 16475 | u.l = 1; |
| 16476 | exit (u.c[sizeof (long) - 1] == 1); |
| 16477 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16478 | _ACEOF |
| 16479 | rm -f conftest$ac_exeext |
| 16480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16481 | (eval $ac_link) 2>&5 |
| 16482 | ac_status=$? |
| 16483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16484 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16486 | (eval $ac_try) 2>&5 |
| 16487 | ac_status=$? |
| 16488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16489 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16490 | ac_cv_c_bigendian=no |
| 16491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16492 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16493 | echo "$as_me: failed program was:" >&5 |
| 16494 | cat conftest.$ac_ext >&5 |
| 16495 | ( exit $ac_status ) |
| 16496 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16497 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16498 | 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] | 16499 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16500 | fi |
| 16501 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16502 | fi |
| 16503 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16504 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16505 | case $ac_cv_c_bigendian in |
| 16506 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16508 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16509 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16510 | _ACEOF |
| 16511 | ;; |
| 16512 | no) |
| 16513 | ;; |
| 16514 | *) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16515 | { { echo "$as_me:$LINENO: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16516 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16517 | echo "$as_me: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16518 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16519 | { (exit 1); exit 1; }; } ;; |
| 16520 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16521 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16522 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16523 | # Check whether right shifting a negative integer extends the sign bit |
| 16524 | # 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] | 16525 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 16526 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 16527 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 16528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16530 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16531 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16532 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | cat >conftest.$ac_ext <<_ACEOF |
| 16535 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16536 | #include "confdefs.h" |
| 16537 | |
| 16538 | int main() |
| 16539 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16540 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16541 | } |
| 16542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16543 | _ACEOF |
| 16544 | rm -f conftest$ac_exeext |
| 16545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16546 | (eval $ac_link) 2>&5 |
| 16547 | ac_status=$? |
| 16548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16549 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16551 | (eval $ac_try) 2>&5 |
| 16552 | ac_status=$? |
| 16553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16554 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16555 | ac_cv_rshift_extends_sign=yes |
| 16556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16557 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16558 | echo "$as_me: failed program was:" >&5 |
| 16559 | cat conftest.$ac_ext >&5 |
| 16560 | ( exit $ac_status ) |
| 16561 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16562 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16563 | 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] | 16564 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16565 | fi |
| 16566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16567 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 16568 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16569 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16570 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16571 | |
| 16572 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16573 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16575 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16576 | fi |
| 16577 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16578 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16579 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 16580 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 16581 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 16582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16584 | |
| 16585 | cat >conftest.$ac_ext <<_ACEOF |
| 16586 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16587 | #include "confdefs.h" |
| 16588 | #include <stdio.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16589 | #ifdef F77_DUMMY_MAIN |
| 16590 | # ifdef __cplusplus |
| 16591 | extern "C" |
| 16592 | # endif |
| 16593 | int F77_DUMMY_MAIN() { return 1; } |
| 16594 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16595 | int |
| 16596 | main () |
| 16597 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16598 | |
| 16599 | FILE *f = fopen("/dev/null", "r"); |
| 16600 | flockfile(f); |
| 16601 | getc_unlocked(f); |
| 16602 | funlockfile(f); |
| 16603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16604 | ; |
| 16605 | return 0; |
| 16606 | } |
| 16607 | _ACEOF |
| 16608 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16610 | (eval $ac_link) 2>&5 |
| 16611 | ac_status=$? |
| 16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16613 | (exit $ac_status); } && |
| 16614 | { ac_try='test -s conftest$ac_exeext' |
| 16615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16616 | (eval $ac_try) 2>&5 |
| 16617 | ac_status=$? |
| 16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16619 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16620 | ac_cv_have_getc_unlocked=yes |
| 16621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16622 | echo "$as_me: failed program was:" >&5 |
| 16623 | cat conftest.$ac_ext >&5 |
| 16624 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16625 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16627 | fi |
| 16628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16629 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 16630 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16631 | if test "$ac_cv_have_getc_unlocked" = yes |
| 16632 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16633 | |
| 16634 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16635 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16636 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16637 | |
| 16638 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16639 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16640 | # check for readline 2.2 |
| 16641 | cat >conftest.$ac_ext <<_ACEOF |
| 16642 | #line $LINENO "configure" |
| 16643 | #include "confdefs.h" |
| 16644 | #include <readline/readline.h> |
| 16645 | _ACEOF |
| 16646 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16647 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16648 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16649 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16650 | rm -f conftest.er1 |
| 16651 | cat conftest.err >&5 |
| 16652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16653 | (exit $ac_status); } >/dev/null; then |
| 16654 | if test -s conftest.err; then |
| 16655 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16656 | else |
| 16657 | ac_cpp_err= |
| 16658 | fi |
| 16659 | else |
| 16660 | ac_cpp_err=yes |
| 16661 | fi |
| 16662 | if test -z "$ac_cpp_err"; then |
| 16663 | have_readline=yes |
| 16664 | else |
| 16665 | echo "$as_me: failed program was:" >&5 |
| 16666 | cat conftest.$ac_ext >&5 |
| 16667 | have_readline=no |
| 16668 | fi |
| 16669 | rm -f conftest.err conftest.$ac_ext |
| 16670 | if test $have_readline = yes |
| 16671 | then |
| 16672 | cat >conftest.$ac_ext <<_ACEOF |
| 16673 | #line $LINENO "configure" |
| 16674 | #include "confdefs.h" |
| 16675 | #include <readline/readline.h> |
| 16676 | |
| 16677 | _ACEOF |
| 16678 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16679 | 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] | 16680 | |
| 16681 | cat >>confdefs.h <<\_ACEOF |
| 16682 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 16683 | _ACEOF |
| 16684 | |
| 16685 | fi |
| 16686 | rm -f conftest* |
| 16687 | |
| 16688 | fi |
| 16689 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16690 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16691 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 16692 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 16693 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 16694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16696 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16697 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16698 | cat >conftest.$ac_ext <<_ACEOF |
| 16699 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16700 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16701 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16702 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | #ifdef __cplusplus |
| 16704 | extern "C" |
| 16705 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16706 | /* 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] | 16707 | builtin and then its argument prototype would still apply. */ |
| 16708 | char rl_pre_input_hook (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16709 | #ifdef F77_DUMMY_MAIN |
| 16710 | # ifdef __cplusplus |
| 16711 | extern "C" |
| 16712 | # endif |
| 16713 | int F77_DUMMY_MAIN() { return 1; } |
| 16714 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | int |
| 16716 | main () |
| 16717 | { |
| 16718 | rl_pre_input_hook (); |
| 16719 | ; |
| 16720 | return 0; |
| 16721 | } |
| 16722 | _ACEOF |
| 16723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16725 | (eval $ac_link) 2>&5 |
| 16726 | ac_status=$? |
| 16727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16728 | (exit $ac_status); } && |
| 16729 | { ac_try='test -s conftest$ac_exeext' |
| 16730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16731 | (eval $ac_try) 2>&5 |
| 16732 | ac_status=$? |
| 16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16734 | (exit $ac_status); }; }; then |
| 16735 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16737 | echo "$as_me: failed program was:" >&5 |
| 16738 | cat conftest.$ac_ext >&5 |
| 16739 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16740 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16742 | LIBS=$ac_check_lib_save_LIBS |
| 16743 | fi |
| 16744 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16745 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16746 | 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] | 16747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16748 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16749 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16750 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16751 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16752 | fi |
| 16753 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16754 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16755 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16757 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16758 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16760 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16761 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16762 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16763 | cat >conftest.$ac_ext <<_ACEOF |
| 16764 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16765 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16767 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16768 | #ifdef __cplusplus |
| 16769 | extern "C" |
| 16770 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16771 | /* 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] | 16772 | builtin and then its argument prototype would still apply. */ |
| 16773 | char rl_completion_matches (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16774 | #ifdef F77_DUMMY_MAIN |
| 16775 | # ifdef __cplusplus |
| 16776 | extern "C" |
| 16777 | # endif |
| 16778 | int F77_DUMMY_MAIN() { return 1; } |
| 16779 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16780 | int |
| 16781 | main () |
| 16782 | { |
| 16783 | rl_completion_matches (); |
| 16784 | ; |
| 16785 | return 0; |
| 16786 | } |
| 16787 | _ACEOF |
| 16788 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16790 | (eval $ac_link) 2>&5 |
| 16791 | ac_status=$? |
| 16792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16793 | (exit $ac_status); } && |
| 16794 | { ac_try='test -s conftest$ac_exeext' |
| 16795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16796 | (eval $ac_try) 2>&5 |
| 16797 | ac_status=$? |
| 16798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16799 | (exit $ac_status); }; }; then |
| 16800 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16802 | echo "$as_me: failed program was:" >&5 |
| 16803 | cat conftest.$ac_ext >&5 |
| 16804 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16806 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16807 | LIBS=$ac_check_lib_save_LIBS |
| 16808 | fi |
| 16809 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16810 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16811 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16813 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16814 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16815 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16816 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16817 | fi |
| 16818 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16820 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16821 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16822 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16825 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16826 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16827 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16829 | cat >conftest.$ac_ext <<_ACEOF |
| 16830 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16831 | #include "confdefs.h" |
| 16832 | |
| 16833 | int main() |
| 16834 | { |
| 16835 | int val1 = nice(1); |
| 16836 | if (val1 != -1 && val1 == nice(2)) |
| 16837 | exit(0); |
| 16838 | exit(1); |
| 16839 | } |
| 16840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16841 | _ACEOF |
| 16842 | rm -f conftest$ac_exeext |
| 16843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16844 | (eval $ac_link) 2>&5 |
| 16845 | ac_status=$? |
| 16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16849 | (eval $ac_try) 2>&5 |
| 16850 | ac_status=$? |
| 16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16852 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16853 | ac_cv_broken_nice=yes |
| 16854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16855 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16856 | echo "$as_me: failed program was:" >&5 |
| 16857 | cat conftest.$ac_ext >&5 |
| 16858 | ( exit $ac_status ) |
| 16859 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16860 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16861 | 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] | 16862 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16863 | fi |
| 16864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16865 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16866 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16867 | if test "$ac_cv_broken_nice" = yes |
| 16868 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16869 | |
| 16870 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16871 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16872 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16873 | |
| 16874 | fi |
| 16875 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16876 | # tzset(3) exists and works like we expect it to |
| 16877 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 16878 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 16879 | if test "${ac_cv_working_tzset+set}" = set; then |
| 16880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16881 | else |
| 16882 | |
| 16883 | if test "$cross_compiling" = yes; then |
| 16884 | ac_cv_working_tzset=no |
| 16885 | else |
| 16886 | cat >conftest.$ac_ext <<_ACEOF |
| 16887 | #line $LINENO "configure" |
| 16888 | #include "confdefs.h" |
| 16889 | |
| 16890 | #include <stdlib.h> |
| 16891 | #include <time.h> |
| 16892 | int main() |
| 16893 | { |
| 16894 | int gmt_hour; |
| 16895 | int eastern_hour; |
| 16896 | time_t now; |
| 16897 | now = time((time_t*)NULL); |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 16898 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16899 | tzset(); |
| 16900 | gmt_hour = localtime(&now)->tm_hour; |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 16901 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 16902 | tzset(); |
| 16903 | eastern_hour = localtime(&now)->tm_hour; |
| 16904 | if (eastern_hour == gmt_hour) |
| 16905 | exit(1); |
| 16906 | exit(0); |
| 16907 | } |
| 16908 | |
| 16909 | _ACEOF |
| 16910 | rm -f conftest$ac_exeext |
| 16911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16912 | (eval $ac_link) 2>&5 |
| 16913 | ac_status=$? |
| 16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16917 | (eval $ac_try) 2>&5 |
| 16918 | ac_status=$? |
| 16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16920 | (exit $ac_status); }; }; then |
| 16921 | ac_cv_working_tzset=yes |
| 16922 | else |
| 16923 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16924 | echo "$as_me: failed program was:" >&5 |
| 16925 | cat conftest.$ac_ext >&5 |
| 16926 | ( exit $ac_status ) |
| 16927 | ac_cv_working_tzset=no |
| 16928 | fi |
| 16929 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16930 | fi |
| 16931 | fi |
| 16932 | |
| 16933 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 16934 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 16935 | if test "$ac_cv_working_tzset" = yes |
| 16936 | then |
| 16937 | |
| 16938 | cat >>confdefs.h <<\_ACEOF |
| 16939 | #define HAVE_WORKING_TZSET 1 |
| 16940 | _ACEOF |
| 16941 | |
| 16942 | fi |
| 16943 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16944 | # Look for subsecond timestamps in struct stat |
| 16945 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16946 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16947 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16949 | else |
| 16950 | cat >conftest.$ac_ext <<_ACEOF |
| 16951 | #line $LINENO "configure" |
| 16952 | #include "confdefs.h" |
| 16953 | #include <sys/stat.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16954 | #ifdef F77_DUMMY_MAIN |
| 16955 | # ifdef __cplusplus |
| 16956 | extern "C" |
| 16957 | # endif |
| 16958 | int F77_DUMMY_MAIN() { return 1; } |
| 16959 | #endif |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16960 | int |
| 16961 | main () |
| 16962 | { |
| 16963 | |
| 16964 | struct stat st; |
| 16965 | st.st_mtim.tv_nsec = 1; |
| 16966 | |
| 16967 | ; |
| 16968 | return 0; |
| 16969 | } |
| 16970 | _ACEOF |
| 16971 | rm -f conftest.$ac_objext |
| 16972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16973 | (eval $ac_compile) 2>&5 |
| 16974 | ac_status=$? |
| 16975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16976 | (exit $ac_status); } && |
| 16977 | { ac_try='test -s conftest.$ac_objext' |
| 16978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16979 | (eval $ac_try) 2>&5 |
| 16980 | ac_status=$? |
| 16981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16982 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16983 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16984 | else |
| 16985 | echo "$as_me: failed program was:" >&5 |
| 16986 | cat conftest.$ac_ext >&5 |
| 16987 | ac_cv_stat_tv_nsec=no |
| 16988 | fi |
| 16989 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16990 | fi |
| 16991 | |
| 16992 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16993 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16994 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16995 | then |
| 16996 | |
| 16997 | cat >>confdefs.h <<\_ACEOF |
| 16998 | #define HAVE_STAT_TV_NSEC 1 |
| 16999 | _ACEOF |
| 17000 | |
| 17001 | fi |
| 17002 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17003 | # 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] | 17004 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 17005 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 17006 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 17007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17009 | cat >conftest.$ac_ext <<_ACEOF |
| 17010 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17011 | #include "confdefs.h" |
| 17012 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17013 | #ifdef F77_DUMMY_MAIN |
| 17014 | # ifdef __cplusplus |
| 17015 | extern "C" |
| 17016 | # endif |
| 17017 | int F77_DUMMY_MAIN() { return 1; } |
| 17018 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17019 | int |
| 17020 | main () |
| 17021 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17022 | |
| 17023 | int rtn; |
| 17024 | rtn = mvwdelch(0,0,0); |
| 17025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17026 | ; |
| 17027 | return 0; |
| 17028 | } |
| 17029 | _ACEOF |
| 17030 | rm -f conftest.$ac_objext |
| 17031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17032 | (eval $ac_compile) 2>&5 |
| 17033 | ac_status=$? |
| 17034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17035 | (exit $ac_status); } && |
| 17036 | { ac_try='test -s conftest.$ac_objext' |
| 17037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17038 | (eval $ac_try) 2>&5 |
| 17039 | ac_status=$? |
| 17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17041 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17042 | ac_cv_mvwdelch_is_expression=yes |
| 17043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17044 | echo "$as_me: failed program was:" >&5 |
| 17045 | cat conftest.$ac_ext >&5 |
| 17046 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17047 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17048 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17049 | fi |
| 17050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17051 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 17052 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17053 | |
| 17054 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 17055 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17056 | |
| 17057 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17058 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17059 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17060 | |
| 17061 | fi |
| 17062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17063 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 17064 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 17065 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 17066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17068 | cat >conftest.$ac_ext <<_ACEOF |
| 17069 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17070 | #include "confdefs.h" |
| 17071 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17072 | #ifdef F77_DUMMY_MAIN |
| 17073 | # ifdef __cplusplus |
| 17074 | extern "C" |
| 17075 | # endif |
| 17076 | int F77_DUMMY_MAIN() { return 1; } |
| 17077 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17078 | int |
| 17079 | main () |
| 17080 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17081 | |
| 17082 | WINDOW *w; |
| 17083 | w->_flags = 0; |
| 17084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17085 | ; |
| 17086 | return 0; |
| 17087 | } |
| 17088 | _ACEOF |
| 17089 | rm -f conftest.$ac_objext |
| 17090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17091 | (eval $ac_compile) 2>&5 |
| 17092 | ac_status=$? |
| 17093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17094 | (exit $ac_status); } && |
| 17095 | { ac_try='test -s conftest.$ac_objext' |
| 17096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17097 | (eval $ac_try) 2>&5 |
| 17098 | ac_status=$? |
| 17099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17100 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17101 | ac_cv_window_has_flags=yes |
| 17102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17103 | echo "$as_me: failed program was:" >&5 |
| 17104 | cat conftest.$ac_ext >&5 |
| 17105 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17107 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17108 | fi |
| 17109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17110 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 17111 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17112 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17113 | |
| 17114 | if test "$ac_cv_window_has_flags" = yes |
| 17115 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17116 | |
| 17117 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17118 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17119 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17120 | |
| 17121 | fi |
| 17122 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 17123 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 17124 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 17125 | |
| 17126 | if test -e /dev/ptmx |
| 17127 | then |
| 17128 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17129 | echo "${ECHO_T}yes" >&6 |
| 17130 | |
| 17131 | cat >>confdefs.h <<\_ACEOF |
| 17132 | #define HAVE_DEV_PTMX 1 |
| 17133 | _ACEOF |
| 17134 | |
| 17135 | else |
| 17136 | echo "$as_me:$LINENO: result: no" >&5 |
| 17137 | echo "${ECHO_T}no" >&6 |
| 17138 | fi |
| 17139 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 17140 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 17141 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 17142 | |
| 17143 | if test -e /dev/ptc |
| 17144 | then |
| 17145 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17146 | echo "${ECHO_T}yes" >&6 |
| 17147 | |
| 17148 | cat >>confdefs.h <<\_ACEOF |
| 17149 | #define HAVE_DEV_PTC 1 |
| 17150 | _ACEOF |
| 17151 | |
| 17152 | else |
| 17153 | echo "$as_me:$LINENO: result: no" >&5 |
| 17154 | echo "${ECHO_T}no" >&6 |
| 17155 | fi |
| 17156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17157 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 17158 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 17159 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 17160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17162 | cat >conftest.$ac_ext <<_ACEOF |
| 17163 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17164 | #include "confdefs.h" |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17165 | |
| 17166 | #ifdef HAVE_SYS_TYPES_H |
| 17167 | #include <sys/types.h> |
| 17168 | #endif |
| 17169 | #ifdef HAVE_SYS_SOCKET_H |
| 17170 | #include <sys/socket.h> |
| 17171 | #endif |
| 17172 | |
| 17173 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17174 | #ifdef F77_DUMMY_MAIN |
| 17175 | # ifdef __cplusplus |
| 17176 | extern "C" |
| 17177 | # endif |
| 17178 | int F77_DUMMY_MAIN() { return 1; } |
| 17179 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17180 | int |
| 17181 | main () |
| 17182 | { |
| 17183 | if ((socklen_t *) 0) |
| 17184 | return 0; |
| 17185 | if (sizeof (socklen_t)) |
| 17186 | return 0; |
| 17187 | ; |
| 17188 | return 0; |
| 17189 | } |
| 17190 | _ACEOF |
| 17191 | rm -f conftest.$ac_objext |
| 17192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17193 | (eval $ac_compile) 2>&5 |
| 17194 | ac_status=$? |
| 17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17196 | (exit $ac_status); } && |
| 17197 | { ac_try='test -s conftest.$ac_objext' |
| 17198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17199 | (eval $ac_try) 2>&5 |
| 17200 | ac_status=$? |
| 17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17202 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 17203 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17205 | echo "$as_me: failed program was:" >&5 |
| 17206 | cat conftest.$ac_ext >&5 |
| 17207 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17208 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17209 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17210 | fi |
| 17211 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 17212 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 17213 | if test $ac_cv_type_socklen_t = yes; then |
| 17214 | : |
| 17215 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17216 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17217 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17218 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17219 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17220 | |
| 17221 | fi |
| 17222 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17223 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17224 | |
| 17225 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 17226 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 17227 | do |
| 17228 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 17229 | done |
| 17230 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17231 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 17232 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 17234 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17235 | for dir in $SRCDIRS; do |
| 17236 | if test ! -d $dir; then |
| 17237 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 17238 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17239 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17240 | echo "$as_me:$LINENO: result: done" >&5 |
| 17241 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 17242 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17243 | # generate output files |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17244 | 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] | 17245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17247 | # This file is a shell script that caches the results of configure |
| 17248 | # 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] | 17249 | # scripts and configure runs, see configure's option --config-cache. |
| 17250 | # It is not useful on other systems. If it contains results you don't |
| 17251 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17252 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17253 | # config.status only pays attention to the cache file if you give it |
| 17254 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17255 | # |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17256 | # `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] | 17257 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17258 | # following values. |
| 17259 | |
| 17260 | _ACEOF |
| 17261 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17262 | # The following way of writing the cache mishandles newlines in values, |
| 17263 | # but we know of no workaround that is simple, portable, and efficient. |
| 17264 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17265 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17266 | # 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] | 17267 | { |
| 17268 | (set) 2>&1 | |
| 17269 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 17270 | *ac_space=\ *) |
| 17271 | # `set' does not quote correctly, so add quotes (double-quote |
| 17272 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 17273 | sed -n \ |
| 17274 | "s/'/'\\\\''/g; |
| 17275 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 17276 | ;; |
| 17277 | *) |
| 17278 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 17279 | sed -n \ |
| 17280 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 17281 | ;; |
| 17282 | esac; |
| 17283 | } | |
| 17284 | sed ' |
| 17285 | t clear |
| 17286 | : clear |
| 17287 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17288 | t end |
| 17289 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17290 | : end' >>confcache |
| 17291 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17292 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17293 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 17294 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17295 | else |
| 17296 | echo "not updating unwritable cache $cache_file" |
| 17297 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17298 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17299 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17300 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17301 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17302 | # Let make expand exec_prefix. |
| 17303 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17305 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17306 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17307 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17308 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17309 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17310 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17311 | s/:*\$(srcdir):*/:/; |
| 17312 | s/:*\${srcdir}:*/:/; |
| 17313 | s/:*@srcdir@:*/:/; |
| 17314 | s/^\([^=]*=[ ]*\):*/\1/; |
| 17315 | s/:*$//; |
| 17316 | s/^[^=]*=[ ]*$//; |
| 17317 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17318 | fi |
| 17319 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17320 | DEFS=-DHAVE_CONFIG_H |
| 17321 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17322 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17323 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17324 | ac_clean_files_save=$ac_clean_files |
| 17325 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 17326 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 17327 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17328 | cat >$CONFIG_STATUS <<_ACEOF |
| 17329 | #! $SHELL |
| 17330 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17331 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17332 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17333 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17335 | debug=false |
| 17336 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17337 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17339 | cat >>$CONFIG_STATUS <<\_ACEOF |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17341 | ## --------------------- ## |
| 17342 | ## M4sh Initialization. ## |
| 17343 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17345 | # Be Bourne compatible |
| 17346 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17347 | emulate sh |
| 17348 | NULLCMD=: |
| 17349 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 17350 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17351 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17352 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17353 | # NLS nuisances. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17354 | # Support unset when possible. |
| 17355 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 17356 | as_unset=unset |
| 17357 | else |
| 17358 | as_unset=false |
| 17359 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17360 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17361 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 17362 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 17363 | { LANG=C; export LANG; } |
| 17364 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 17365 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 17366 | { LC_ALL=C; export LC_ALL; } |
| 17367 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 17368 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 17369 | { LC_TIME=C; export LC_TIME; } |
| 17370 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 17371 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 17372 | { LC_CTYPE=C; export LC_CTYPE; } |
| 17373 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 17374 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 17375 | { LANGUAGE=C; export LANGUAGE; } |
| 17376 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 17377 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 17378 | { LC_COLLATE=C; export LC_COLLATE; } |
| 17379 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 17380 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 17381 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 17382 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 17383 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 17384 | { LC_MESSAGES=C; export LC_MESSAGES; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17385 | |
| 17386 | |
| 17387 | # Name of the executable. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17388 | as_me=`(basename "$0") 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17389 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17390 | X"$0" : 'X\(//\)$' \| \ |
| 17391 | X"$0" : 'X\(/\)$' \| \ |
| 17392 | . : '\(.\)' 2>/dev/null || |
| 17393 | echo X/"$0" | |
| 17394 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 17395 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 17396 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 17397 | s/.*/./; q'` |
| 17398 | |
| 17399 | # PATH needs CR, and LINENO needs CR and PATH. |
| 17400 | # Avoid depending upon Character Ranges. |
| 17401 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17402 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17403 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17404 | as_cr_digits='0123456789' |
| 17405 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17406 | |
| 17407 | # The user is always right. |
| 17408 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17409 | echo "#! /bin/sh" >conftest.sh |
| 17410 | echo "exit 0" >>conftest.sh |
| 17411 | chmod +x conftest.sh |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17412 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17413 | PATH_SEPARATOR=';' |
| 17414 | else |
| 17415 | PATH_SEPARATOR=: |
| 17416 | fi |
| 17417 | rm -f conftest.sh |
| 17418 | fi |
| 17419 | |
| 17420 | |
| 17421 | as_lineno_1=$LINENO |
| 17422 | as_lineno_2=$LINENO |
| 17423 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17424 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17425 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 17426 | # Find who we are. Look in the path if we contain no path at all |
| 17427 | # relative or not. |
| 17428 | case $0 in |
| 17429 | *[\\/]* ) as_myself=$0 ;; |
| 17430 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17431 | for as_dir in $PATH |
| 17432 | do |
| 17433 | IFS=$as_save_IFS |
| 17434 | test -z "$as_dir" && as_dir=. |
| 17435 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17436 | done |
| 17437 | |
| 17438 | ;; |
| 17439 | esac |
| 17440 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17441 | # in which case we are not to be found in the path. |
| 17442 | if test "x$as_myself" = x; then |
| 17443 | as_myself=$0 |
| 17444 | fi |
| 17445 | if test ! -f "$as_myself"; then |
| 17446 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 17447 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 17448 | { (exit 1); exit 1; }; } |
| 17449 | fi |
| 17450 | case $CONFIG_SHELL in |
| 17451 | '') |
| 17452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17453 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 17454 | do |
| 17455 | IFS=$as_save_IFS |
| 17456 | test -z "$as_dir" && as_dir=. |
| 17457 | for as_base in sh bash ksh sh5; do |
| 17458 | case $as_dir in |
| 17459 | /*) |
| 17460 | if ("$as_dir/$as_base" -c ' |
| 17461 | as_lineno_1=$LINENO |
| 17462 | as_lineno_2=$LINENO |
| 17463 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17464 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17465 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 17466 | CONFIG_SHELL=$as_dir/$as_base |
| 17467 | export CONFIG_SHELL |
| 17468 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 17469 | fi;; |
| 17470 | esac |
| 17471 | done |
| 17472 | done |
| 17473 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17474 | esac |
| 17475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17476 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17477 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 17478 | # line-number line before each line; the second 'sed' does the real |
| 17479 | # work. The second script uses 'N' to pair each line-number line |
| 17480 | # with the numbered line, and appends trailing '-' during |
| 17481 | # substitution so that $LINENO is not a special case at line end. |
| 17482 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 17483 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 17484 | sed '=' <$as_myself | |
| 17485 | sed ' |
| 17486 | N |
| 17487 | s,$,-, |
| 17488 | : loop |
| 17489 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 17490 | t loop |
| 17491 | s,-$,, |
| 17492 | s,^['$as_cr_digits']*\n,, |
| 17493 | ' >$as_me.lineno && |
| 17494 | chmod +x $as_me.lineno || |
| 17495 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 17496 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 17497 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17499 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17500 | # (the dirname of $[0] is not the place where we might find the |
| 17501 | # original and so on. Autoconf is especially sensible to this). |
| 17502 | . ./$as_me.lineno |
| 17503 | # Exit status is that of the last command. |
| 17504 | exit |
| 17505 | } |
| 17506 | |
| 17507 | |
| 17508 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 17509 | *c*,-n*) ECHO_N= ECHO_C=' |
| 17510 | ' ECHO_T=' ' ;; |
| 17511 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 17512 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 17513 | esac |
| 17514 | |
| 17515 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 17516 | as_expr=expr |
| 17517 | else |
| 17518 | as_expr=false |
| 17519 | fi |
| 17520 | |
| 17521 | rm -f conf$$ conf$$.exe conf$$.file |
| 17522 | echo >conf$$.file |
| 17523 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 17524 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 17525 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 17526 | if test -f conf$$.exe; then |
| 17527 | # Don't use ln at all; we don't have any links |
| 17528 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17530 | as_ln_s='ln -s' |
| 17531 | fi |
| 17532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17533 | as_ln_s=ln |
| 17534 | else |
| 17535 | as_ln_s='cp -p' |
| 17536 | fi |
| 17537 | rm -f conf$$ conf$$.exe conf$$.file |
| 17538 | |
| 17539 | as_executable_p="test -f" |
| 17540 | |
| 17541 | # Sed expression to map a string onto a valid CPP name. |
| 17542 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 17543 | |
| 17544 | # Sed expression to map a string onto a valid variable name. |
| 17545 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 17546 | |
| 17547 | |
| 17548 | # IFS |
| 17549 | # We need space, tab and new line, in precisely that order. |
| 17550 | as_nl=' |
| 17551 | ' |
| 17552 | IFS=" $as_nl" |
| 17553 | |
| 17554 | # CDPATH. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17555 | $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] | 17556 | |
| 17557 | exec 6>&1 |
| 17558 | |
| 17559 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 17560 | # report actual input values of CONFIG_FILES etc. instead of their |
| 17561 | # values after options handling. Logging --version etc. is OK. |
| 17562 | exec 5>>config.log |
| 17563 | { |
| 17564 | echo |
| 17565 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17566 | ## Running $as_me. ## |
| 17567 | _ASBOX |
| 17568 | } >&5 |
| 17569 | cat >&5 <<_CSEOF |
| 17570 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17571 | This file was extended by python $as_me 2.3, which was |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17572 | generated by GNU Autoconf 2.53. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17573 | |
| 17574 | CONFIG_FILES = $CONFIG_FILES |
| 17575 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17576 | CONFIG_LINKS = $CONFIG_LINKS |
| 17577 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17578 | $ $0 $@ |
| 17579 | |
| 17580 | _CSEOF |
| 17581 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 17582 | echo >&5 |
| 17583 | _ACEOF |
| 17584 | |
| 17585 | # Files that config.status was made for. |
| 17586 | if test -n "$ac_config_files"; then |
| 17587 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 17588 | fi |
| 17589 | |
| 17590 | if test -n "$ac_config_headers"; then |
| 17591 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 17592 | fi |
| 17593 | |
| 17594 | if test -n "$ac_config_links"; then |
| 17595 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 17596 | fi |
| 17597 | |
| 17598 | if test -n "$ac_config_commands"; then |
| 17599 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 17600 | fi |
| 17601 | |
| 17602 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17603 | |
| 17604 | ac_cs_usage="\ |
| 17605 | \`$as_me' instantiates files from templates according to the |
| 17606 | current configuration. |
| 17607 | |
| 17608 | Usage: $0 [OPTIONS] [FILE]... |
| 17609 | |
| 17610 | -h, --help print this help, then exit |
| 17611 | -V, --version print version number, then exit |
| 17612 | -d, --debug don't remove temporary files |
| 17613 | --recheck update $as_me by reconfiguring in the same conditions |
| 17614 | --file=FILE[:TEMPLATE] |
| 17615 | instantiate the configuration file FILE |
| 17616 | --header=FILE[:TEMPLATE] |
| 17617 | instantiate the configuration header FILE |
| 17618 | |
| 17619 | Configuration files: |
| 17620 | $config_files |
| 17621 | |
| 17622 | Configuration headers: |
| 17623 | $config_headers |
| 17624 | |
| 17625 | Report bugs to <bug-autoconf@gnu.org>." |
| 17626 | _ACEOF |
| 17627 | |
| 17628 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17629 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17630 | python config.status 2.3 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17631 | configured by $0, generated by GNU Autoconf 2.53, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17632 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 17633 | |
| 17634 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 17635 | Free Software Foundation, Inc. |
| 17636 | This config.status script is free software; the Free Software Foundation |
| 17637 | gives unlimited permission to copy, distribute and modify it." |
| 17638 | srcdir=$srcdir |
| 17639 | INSTALL="$INSTALL" |
| 17640 | _ACEOF |
| 17641 | |
| 17642 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17643 | # If no file are specified by the user, then we need to provide default |
| 17644 | # value. By we need to know if files were specified by the user. |
| 17645 | ac_need_defaults=: |
| 17646 | while test $# != 0 |
| 17647 | do |
| 17648 | case $1 in |
| 17649 | --*=*) |
| 17650 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 17651 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17652 | shift |
| 17653 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 17654 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17655 | ;; |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17656 | -*);; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17657 | *) # This is not an option, so the user has probably given explicit |
| 17658 | # arguments. |
| 17659 | ac_need_defaults=false;; |
| 17660 | esac |
| 17661 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17662 | case $1 in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17663 | # Handling of the options. |
| 17664 | _ACEOF |
| 17665 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17666 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17667 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 17668 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 17669 | _ACEOF |
| 17670 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17671 | --version | --vers* | -V ) |
| 17672 | echo "$ac_cs_version"; exit 0 ;; |
| 17673 | --he | --h) |
| 17674 | # Conflict between --help and --header |
| 17675 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 17676 | Try \`$0 --help' for more information." >&5 |
| 17677 | echo "$as_me: error: ambiguous option: $1 |
| 17678 | Try \`$0 --help' for more information." >&2;} |
| 17679 | { (exit 1); exit 1; }; };; |
| 17680 | --help | --hel | -h ) |
| 17681 | echo "$ac_cs_usage"; exit 0 ;; |
| 17682 | --debug | --d* | -d ) |
| 17683 | debug=: ;; |
| 17684 | --file | --fil | --fi | --f ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17685 | shift |
| 17686 | CONFIG_FILES="$CONFIG_FILES $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17687 | ac_need_defaults=false;; |
| 17688 | --header | --heade | --head | --hea ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17689 | shift |
| 17690 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17691 | ac_need_defaults=false;; |
| 17692 | |
| 17693 | # This is an error. |
| 17694 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 17695 | Try \`$0 --help' for more information." >&5 |
| 17696 | echo "$as_me: error: unrecognized option: $1 |
| 17697 | Try \`$0 --help' for more information." >&2;} |
| 17698 | { (exit 1); exit 1; }; } ;; |
| 17699 | |
| 17700 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 17701 | |
| 17702 | esac |
| 17703 | shift |
| 17704 | done |
| 17705 | |
| 17706 | _ACEOF |
| 17707 | |
| 17708 | |
| 17709 | |
| 17710 | |
| 17711 | |
| 17712 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17713 | for ac_config_target in $ac_config_targets |
| 17714 | do |
| 17715 | case "$ac_config_target" in |
| 17716 | # Handling of arguments. |
| 17717 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 17718 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 17719 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17720 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17721 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17722 | { (exit 1); exit 1; }; };; |
| 17723 | esac |
| 17724 | done |
| 17725 | |
| 17726 | # If the user did not use the arguments to specify the items to instantiate, |
| 17727 | # then the envvar interface is used. Set only those that are not. |
| 17728 | # We use the long form for the default assignment because of an extremely |
| 17729 | # bizarre bug on SunOS 4.1.3. |
| 17730 | if $ac_need_defaults; then |
| 17731 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17732 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17733 | fi |
| 17734 | |
| 17735 | # Create a temporary directory, and hook for its removal unless debugging. |
| 17736 | $debug || |
| 17737 | { |
| 17738 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 17739 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17740 | } |
| 17741 | |
| 17742 | # Create a (secure) tmp directory for tmp files. |
| 17743 | : ${TMPDIR=/tmp} |
| 17744 | { |
| 17745 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 17746 | test -n "$tmp" && test -d "$tmp" |
| 17747 | } || |
| 17748 | { |
| 17749 | tmp=$TMPDIR/cs$$-$RANDOM |
| 17750 | (umask 077 && mkdir $tmp) |
| 17751 | } || |
| 17752 | { |
| 17753 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 17754 | { (exit 1); exit 1; } |
| 17755 | } |
| 17756 | |
| 17757 | _ACEOF |
| 17758 | |
| 17759 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17760 | |
| 17761 | # |
| 17762 | # CONFIG_FILES section. |
| 17763 | # |
| 17764 | |
| 17765 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17766 | # This happens for instance when ./config.status config.h |
| 17767 | if test -n "\$CONFIG_FILES"; then |
| 17768 | # Protect against being on the right side of a sed subst in config.status. |
| 17769 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 17770 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 17771 | s,@SHELL@,$SHELL,;t t |
| 17772 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 17773 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 17774 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 17775 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 17776 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 17777 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 17778 | s,@exec_prefix@,$exec_prefix,;t t |
| 17779 | s,@prefix@,$prefix,;t t |
| 17780 | s,@program_transform_name@,$program_transform_name,;t t |
| 17781 | s,@bindir@,$bindir,;t t |
| 17782 | s,@sbindir@,$sbindir,;t t |
| 17783 | s,@libexecdir@,$libexecdir,;t t |
| 17784 | s,@datadir@,$datadir,;t t |
| 17785 | s,@sysconfdir@,$sysconfdir,;t t |
| 17786 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 17787 | s,@localstatedir@,$localstatedir,;t t |
| 17788 | s,@libdir@,$libdir,;t t |
| 17789 | s,@includedir@,$includedir,;t t |
| 17790 | s,@oldincludedir@,$oldincludedir,;t t |
| 17791 | s,@infodir@,$infodir,;t t |
| 17792 | s,@mandir@,$mandir,;t t |
| 17793 | s,@build_alias@,$build_alias,;t t |
| 17794 | s,@host_alias@,$host_alias,;t t |
| 17795 | s,@target_alias@,$target_alias,;t t |
| 17796 | s,@DEFS@,$DEFS,;t t |
| 17797 | s,@ECHO_C@,$ECHO_C,;t t |
| 17798 | s,@ECHO_N@,$ECHO_N,;t t |
| 17799 | s,@ECHO_T@,$ECHO_T,;t t |
| 17800 | s,@LIBS@,$LIBS,;t t |
| 17801 | s,@VERSION@,$VERSION,;t t |
| 17802 | s,@SOVERSION@,$SOVERSION,;t t |
| 17803 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 17804 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 17805 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 17806 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17807 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17808 | s,@MACHDEP@,$MACHDEP,;t t |
| 17809 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 17810 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 17811 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17812 | s,@CXX@,$CXX,;t t |
| 17813 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17814 | s,@EXEEXT@,$EXEEXT,;t t |
| 17815 | s,@CC@,$CC,;t t |
| 17816 | s,@CFLAGS@,$CFLAGS,;t t |
| 17817 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17818 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17819 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17820 | s,@OBJEXT@,$OBJEXT,;t t |
| 17821 | s,@CPP@,$CPP,;t t |
| 17822 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17823 | s,@LIBRARY@,$LIBRARY,;t t |
| 17824 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17825 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17826 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17827 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17828 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17829 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17830 | s,@LINKCC@,$LINKCC,;t t |
| 17831 | s,@RANLIB@,$RANLIB,;t t |
| 17832 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17833 | s,@AR@,$AR,;t t |
| 17834 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17835 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17836 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17837 | s,@LN@,$LN,;t t |
| 17838 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 17839 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17840 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17841 | s,@SO@,$SO,;t t |
| 17842 | s,@LDSHARED@,$LDSHARED,;t t |
| 17843 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17844 | s,@CCSHARED@,$CCSHARED,;t t |
| 17845 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17846 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17847 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17848 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17849 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17850 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17851 | s,@LDLAST@,$LDLAST,;t t |
| 17852 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17853 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17854 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17855 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17856 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17857 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17858 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17859 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17860 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17861 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17862 | s,@LIBM@,$LIBM,;t t |
| 17863 | s,@LIBC@,$LIBC,;t t |
| 17864 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17865 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17866 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17867 | CEOF |
| 17868 | |
| 17869 | _ACEOF |
| 17870 | |
| 17871 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17872 | # Split the substitutions into bite-sized pieces for seds with |
| 17873 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17874 | ac_max_sed_lines=48 |
| 17875 | ac_sed_frag=1 # Number of current file. |
| 17876 | ac_beg=1 # First line for current file. |
| 17877 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17878 | ac_more_lines=: |
| 17879 | ac_sed_cmds= |
| 17880 | while $ac_more_lines; do |
| 17881 | if test $ac_beg -gt 1; then |
| 17882 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17883 | else |
| 17884 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17885 | fi |
| 17886 | if test ! -s $tmp/subs.frag; then |
| 17887 | ac_more_lines=false |
| 17888 | else |
| 17889 | # The purpose of the label and of the branching condition is to |
| 17890 | # speed up the sed processing (if there are no `@' at all, there |
| 17891 | # is no need to browse any of the substitutions). |
| 17892 | # These are the two extra sed commands mentioned above. |
| 17893 | (echo ':t |
| 17894 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17895 | if test -z "$ac_sed_cmds"; then |
| 17896 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17897 | else |
| 17898 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17899 | fi |
| 17900 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17901 | ac_beg=$ac_end |
| 17902 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17903 | fi |
| 17904 | done |
| 17905 | if test -z "$ac_sed_cmds"; then |
| 17906 | ac_sed_cmds=cat |
| 17907 | fi |
| 17908 | fi # test -n "$CONFIG_FILES" |
| 17909 | |
| 17910 | _ACEOF |
| 17911 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17912 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17913 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17914 | case $ac_file in |
| 17915 | - | *:- | *:-:* ) # input from stdin |
| 17916 | cat >$tmp/stdin |
| 17917 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17918 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17919 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17920 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17921 | * ) ac_file_in=$ac_file.in ;; |
| 17922 | esac |
| 17923 | |
| 17924 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17925 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17926 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17927 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17928 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17929 | X"$ac_file" : 'X\(/\)' \| \ |
| 17930 | . : '\(.\)' 2>/dev/null || |
| 17931 | echo X"$ac_file" | |
| 17932 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17933 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17934 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17935 | /^X\(\/\).*/{ s//\1/; q; } |
| 17936 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17937 | { case "$ac_dir" in |
| 17938 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17939 | *) as_incr_dir=.;; |
| 17940 | esac |
| 17941 | as_dummy="$ac_dir" |
| 17942 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17943 | case $as_mkdir_dir in |
| 17944 | # Skip DOS drivespec |
| 17945 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17946 | *) |
| 17947 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17948 | test -d "$as_incr_dir" || |
| 17949 | mkdir "$as_incr_dir" || |
| 17950 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17951 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17952 | { (exit 1); exit 1; }; } |
| 17953 | ;; |
| 17954 | esac |
| 17955 | done; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17956 | |
| 17957 | ac_builddir=. |
| 17958 | |
| 17959 | if test "$ac_dir" != .; then |
| 17960 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17961 | # A "../" for each directory in $ac_dir_suffix. |
| 17962 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17963 | else |
| 17964 | ac_dir_suffix= ac_top_builddir= |
| 17965 | fi |
| 17966 | |
| 17967 | case $srcdir in |
| 17968 | .) # No --srcdir option. We are building in place. |
| 17969 | ac_srcdir=. |
| 17970 | if test -z "$ac_top_builddir"; then |
| 17971 | ac_top_srcdir=. |
| 17972 | else |
| 17973 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17974 | fi ;; |
| 17975 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17976 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17977 | ac_top_srcdir=$srcdir ;; |
| 17978 | *) # Relative path. |
| 17979 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17980 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17981 | esac |
| 17982 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17983 | # absolute. |
| 17984 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame^] | 17985 | 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] | 17986 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17987 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17988 | |
| 17989 | |
| 17990 | case $INSTALL in |
| 17991 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17992 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17993 | esac |
| 17994 | |
| 17995 | if test x"$ac_file" != x-; then |
| 17996 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17997 | echo "$as_me: creating $ac_file" >&6;} |
| 17998 | rm -f "$ac_file" |
| 17999 | fi |
| 18000 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18001 | # use $as_me), people would be surprised to read: |
| 18002 | # /* config.h. Generated by config.status. */ |
| 18003 | if test x"$ac_file" = x-; then |
| 18004 | configure_input= |
| 18005 | else |
| 18006 | configure_input="$ac_file. " |
| 18007 | fi |
| 18008 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 18009 | sed 's,.*/,,'` by configure." |
| 18010 | |
| 18011 | # First look for the input files in the build tree, otherwise in the |
| 18012 | # src tree. |
| 18013 | ac_file_inputs=`IFS=: |
| 18014 | for f in $ac_file_in; do |
| 18015 | case $f in |
| 18016 | -) echo $tmp/stdin ;; |
| 18017 | [\\/$]*) |
| 18018 | # Absolute (can't be DOS-style, as IFS=:) |
| 18019 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18020 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18021 | { (exit 1); exit 1; }; } |
| 18022 | echo $f;; |
| 18023 | *) # Relative |
| 18024 | if test -f "$f"; then |
| 18025 | # Build tree |
| 18026 | echo $f |
| 18027 | elif test -f "$srcdir/$f"; then |
| 18028 | # Source tree |
| 18029 | echo $srcdir/$f |
| 18030 | else |
| 18031 | # /dev/null tree |
| 18032 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18033 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18034 | { (exit 1); exit 1; }; } |
| 18035 | fi;; |
| 18036 | esac |
| 18037 | done` || { (exit 1); exit 1; } |
| 18038 | _ACEOF |
| 18039 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18040 | sed "$ac_vpsub |
| 18041 | $extrasub |
| 18042 | _ACEOF |
| 18043 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18044 | :t |
| 18045 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18046 | s,@configure_input@,$configure_input,;t t |
| 18047 | s,@srcdir@,$ac_srcdir,;t t |
| 18048 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 18049 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 18050 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 18051 | s,@builddir@,$ac_builddir,;t t |
| 18052 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 18053 | s,@top_builddir@,$ac_top_builddir,;t t |
| 18054 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 18055 | s,@INSTALL@,$ac_INSTALL,;t t |
| 18056 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 18057 | rm -f $tmp/stdin |
| 18058 | if test x"$ac_file" != x-; then |
| 18059 | mv $tmp/out $ac_file |
| 18060 | else |
| 18061 | cat $tmp/out |
| 18062 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18063 | fi |
| 18064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18065 | done |
| 18066 | _ACEOF |
| 18067 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18069 | # |
| 18070 | # CONFIG_HEADER section. |
| 18071 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18072 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18073 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 18074 | # 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] | 18075 | # |
| 18076 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18077 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 18078 | ac_dB='[ ].*$,\1#\2' |
| 18079 | ac_dC=' ' |
| 18080 | ac_dD=',;t' |
| 18081 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 18082 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 18083 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18084 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18085 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18087 | 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] | 18088 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18089 | case $ac_file in |
| 18090 | - | *:- | *:-:* ) # input from stdin |
| 18091 | cat >$tmp/stdin |
| 18092 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18093 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18094 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18095 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18096 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18097 | esac |
| 18098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18099 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18100 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18102 | # First look for the input files in the build tree, otherwise in the |
| 18103 | # src tree. |
| 18104 | ac_file_inputs=`IFS=: |
| 18105 | for f in $ac_file_in; do |
| 18106 | case $f in |
| 18107 | -) echo $tmp/stdin ;; |
| 18108 | [\\/$]*) |
| 18109 | # Absolute (can't be DOS-style, as IFS=:) |
| 18110 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18111 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18112 | { (exit 1); exit 1; }; } |
| 18113 | echo $f;; |
| 18114 | *) # Relative |
| 18115 | if test -f "$f"; then |
| 18116 | # Build tree |
| 18117 | echo $f |
| 18118 | elif test -f "$srcdir/$f"; then |
| 18119 | # Source tree |
| 18120 | echo $srcdir/$f |
| 18121 | else |
| 18122 | # /dev/null tree |
| 18123 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18124 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18125 | { (exit 1); exit 1; }; } |
| 18126 | fi;; |
| 18127 | esac |
| 18128 | done` || { (exit 1); exit 1; } |
| 18129 | # Remove the trailing spaces. |
| 18130 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18132 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18134 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 18135 | # `conftest.undefs', that substitutes the proper values into |
| 18136 | # config.h.in to produce config.h. The first handles `#define' |
| 18137 | # templates, and the second `#undef' templates. |
| 18138 | # And first: Protect against being on the right side of a sed subst in |
| 18139 | # config.status. Protect against being in an unquoted here document |
| 18140 | # in config.status. |
| 18141 | rm -f conftest.defines conftest.undefs |
| 18142 | # Using a here document instead of a string reduces the quoting nightmare. |
| 18143 | # Putting comments in sed scripts is not portable. |
| 18144 | # |
| 18145 | # `end' is used to avoid that the second main sed command (meant for |
| 18146 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 18147 | # See the Autoconf documentation for `clear'. |
| 18148 | cat >confdef2sed.sed <<\_ACEOF |
| 18149 | s/[\\&,]/\\&/g |
| 18150 | s,[\\$`],\\&,g |
| 18151 | t clear |
| 18152 | : clear |
| 18153 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 18154 | t end |
| 18155 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 18156 | : end |
| 18157 | _ACEOF |
| 18158 | # If some macros were called several times there might be several times |
| 18159 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 18160 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 18161 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 18162 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 18163 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18164 | |
| 18165 | # This sed command replaces #undef with comments. This is necessary, for |
| 18166 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 18167 | # 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] | 18168 | cat >>conftest.undefs <<\_ACEOF |
| 18169 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 18170 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18172 | # Break up conftest.defines because some shells have a limit on the size |
| 18173 | # of here documents, and old seds have small limits too (100 cmds). |
| 18174 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18175 | 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] | 18176 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 18177 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18178 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18179 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18180 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18181 | # Write a limited-size here document to $tmp/defines.sed. |
| 18182 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 18183 | # Speed up: don't consider the non `#define' lines. |
| 18184 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 18185 | # Work around the forget-to-reset-the-flag bug. |
| 18186 | echo 't clr' >>$CONFIG_STATUS |
| 18187 | echo ': clr' >>$CONFIG_STATUS |
| 18188 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18189 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18190 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 18191 | rm -f $tmp/in |
| 18192 | mv $tmp/out $tmp/in |
| 18193 | ' >>$CONFIG_STATUS |
| 18194 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 18195 | rm -f conftest.defines |
| 18196 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18197 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18198 | rm -f conftest.defines |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18199 | echo ' fi # egrep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18200 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18202 | # Break up conftest.undefs because some shells have a limit on the size |
| 18203 | # of here documents, and old seds have small limits too (100 cmds). |
| 18204 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 18205 | rm -f conftest.tail |
| 18206 | while grep . conftest.undefs >/dev/null |
| 18207 | do |
| 18208 | # Write a limited-size here document to $tmp/undefs.sed. |
| 18209 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 18210 | # Speed up: don't consider the non `#undef' |
| 18211 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 18212 | # Work around the forget-to-reset-the-flag bug. |
| 18213 | echo 't clr' >>$CONFIG_STATUS |
| 18214 | echo ': clr' >>$CONFIG_STATUS |
| 18215 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 18216 | echo 'CEOF |
| 18217 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 18218 | rm -f $tmp/in |
| 18219 | mv $tmp/out $tmp/in |
| 18220 | ' >>$CONFIG_STATUS |
| 18221 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 18222 | rm -f conftest.undefs |
| 18223 | mv conftest.tail conftest.undefs |
| 18224 | done |
| 18225 | rm -f conftest.undefs |
| 18226 | |
| 18227 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18228 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18229 | # use $as_me), people would be surprised to read: |
| 18230 | # /* config.h. Generated by config.status. */ |
| 18231 | if test x"$ac_file" = x-; then |
| 18232 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18234 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18235 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18236 | cat $tmp/in >>$tmp/config.h |
| 18237 | rm -f $tmp/in |
| 18238 | if test x"$ac_file" != x-; then |
| 18239 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 18240 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 18241 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 18242 | else |
| 18243 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18244 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18245 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18246 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18247 | X"$ac_file" : 'X\(/\)' \| \ |
| 18248 | . : '\(.\)' 2>/dev/null || |
| 18249 | echo X"$ac_file" | |
| 18250 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18251 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18252 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18253 | /^X\(\/\).*/{ s//\1/; q; } |
| 18254 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18255 | { case "$ac_dir" in |
| 18256 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 18257 | *) as_incr_dir=.;; |
| 18258 | esac |
| 18259 | as_dummy="$ac_dir" |
| 18260 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 18261 | case $as_mkdir_dir in |
| 18262 | # Skip DOS drivespec |
| 18263 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 18264 | *) |
| 18265 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 18266 | test -d "$as_incr_dir" || |
| 18267 | mkdir "$as_incr_dir" || |
| 18268 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 18269 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 18270 | { (exit 1); exit 1; }; } |
| 18271 | ;; |
| 18272 | esac |
| 18273 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18275 | rm -f $ac_file |
| 18276 | mv $tmp/config.h $ac_file |
| 18277 | fi |
| 18278 | else |
| 18279 | cat $tmp/config.h |
| 18280 | rm -f $tmp/config.h |
| 18281 | fi |
| 18282 | done |
| 18283 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18285 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18287 | { (exit 0); exit 0; } |
| 18288 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18289 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18290 | ac_clean_files=$ac_clean_files_save |
| 18291 | |
| 18292 | |
| 18293 | # configure is writing to config.log, and then calls config.status. |
| 18294 | # config.status does its own redirection, appending to config.log. |
| 18295 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18296 | # by configure, so config.status won't be able to write to it; its |
| 18297 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18298 | # effectively closing config.log, so it can be properly (re)opened and |
| 18299 | # appended to by config.status. When coming back to configure, we |
| 18300 | # need to make the FD available again. |
| 18301 | if test "$no_create" != yes; then |
| 18302 | ac_cs_success=: |
| 18303 | exec 5>/dev/null |
| 18304 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 18305 | exec 5>>config.log |
| 18306 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18307 | # would make configure fail if this is the last instruction. |
| 18308 | $ac_cs_success || { (exit 1); exit 1; } |
| 18309 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18310 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18311 | |
| 18312 | echo "creating Setup" |
| 18313 | if test ! -f Modules/Setup |
| 18314 | then |
| 18315 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 18316 | fi |
| 18317 | |
| 18318 | echo "creating Setup.local" |
| 18319 | if test ! -f Modules/Setup.local |
| 18320 | then |
| 18321 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 18322 | fi |
| 18323 | |
| 18324 | echo "creating Makefile" |
| 18325 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 18326 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 18327 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 18328 | mv config.c Modules |